Click here to Skip to main content
14,768,148 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Phone Dialer Pin
Bram van Kampen4-May-16 15:05
MemberBram van Kampen4-May-16 15:05 
QuestionHow to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
Amrit Agr28-Apr-16 6:49
MemberAmrit Agr28-Apr-16 6:49 
QuestionRe: How to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
David Crow28-Apr-16 10:50
MemberDavid Crow28-Apr-16 10:50 
AnswerRe: How to implement Ctrl + tab to navigate between tabs in a CTabCtrl Pin
Amrit Agr29-Apr-16 0:21
MemberAmrit Agr29-Apr-16 0:21 
QuestionDoes DestroyWindow Parent CDialog destroy all ChildControls Pin
ForNow27-Apr-16 14:11
MemberForNow27-Apr-16 14:11 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
Richard MacCutchan27-Apr-16 22:45
mveRichard MacCutchan27-Apr-16 22:45 
GeneralRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
ForNow28-Apr-16 3:13
MemberForNow28-Apr-16 3:13 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
leon de boer28-Apr-16 2:34
Memberleon de boer28-Apr-16 2: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 3:16
MemberForNow28-Apr-16 3:16 
AnswerRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
Parthiban.Appuswamy28-Apr-16 4:39
MemberParthiban.Appuswamy28-Apr-16 4:39 
GeneralRe: Does DestroyWindow Parent CDialog destroy all ChildControls Pin
leon de boer28-Apr-16 5:51
Memberleon de boer28-Apr-16 5:51 
QuestionHow To Look At GCC C Sources Pin
Frederick J. Harris24-Apr-16 3:22
MemberFrederick J. Harris24-Apr-16 3:22 
AnswerRe: How To Look At GCC C Sources Pin
Richard MacCutchan24-Apr-16 4:02
mveRichard MacCutchan24-Apr-16 4:02 
GeneralRe: How To Look At GCC C Sources Pin
Frederick J. Harris24-Apr-16 5:57
MemberFrederick J. Harris24-Apr-16 5:57 
GeneralRe: How To Look At GCC C Sources Pin
Richard MacCutchan24-Apr-16 6:44
mveRichard MacCutchan24-Apr-16 6:44 
AnswerRe: How To Look At GCC C Sources Pin
Jochen Arndt24-Apr-16 22:32
professionalJochen Arndt24-Apr-16 22:32 
GeneralRe: How To Look At GCC C Sources Pin
Frederick J. Harris25-Apr-16 0:57
MemberFrederick J. Harris25-Apr-16 0:57 
QuestionExchanging data using CSocket Pin
manoharbalu22-Apr-16 23:30
Membermanoharbalu22-Apr-16 23:30 
AnswerRe: Exchanging data using CSocket Pin
Jochen Arndt23-Apr-16 0:30
professionalJochen Arndt23-Apr-16 0:30 
GeneralRe: Exchanging data using CSocket Pin
manoharbalu24-Apr-16 21:23
Membermanoharbalu24-Apr-16 21:23 
GeneralRe: Exchanging data using CSocket Pin
Jochen Arndt24-Apr-16 21:53
professionalJochen Arndt24-Apr-16 21:53 
QuestionAdding UI to an existing console project using windows form Pin
Member 935023722-Apr-16 7:05
MemberMember 935023722-Apr-16 7:05 
AnswerRe: Adding UI to an existing console project using windows form Pin
Richard MacCutchan22-Apr-16 7:47
mveRichard MacCutchan22-Apr-16 7:47 
GeneralRe: Adding UI to an existing console project using windows form Pin
Member 935023725-Apr-16 22:51
MemberMember 935023725-Apr-16 22:51 
AnswerRe: Adding UI to an existing console project using windows form Pin
leon de boer24-Apr-16 16:49
Memberleon de boer24-Apr-16 16: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.