Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: SQLConfigDataSource() & string problem Pin
Derek Price25-Jul-01 7:08
Derek Price25-Jul-01 7:08 
GeneralA RichEdit poblem... Pin
24-Jul-01 2:59
suss24-Jul-01 2:59 
GeneralRe: A RichEdit poblem... Pin
Ernest Laurentin24-Jul-01 3:24
Ernest Laurentin24-Jul-01 3:24 
GeneralThanks a lot!... Pin
24-Jul-01 3:42
suss24-Jul-01 3:42 
GeneralGetting Mouse Position Pin
24-Jul-01 2:56
suss24-Jul-01 2:56 
GeneralRe: Getting Mouse Position Pin
Tomasz Sowinski24-Jul-01 3:07
Tomasz Sowinski24-Jul-01 3:07 
GeneralRe: Getting Mouse Position Pin
29-Aug-01 12:44
suss29-Aug-01 12:44 
QuestionWM_CREATE ? Pin
24-Jul-01 2:48
suss24-Jul-01 2:48 
Hi,

I've made a class which inherits CEdit. I want to set up some styles for the class, so what i've tried is handling WM_CREATE.

However, it seems that CMyEditClass::OnCreate is not called when the implementation uses a dialog box control id and classwizard to bind them together.

But, if I do this:

CMyEditClass my_edit;
my_edit.Create(....);

in this case OnCreate is called. So, i've proved to myself that Edit controls in dialogs are not "Create"d. What message can I handle that is common to both methods of using the class, that is suitable for modifying styles and so on? I'd use Spy++ but I don't know how to make it catch messages send to the window when the window is only just being created.

Thanks for your help. I hope I've explained it right

J
AnswerRe: WM_CREATE ? Pin
Tomasz Sowinski24-Jul-01 3:11
Tomasz Sowinski24-Jul-01 3:11 
Generalneed an advice... Pin
24-Jul-01 1:54
suss24-Jul-01 1:54 
GeneralRe: need an advice... Pin
Michael Dunn24-Jul-01 2:09
sitebuilderMichael Dunn24-Jul-01 2:09 
GeneralHow? can u write a code sample? Pin
24-Jul-01 2:54
suss24-Jul-01 2:54 
GeneralRe: How? can u write a code sample? Pin
24-Jul-01 2:57
suss24-Jul-01 2:57 
Generalwhat? Pin
24-Jul-01 3:01
suss24-Jul-01 3:01 
GeneralRe: what? Pin
EiSl25-Jul-01 3:23
EiSl25-Jul-01 3:23 
GeneralMFC: Creating and showing a second, docking toolbar Pin
skfnmuislædmufaæoi24-Jul-01 1:45
skfnmuislædmufaæoi24-Jul-01 1:45 
GeneralRe: MFC: Creating and showing a second, docking toolbar Pin
Tomasz Sowinski24-Jul-01 2:04
Tomasz Sowinski24-Jul-01 2:04 
GeneralRe: How to get a popup menu by right clicking? Pin
Tomasz Sowinski24-Jul-01 1:21
Tomasz Sowinski24-Jul-01 1:21 
GeneralProblem with strings Pin
24-Jul-01 0:47
suss24-Jul-01 0:47 
GeneralRe: Problem with strings Pin
Gerry24-Jul-01 1:09
Gerry24-Jul-01 1:09 
GeneralProblem with strings Pin
24-Jul-01 1:41
suss24-Jul-01 1:41 
GeneralRe: Problem with strings Pin
Tomasz Sowinski24-Jul-01 1:48
Tomasz Sowinski24-Jul-01 1:48 
GeneralProblem with strings Pin
24-Jul-01 3:50
suss24-Jul-01 3:50 
GeneralRe: Problem with strings Pin
Tomasz Sowinski24-Jul-01 4:12
Tomasz Sowinski24-Jul-01 4:12 
GeneralRe: Problem with strings Pin
24-Jul-01 4:45
suss24-Jul-01 4:45 

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.