Click here to Skip to main content
16,006,452 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to show a window in full screen? Pin
Maer72723-Aug-01 18:29
Maer72723-Aug-01 18:29 
GeneralString to date Pin
norbland23-Aug-01 6:05
norbland23-Aug-01 6:05 
GeneralRe: String to date Pin
Matt Gullett23-Aug-01 6:07
Matt Gullett23-Aug-01 6:07 
GeneralRe: String to date Pin
norbland23-Aug-01 6:19
norbland23-Aug-01 6:19 
GeneralAnother Font Problem: The "Large Fonts" windows setting! Pin
Sprudling23-Aug-01 5:27
Sprudling23-Aug-01 5:27 
GeneralRe: Another Font Problem: The Pin
CodeGuy23-Aug-01 6:56
CodeGuy23-Aug-01 6:56 
GeneralToggling splitter orientation Pin
Tommy H D Svensson23-Aug-01 4:51
Tommy H D Svensson23-Aug-01 4:51 
GeneralFont problems on WinNT and Win2000 Pin
Sprudling23-Aug-01 4:38
Sprudling23-Aug-01 4:38 
afx_msg int CChildWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
CClientDC dc(this);
CFont font;

font.CreateFont(charHeight, 0, 0, 0, FW_NORMAL, 0, 0, 0, DEFAULT_CHARSET, OUT_CHARACTER_PRECIS, CLIP_CHARACTER_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "MS Sans Serif");

//charheight is any number (usually 12)

dc.SelectObject(&font);
m_MyEdit.SetFont(&font);

...
}

This works fine on Win98, but on WinNT and Win2000 it seems like nothing happens. The default font (FixedSys) is being used instead. Why? And it's not only MyEdit, but all other childwindows: CStatic, CListCtrl, CEdit, CStatusBarCtrl, anything! Confused | :confused:

Please help me Smile | :)
GeneralRe: Font problems on WinNT and Win2000 Pin
Matt Gullett23-Aug-01 4:53
Matt Gullett23-Aug-01 4:53 
GeneralRe: Font problems on WinNT and Win2000 Pin
CodeGuy23-Aug-01 7:05
CodeGuy23-Aug-01 7:05 
GeneralRe: Font problems on WinNT and Win2000 Pin
Matt Gullett23-Aug-01 7:56
Matt Gullett23-Aug-01 7:56 
GeneralRe: Font problems on WinNT and Win2000 Pin
Sprudling23-Aug-01 8:23
Sprudling23-Aug-01 8:23 
GeneralRe: Font problems on WinNT and Win2000 Pin
CodeGuy24-Aug-01 4:05
CodeGuy24-Aug-01 4:05 
QuestionHow do you make a physical copy of a file through CFile class? Pin
tm23-Aug-01 3:51
tm23-Aug-01 3:51 
AnswerRe: How do you make a physical copy of a file through CFile class? Pin
Tomasz Sowinski23-Aug-01 4:13
Tomasz Sowinski23-Aug-01 4:13 
GeneralRe: How do you make a physical copy of a file through CFile class? Pin
tm23-Aug-01 6:44
tm23-Aug-01 6:44 
GeneralRe: CListCtrl Pin
Tomasz Sowinski23-Aug-01 3:59
Tomasz Sowinski23-Aug-01 3:59 
GeneralURGENT !!!!!!!! AddPage in PropertySheet Pin
Natacha S.23-Aug-01 3:18
Natacha S.23-Aug-01 3:18 
GeneralFormatting in messagebox Pin
Jimmy Ehrnström23-Aug-01 1:44
Jimmy Ehrnström23-Aug-01 1:44 
GeneralRe: Formatting in messagebox Pin
KingsGambit23-Aug-01 2:33
KingsGambit23-Aug-01 2:33 
GeneralRe: Formatting in messagebox Pin
Tomasz Sowinski23-Aug-01 2:35
Tomasz Sowinski23-Aug-01 2:35 
GeneralRe: Formatting in messagebox Pin
Jimmy Ehrnström23-Aug-01 3:22
Jimmy Ehrnström23-Aug-01 3:22 
GeneralRe: Formatting in messagebox Pin
Tomasz Sowinski23-Aug-01 3:30
Tomasz Sowinski23-Aug-01 3:30 
GeneralRe: Formatting in messagebox Pin
Jimmy Ehrnström23-Aug-01 3:36
Jimmy Ehrnström23-Aug-01 3:36 
GeneralConst Char * etc Pin
Ray Kinsella23-Aug-01 0:04
Ray Kinsella23-Aug-01 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.