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

C / C++ / MFC

 
GeneralRe: Help with DateTime() Pin
Michael Dunn18-Jul-05 7:46
sitebuilderMichael Dunn18-Jul-05 7:46 
GeneralRe: Help with DateTime() Pin
Lagwagon5618-Jul-05 7:53
Lagwagon5618-Jul-05 7:53 
GeneralIsWindow Pin
Larsson18-Jul-05 6:11
Larsson18-Jul-05 6:11 
GeneralRe: IsWindow Pin
Jose Lamas Rios18-Jul-05 6:49
Jose Lamas Rios18-Jul-05 6:49 
GeneralRe: IsWindow Pin
Larsson18-Jul-05 7:05
Larsson18-Jul-05 7:05 
GeneralRe: IsWindow Pin
Jose Lamas Rios18-Jul-05 7:36
Jose Lamas Rios18-Jul-05 7:36 
GeneralMissing OnInitDialog() Pin
Robert Palma Jr.18-Jul-05 5:27
Robert Palma Jr.18-Jul-05 5:27 
GeneralRe: Missing OnInitDialog() Pin
Jose Lamas Rios18-Jul-05 5:53
Jose Lamas Rios18-Jul-05 5:53 
Robert Palma Jr. wrote:
Somehow, on the last Dialog Box / Class that I created, the OnInitDialog() function did not show up.

Any help on creating an OnInitDialog(0 function would be greatly appreciated


How about copying and adapting what you have in the other dialogs?

This is what you need:

1. Declare OnInitDialog as a member of your dialog class. Add it in the dialog header file (the .h file). It's something like this:
   virtual BOOL OnInitDialog();


2. Provide an implementation for YourDialog::OnInitDialog(). Add it to your dialog implementation file (the .cpp file). Something like this:

BOOL YourDialog::OnInitDialog()
{
   CDialog::OnInitDialog();
 
   // TODO: Add extra initialization here
 
   return TRUE;  // return TRUE  unless you set the focus to a control
}


That should be enough.

--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: Missing OnInitDialog() Pin
Robert Palma Jr.18-Jul-05 7:41
Robert Palma Jr.18-Jul-05 7:41 
GeneralRe: Missing OnInitDialog() Pin
Neelesh K J Jain18-Jul-05 6:45
Neelesh K J Jain18-Jul-05 6:45 
GeneralRe: Missing OnInitDialog() Pin
Robert Palma Jr.18-Jul-05 7:42
Robert Palma Jr.18-Jul-05 7:42 
Generaldrawing gradient dots or colored in mfc Pin
Assariah kingsly18-Jul-05 5:20
Assariah kingsly18-Jul-05 5:20 
GeneralRe: drawing gradient dots or colored in mfc Pin
Christian Graus18-Jul-05 13:05
protectorChristian Graus18-Jul-05 13:05 
GeneralMS Chart Pin
Marc Soleda18-Jul-05 5:13
Marc Soleda18-Jul-05 5:13 
GeneralBuilding error Pin
phpmb18-Jul-05 5:04
phpmb18-Jul-05 5:04 
GeneralRe: Building error Pin
Budric B.18-Jul-05 5:42
Budric B.18-Jul-05 5:42 
QuestionHow to Get Current Running No. Of Threads Pin
zinc_z18-Jul-05 4:48
zinc_z18-Jul-05 4:48 
AnswerRe: How to Get Current Running No. Of Threads Pin
Blake Miller18-Jul-05 5:26
Blake Miller18-Jul-05 5:26 
Generalerror C2146 in Visual C++ Pin
PapermillBill18-Jul-05 4:40
PapermillBill18-Jul-05 4:40 
GeneralRe: error C2146 in Visual C++ Pin
Jose Lamas Rios18-Jul-05 4:54
Jose Lamas Rios18-Jul-05 4:54 
GeneralRe: error C2146 in Visual C++ Pin
Anonymous18-Jul-05 7:10
Anonymous18-Jul-05 7:10 
GeneralRe: error C2146 in Visual C++ Pin
Jose Lamas Rios18-Jul-05 7:19
Jose Lamas Rios18-Jul-05 7:19 
GeneralRe: error C2146 in Visual C++ Pin
David Crow18-Jul-05 8:04
David Crow18-Jul-05 8:04 
Generaltransparent printing problem with hp plotter and gdi+ Pin
navajo_2k18-Jul-05 3:15
navajo_2k18-Jul-05 3:15 
GeneralRe: transparent printing problem with hp plotter and gdi+ Pin
Shog918-Jul-05 12:31
sitebuilderShog918-Jul-05 12:31 

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.