Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Phone Dialer Pin
Bram van Kampen4-May-16 14:05
Bram van Kampen4-May-16 14:05 
QuestionHow to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
Amrit Agr28-Apr-16 5:49
Amrit Agr28-Apr-16 5:49 
QuestionRe: How to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
David Crow28-Apr-16 9:50
David Crow28-Apr-16 9:50 
AnswerRe: How to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
Amrit Agr28-Apr-16 23:21
Amrit Agr28-Apr-16 23:21 
QuestionDoes DestroyWindow Parent CDialog destroy all ChildControls Pin
ForNow27-Apr-16 13:11
ForNow27-Apr-16 13:11 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
Richard MacCutchan27-Apr-16 21:45
mveRichard MacCutchan27-Apr-16 21:45 
GeneralRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
ForNow28-Apr-16 2:13
ForNow28-Apr-16 2:13 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
leon de boer28-Apr-16 1:34
leon de boer28-Apr-16 1:34 
No, Richard gave you the link all child windows are automatically disposed.

Your only responsibility is to cleanup any memory allocation, handles etc you specifically created. You do that by intercepting the WM_DESTROY message and cleaning up there. WM_DESTROY is sent just before the window is deleted but while the window is actually still valid.

Typically you create things in the WM_CREATE and you dispose of it in the WM_DESTROY.
In vino veritas

GeneralRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
ForNow28-Apr-16 2:16
ForNow28-Apr-16 2:16 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
Parthiban.Appuswamy28-Apr-16 3:39
Parthiban.Appuswamy28-Apr-16 3:39 
GeneralRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
leon de boer28-Apr-16 4:51
leon de boer28-Apr-16 4:51 
QuestionHow To Look At GCC C Sources Pin
Frederick J. Harris24-Apr-16 2:22
Frederick J. Harris24-Apr-16 2:22 
AnswerRe: How To Look At GCC C Sources Pin
Richard MacCutchan24-Apr-16 3:02
mveRichard MacCutchan24-Apr-16 3:02 
GeneralRe: How To Look At GCC C Sources Pin
Frederick J. Harris24-Apr-16 4:57
Frederick J. Harris24-Apr-16 4:57 
GeneralRe: How To Look At GCC C Sources Pin
Richard MacCutchan24-Apr-16 5:44
mveRichard MacCutchan24-Apr-16 5:44 
AnswerRe: How To Look At GCC C Sources Pin
Jochen Arndt24-Apr-16 21:32
professionalJochen Arndt24-Apr-16 21:32 
GeneralRe: How To Look At GCC C Sources Pin
Frederick J. Harris24-Apr-16 23:57
Frederick J. Harris24-Apr-16 23:57 
QuestionExchanging data using CSocket Pin
manoharbalu22-Apr-16 22:30
manoharbalu22-Apr-16 22:30 
AnswerRe: Exchanging data using CSocket Pin
Jochen Arndt22-Apr-16 23:30
professionalJochen Arndt22-Apr-16 23:30 
GeneralRe: Exchanging data using CSocket Pin
manoharbalu24-Apr-16 20:23
manoharbalu24-Apr-16 20:23 
GeneralRe: Exchanging data using CSocket Pin
Jochen Arndt24-Apr-16 20:53
professionalJochen Arndt24-Apr-16 20:53 
QuestionAdding UI to an existing console project using windows form Pin
Member 935023722-Apr-16 6:05
Member 935023722-Apr-16 6:05 
AnswerRe: Adding UI to an existing console project using windows form Pin
Richard MacCutchan22-Apr-16 6:47
mveRichard MacCutchan22-Apr-16 6:47 
GeneralRe: Adding UI to an existing console project using windows form Pin
Member 935023725-Apr-16 21:51
Member 935023725-Apr-16 21:51 
AnswerRe: Adding UI to an existing console project using windows form Pin
leon de boer24-Apr-16 15:49
leon de boer24-Apr-16 15:49 

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.