Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString to WCHAR Pin
Hesham Amin1-Dec-03 2:04
Hesham Amin1-Dec-03 2:04 
Generalhelp h43k4z again! Pin
h43k4z30-Nov-03 10:00
h43k4z30-Nov-03 10:00 
GeneralRe: help h43k4z again! Pin
Christian Graus30-Nov-03 10:43
protectorChristian Graus30-Nov-03 10:43 
Generalimage processing under visual c++ 6... Pin
Anonymous30-Nov-03 8:51
Anonymous30-Nov-03 8:51 
GeneralRe: image processing under visual c++ 6... Pin
Christian Graus30-Nov-03 9:12
protectorChristian Graus30-Nov-03 9:12 
GeneralParent and child dialogs Pin
J.B.30-Nov-03 7:28
J.B.30-Nov-03 7:28 
QuestionHow to destroy several instances of a dialog-derived class? Pin
julych30-Nov-03 7:24
julych30-Nov-03 7:24 
AnswerRe: How to destroy several instances of a dialog-derived class? Pin
Gareth Johnson30-Nov-03 8:44
sussGareth Johnson30-Nov-03 8:44 
You can use DestroyWindow() to delete the underlying MFC windows handle. Obviously, if you use this on a dialog this will delete all the underlying child handles associated with that dialog box. Another method is to use PostMessage(WM_CLOSE, 0, 0), which is the method I prefer. To destroy a chain of dialog associated with each other you could try SendMessageToSiblings(WM_CLOSE). This will filter through a dialog box chain sending the message to each sibling (To be honst I've never used this method so I don't know if it will work).
If you wanted to get all object orientated about it you could look at using the composite design pattern. This design pattern is used to forming complex tree structures and works brillantly for distributing messages across its tree structure.
Generaltoolbar Pin
Dudi Avramov30-Nov-03 6:15
Dudi Avramov30-Nov-03 6:15 
GeneralRe: toolbar Pin
Dudi Avramov30-Nov-03 6:26
Dudi Avramov30-Nov-03 6:26 
QuestionHow to Send an event from an Automation Server to its Client? Pin
Michigan185430-Nov-03 6:07
Michigan185430-Nov-03 6:07 
AnswerRe: How to Send an event from an Automation Server to its Client? Pin
igor19601-Dec-03 9:27
igor19601-Dec-03 9:27 
QuestionWhy SetFont don't work with CEdit? Pin
Ravi Prabhakar30-Nov-03 5:22
Ravi Prabhakar30-Nov-03 5:22 
AnswerRe: Why SetFont don't work with CEdit? Pin
Michigan185430-Nov-03 6:16
Michigan185430-Nov-03 6:16 
GeneralCOleDropTarget.Register() problem - HELP ! Pin
Still learning how to code30-Nov-03 5:13
Still learning how to code30-Nov-03 5:13 
GeneralRe: COleDropTarget.Register() problem - HELP ! Pin
Jörgen Sigvardsson30-Nov-03 11:47
Jörgen Sigvardsson30-Nov-03 11:47 
GeneralRe: COleDropTarget.Register() problem - HELP ! Pin
Still learning how to code30-Nov-03 21:42
Still learning how to code30-Nov-03 21:42 
GeneralShellExecute problem Pin
nss30-Nov-03 5:04
nss30-Nov-03 5:04 
GeneralRe: ShellExecute problem Pin
BaldwinMartin30-Nov-03 6:20
BaldwinMartin30-Nov-03 6:20 
GeneralRe: ShellExecute problem Pin
nss30-Nov-03 6:53
nss30-Nov-03 6:53 
GeneralRe: ShellExecute problem Pin
Michael Dunn30-Nov-03 8:38
sitebuilderMichael Dunn30-Nov-03 8:38 
GeneralRe: ShellExecute problem Pin
BaldwinMartin30-Nov-03 19:49
BaldwinMartin30-Nov-03 19:49 
GeneralSetting File Attributes Pin
#realJSOP30-Nov-03 3:44
professional#realJSOP30-Nov-03 3:44 
GeneralRe: Setting File Attributes Pin
Michael Dunn30-Nov-03 8:49
sitebuilderMichael Dunn30-Nov-03 8:49 
QuestionHow Creating Login with Password included by Dot? Pin
YULISA30-Nov-03 3:43
YULISA30-Nov-03 3:43 

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.