Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Memory alignment changed from studio 2005 to 2010? Pin
CPallini23-Jun-11 22:28
mveCPallini23-Jun-11 22:28 
GeneralRe: Memory alignment changed from studio 2005 to 2010? Pin
William Engberts23-Jun-11 22:30
William Engberts23-Jun-11 22:30 
AnswerRe: Memory alignment changed from studio 2005 to 2010? Pin
Alain Rist24-Jun-11 5:14
Alain Rist24-Jun-11 5:14 
QuestionMFC: Message-only CWnd in an SDI application. [modified] Pin
Odysseas Z23-Jun-11 5:17
Odysseas Z23-Jun-11 5:17 
AnswerRe: MFC: Message-only CWnd in an SDI application. Pin
jeron123-Jun-11 6:23
jeron123-Jun-11 6:23 
GeneralRe: MFC: Message-only CWnd in an SDI application. Pin
Odysseas Z23-Jun-11 6:43
Odysseas Z23-Jun-11 6:43 
GeneralRe: MFC: Message-only CWnd in an SDI application. Pin
Albert Holguin23-Jun-11 8:37
professionalAlbert Holguin23-Jun-11 8:37 
AnswerRe: MFC: Message-only CWnd in an SDI application. Pin
Albert Holguin23-Jun-11 8:33
professionalAlbert Holguin23-Jun-11 8:33 
There's two ways to send messages in windows (not including PostMessage()):
Using the WinAPI[^]
OR
Using MFC[^]

Each one can do pretty much the same thing. In your posted code, you're using the MFC version, but since you're calling the method internal to CDialogMsg, you're posting the message to that specific CDialogMsg object (you have him sending that message to himself), not to any CInvisibleWnd object.

How can you specify to send it elsewhere?
//Use the target pointer to use the MFC SendMessage()
pWnd->SendMessage(...);
//Or you can use the WinAPI and specify the handle to your target
SendMessage( pWnd->GetSafeHwnd(), ...);


On a related note, you probably shouldn't name your messages with the "WM_" preffix, as that's there to indicate its an internal windows framework message.
QuestionExample of List control with Report view in MFC Pin
Amrit Agr23-Jun-11 0:12
Amrit Agr23-Jun-11 0:12 
AnswerRe: Example of List control with Report view in MFC Pin
«_Superman_»23-Jun-11 0:23
professional«_Superman_»23-Jun-11 0:23 
AnswerRe: Example of List control with Report view in MFC Pin
David Crow23-Jun-11 4:15
David Crow23-Jun-11 4:15 
QuestionHow to read data from a text file based on a deleimiter like ; Pin
Amrit Agr22-Jun-11 21:29
Amrit Agr22-Jun-11 21:29 
AnswerRe: How to read data from a text file based on a deleimiter like ; Pin
«_Superman_»22-Jun-11 21:39
professional«_Superman_»22-Jun-11 21:39 
QuestionRe: How to read data from a text file based on a deleimiter like ; Pin
CPallini22-Jun-11 23:14
mveCPallini22-Jun-11 23:14 
AnswerRe: How to read data from a text file based on a deleimiter like ; Pin
«_Superman_»22-Jun-11 23:18
professional«_Superman_»22-Jun-11 23:18 
GeneralRe: How to read data from a text file based on a deleimiter like ; Pin
Amrit Agr23-Jun-11 0:10
Amrit Agr23-Jun-11 0:10 
AnswerRe: How to read data from a text file based on a deleimiter like ; Pin
User 742933823-Jun-11 1:43
professionalUser 742933823-Jun-11 1:43 
GeneralRe: How to read data from a text file based on a deleimiter like ; Pin
«_Superman_»23-Jun-11 1:46
professional«_Superman_»23-Jun-11 1:46 
AnswerRe: How to read data from a text file based on a deleimiter like ; Pin
David Crow23-Jun-11 4:39
David Crow23-Jun-11 4:39 
Questionhelp plz Pin
lolaaaa22-Jun-11 2:06
lolaaaa22-Jun-11 2:06 
AnswerRe: help plz Pin
CPallini22-Jun-11 2:22
mveCPallini22-Jun-11 2:22 
GeneralRe: help plz Pin
lolaaaa22-Jun-11 2:27
lolaaaa22-Jun-11 2:27 
QuestionRe: help plz Pin
CPallini22-Jun-11 2:37
mveCPallini22-Jun-11 2:37 
AnswerRe: help plz Pin
lolaaaa22-Jun-11 2:41
lolaaaa22-Jun-11 2:41 
GeneralRe: help plz Pin
CPallini22-Jun-11 2:50
mveCPallini22-Jun-11 2:50 

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.