Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Urgent help needed! How do i enumerate the Programs menu folder Pin
giftsana23-Mar-06 23:59
giftsana23-Mar-06 23:59 
GeneralRe: got solution! Pin
giftsana27-Mar-06 19:38
giftsana27-Mar-06 19:38 
Questionlimiting the stack size for an application Pin
subramanyeswari23-Mar-06 23:13
subramanyeswari23-Mar-06 23:13 
AnswerRe: limiting the stack size for an application Pin
Waldermort23-Mar-06 23:24
Waldermort23-Mar-06 23:24 
AnswerRe: limiting the stack size for an application Pin
Ștefan-Mihai MOGA24-Mar-06 1:16
professionalȘtefan-Mihai MOGA24-Mar-06 1:16 
GeneralRe: limiting the stack size for an application Pin
subramanyeswari27-Mar-06 21:16
subramanyeswari27-Mar-06 21:16 
GeneralRe: limiting the stack size for an application Pin
Ștefan-Mihai MOGA28-Mar-06 22:31
professionalȘtefan-Mihai MOGA28-Mar-06 22:31 
QuestionStrange font problem Pin
Waldermort23-Mar-06 23:12
Waldermort23-Mar-06 23:12 
Hi all,

I'm having a strange, seemingly random problem with the font for my Dialog. Most of the time it runs perfectly, at others a bold face is selected. The only way I am able to correct the problem is by restarting windows.

on my WM_INITIALIZE: I have
HDC hdc = GetDC(hwnd);
LONG lfheight = -MulDiv(10, GetDeviceCaps(hdc, HORZRES), 72);
curFont = CreateFont(lfheight, 0, 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, "Times New Roman");
oldFont = (HFONT)SelectObject(hdc,curFont);
ReleaseDC(hwnd,hdc);

On the Dialog itself there is no text, but the font withinin the controls is affected. i thought that any font selected into the main dialog would also affect the child windows.

Obviously I am doing something wrong, but I can't see what. It's also pretty impossible to debug since it happens once every few days.

Any ideas?
QuestionRe: Strange font problem Pin
Nibu babu thomas23-Mar-06 23:53
Nibu babu thomas23-Mar-06 23:53 
AnswerRe: Strange font problem Pin
Waldermort24-Mar-06 0:12
Waldermort24-Mar-06 0:12 
GeneralRe: Strange font problem Pin
Hamid_RT24-Mar-06 0:41
Hamid_RT24-Mar-06 0:41 
GeneralRe: Strange font problem Pin
Nibu babu thomas24-Mar-06 1:02
Nibu babu thomas24-Mar-06 1:02 
GeneralRe: Strange font problem Pin
Waldermort24-Mar-06 2:09
Waldermort24-Mar-06 2:09 
Questioncopy file in vc++ Pin
chetan21018323-Mar-06 23:07
chetan21018323-Mar-06 23:07 
Questionmfc c++(code to move to another window) Pin
kipchumba23-Mar-06 20:54
kipchumba23-Mar-06 20:54 
AnswerRe: mfc c++(code to move to another window) Pin
jhwurmbach23-Mar-06 22:59
jhwurmbach23-Mar-06 22:59 
Questionmfc c++(code to move to another window) Pin
kipchumba23-Mar-06 20:52
kipchumba23-Mar-06 20:52 
Questionfile sharing tranfer using mfc Pin
Ahuja Ekta23-Mar-06 20:22
Ahuja Ekta23-Mar-06 20:22 
AnswerRe: file sharing tranfer using mfc Pin
_AnsHUMAN_ 23-Mar-06 23:14
_AnsHUMAN_ 23-Mar-06 23:14 
QuestionOptimization on FileReading in VC++ Pin
ledallam23-Mar-06 18:42
ledallam23-Mar-06 18:42 
AnswerRe: Optimization on FileReading in VC++ Pin
Nishad S23-Mar-06 21:21
Nishad S23-Mar-06 21:21 
AnswerRe: Optimization on FileReading in VC++ Pin
Ștefan-Mihai MOGA23-Mar-06 21:29
professionalȘtefan-Mihai MOGA23-Mar-06 21:29 
AnswerRe: Optimization on FileReading in VC++ Pin
kakan23-Mar-06 21:32
professionalkakan23-Mar-06 21:32 
AnswerRe: Optimization on FileReading in VC++ Pin
BlackDice24-Mar-06 7:09
BlackDice24-Mar-06 7:09 
QuestionDialog Editor DLU Pin
Nishad S23-Mar-06 17:53
Nishad S23-Mar-06 17:53 

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.