Click here to Skip to main content
16,011,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Quest on Flags... Pin
CMFC6.0VS.NETUser2-May-01 4:25
CMFC6.0VS.NETUser2-May-01 4:25 
Generalsimilar functions in vc++ for clreol and gotoxy Pin
1-May-01 8:55
suss1-May-01 8:55 
GeneralRe: similar functions in vc++ for clreol and gotoxy Pin
Christian Graus1-May-01 13:06
protectorChristian Graus1-May-01 13:06 
GeneralRe: similar functions in vc++ for clreol and gotoxy Pin
Tomasz Sowinski2-May-01 1:23
Tomasz Sowinski2-May-01 1:23 
GeneralHelp Topics Pin
kk91-May-01 8:46
kk91-May-01 8:46 
GeneralCOleControl and Office 200 Problem under NT4 Pin
Michael A Barnhart1-May-01 6:26
Michael A Barnhart1-May-01 6:26 
Generalw*fstream troubles Pin
Someone20021-May-01 5:43
Someone20021-May-01 5:43 
GeneralSimple Custom Control Question Pin
Mark Jones1-May-01 5:14
Mark Jones1-May-01 5:14 
I am developing my first custom control, CNewEdit derived from CEdit, which will use a non-system font for display. I want to create the font and then call CWnd::SetFont() after the control's window has been created. I don't want to do this outside the CNewEdit class (by adding code to the dialog class that is containing my CNewEdit control).

My instinct is to provide a handler in CNewEdit for WM_CREATE. However, although Class Wizard allows me to define this message handler, I can't get execution to breakpoint inside CNewEdit::OnCreate(). The rest of the class is working as I have customised the background and text colours and these are ok.

I find it strange that if I add a handler for WM_DESTROY to CNewEdit I can breakpoint successfully in OnDestroy(). So why not OnCreate()?


Mark Jones

Software Engineer
Hampshire
UK
GeneralRe: Simple Custom Control Question Pin
Michael A Barnhart1-May-01 7:36
Michael A Barnhart1-May-01 7:36 
GeneralRe: Simple Custom Control Question Pin
Mark Jones1-May-01 22:47
Mark Jones1-May-01 22:47 
GeneralRe: Simple Custom Control Question Pin
Tomasz Sowinski2-May-01 0:26
Tomasz Sowinski2-May-01 0:26 
GeneralRe: Simple Custom Control Question Pin
Mark Jones2-May-01 0:48
Mark Jones2-May-01 0:48 
GeneralPrint Preview Pin
1-May-01 4:59
suss1-May-01 4:59 
GeneralRe: Print Preview Pin
5-Jun-01 22:10
suss5-Jun-01 22:10 
GeneralRe: Print Preview Pin
Christian Graus5-Jun-01 22:24
protectorChristian Graus5-Jun-01 22:24 
Generalneed help with drawing and scrolling Pin
F.Dost1-May-01 4:27
F.Dost1-May-01 4:27 
GeneralRe: need help with drawing and scrolling Pin
Chris Losinger1-May-01 5:45
professionalChris Losinger1-May-01 5:45 
GeneralRe: need help with drawing and scrolling Pin
F.Dost1-May-01 6:03
F.Dost1-May-01 6:03 
GeneralRe: need help with drawing and scrolling Pin
Christian Graus1-May-01 13:09
protectorChristian Graus1-May-01 13:09 
GeneralDll link error Pin
1-May-01 3:30
suss1-May-01 3:30 
GeneralRe: Dll link error Pin
Tim Deveaux1-May-01 4:58
Tim Deveaux1-May-01 4:58 
GeneralRe: Dll link error Pin
1-May-01 17:21
suss1-May-01 17:21 
GeneralRe: Dll link error Pin
1-May-01 20:16
suss1-May-01 20:16 
Generalprinting a graphics plot Pin
DanYELL1-May-01 2:32
DanYELL1-May-01 2:32 
GeneralRe: printing a graphics plot Pin
Chris Losinger1-May-01 3:32
professionalChris Losinger1-May-01 3:32 

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.