Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #include statements Pin
prithaa21-May-07 20:54
prithaa21-May-07 20:54 
QuestionGrabbing a word under the mouse Pin
Waldermort20-May-07 22:01
Waldermort20-May-07 22:01 
AnswerRe: Grabbing a word under the mouse Pin
Hamid_RT20-May-07 22:15
Hamid_RT20-May-07 22:15 
GeneralRe: Grabbing a word under the mouse Pin
Waldermort20-May-07 22:32
Waldermort20-May-07 22:32 
Questiontcscpy_s.inl Pin
subramanyeswari20-May-07 21:49
subramanyeswari20-May-07 21:49 
QuestionRe: tcscpy_s.inl Pin
GuyM21-May-07 0:42
GuyM21-May-07 0:42 
QuestionHelp,about destroy a CWnd Pin
kcynic20-May-07 21:32
kcynic20-May-07 21:32 
AnswerRe: Help,about destroy a CWnd Pin
Nelek21-May-07 1:01
protectorNelek21-May-07 1:01 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 3:42
kcynic21-May-07 3:42 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 5:32
Mark Salsbery21-May-07 5:32 
GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 12:45
kcynic21-May-07 12:45 
GeneralRe: Help,about destroy a CWnd Pin
Mark Salsbery21-May-07 12:55
Mark Salsbery21-May-07 12:55 
CWnd::DestroyWindow() takes care of destroying the HWND associated with the CWnd.

If you want to wait until initialization of the child window succeeds/fails before showing the
child window then create the child without the WS_VISIBLE style. If initialization succeeds call
ShowWindow(SW_SHOW). If it fails, maybe post a message to the parent and let the parent use
DestroyWindow() to destroy the child and also free the CWnd-derived object as well.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Help,about destroy a CWnd Pin
kcynic21-May-07 19:34
kcynic21-May-07 19:34 
QuestionNetwork Management Pin
dharani20-May-07 21:27
dharani20-May-07 21:27 
AnswerRe: Network Management Pin
Hamid_RT20-May-07 22:10
Hamid_RT20-May-07 22:10 
QuestionCreateProcess problem. Pin
david bagaturia20-May-07 21:00
david bagaturia20-May-07 21:00 
AnswerRe: CreateProcess problem. Pin
dharani20-May-07 21:15
dharani20-May-07 21:15 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:20
david bagaturia20-May-07 21:20 
GeneralRe: CreateProcess problem. Pin
dharani20-May-07 21:28
dharani20-May-07 21:28 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 21:33
david bagaturia20-May-07 21:33 
AnswerRe: CreateProcess problem. Pin
Stephen Hewitt20-May-07 21:51
Stephen Hewitt20-May-07 21:51 
GeneralRe: CreateProcess problem. Pin
david bagaturia20-May-07 22:46
david bagaturia20-May-07 22:46 
QuestionMotion Detection in VC++ Pin
tyagineha20-May-07 20:02
tyagineha20-May-07 20:02 
AnswerRe: Motion Detection in VC++ Pin
bankai12320-May-07 21:59
bankai12320-May-07 21:59 
GeneralRe: Motion Detection in VC++ Pin
tyagineha20-May-07 22:35
tyagineha20-May-07 22:35 

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.