Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why? Pin
pierre_ribery16-Dec-07 23:08
pierre_ribery16-Dec-07 23:08 
GeneralRe: Why? Pin
CPallini16-Dec-07 23:17
mveCPallini16-Dec-07 23:17 
GeneralRe: Why? Pin
pierre_ribery16-Dec-07 23:29
pierre_ribery16-Dec-07 23:29 
GeneralRe: Why? Pin
CPallini16-Dec-07 23:34
mveCPallini16-Dec-07 23:34 
GeneralRe: Why? Pin
pierre_ribery16-Dec-07 23:37
pierre_ribery16-Dec-07 23:37 
JokeRe: Why? Pin
CPallini17-Dec-07 0:00
mveCPallini17-Dec-07 0:00 
GeneralRe: mfc dialog application problem Pin
zengkun10016-Dec-07 23:06
zengkun10016-Dec-07 23:06 
GeneralRe: mfc dialog application problem Pin
Nelek16-Dec-07 22:41
protectorNelek16-Dec-07 22:41 
You are not totally right. The constructor is not a good place because the window is not created yet and you will get assertions. The OnInitDialog is called in the very moment when the window and all its controls where created and are going to be shown. If you modify contents, properties and so on of the controls and/or the dialog itself. It should give you no problems.

The window have not been displayed yet, but is the moment where it is being displayed, so all elements and relationships are already there.

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson

GeneralRe: mfc dialog application problem Pin
zengkun10016-Dec-07 23:14
zengkun10016-Dec-07 23:14 
QuestionCode to detect clicking the minimize icon? Pin
fantasy121516-Dec-07 21:40
fantasy121516-Dec-07 21:40 
GeneralRe: Code to detect clicking the minimize icon? Pin
Naveen16-Dec-07 22:04
Naveen16-Dec-07 22:04 
GeneralMSDN const_cast sample Pin
George_George16-Dec-07 21:34
George_George16-Dec-07 21:34 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:05
mveCPallini16-Dec-07 22:05 
GeneralRe: MSDN const_cast sample Pin
George_George16-Dec-07 22:28
George_George16-Dec-07 22:28 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:40
mveCPallini16-Dec-07 22:40 
GeneralRe: MSDN const_cast sample Pin
toxcct16-Dec-07 22:49
toxcct16-Dec-07 22:49 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:56
mveCPallini16-Dec-07 22:56 
GeneralRe: MSDN const_cast sample Pin
George_George17-Dec-07 2:21
George_George17-Dec-07 2:21 
GeneralRe: MSDN const_cast sample Pin
toxcct17-Dec-07 3:32
toxcct17-Dec-07 3:32 
GeneralRe: MSDN const_cast sample Pin
George_George17-Dec-07 2:19
George_George17-Dec-07 2:19 
GeneralRe: MSDN const_cast sample Pin
toxcct16-Dec-07 22:15
toxcct16-Dec-07 22:15 
GeneralRe: MSDN const_cast sample Pin
George_George16-Dec-07 22:29
George_George16-Dec-07 22:29 
GeneralRe: MSDN const_cast sample Pin
toxcct16-Dec-07 22:46
toxcct16-Dec-07 22:46 
GeneralRe: MSDN const_cast sample Pin
George_George17-Dec-07 2:23
George_George17-Dec-07 2:23 
GeneralRe: MSDN const_cast sample Pin
CPallini16-Dec-07 22:32
mveCPallini16-Dec-07 22: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.