Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: interface to proxy object in COM Pin
George_George5-Aug-08 21:43
George_George5-Aug-08 21:43 
GeneralRe: interface to proxy object in COM Pin
Stephen Hewitt5-Aug-08 21:45
Stephen Hewitt5-Aug-08 21:45 
GeneralRe: interface to proxy object in COM Pin
George_George5-Aug-08 21:52
George_George5-Aug-08 21:52 
Questionquestion about bits field structure in C Pin
kcynic5-Aug-08 15:54
kcynic5-Aug-08 15:54 
AnswerRe: question about bits field structure in C Pin
hoxsiew5-Aug-08 16:40
hoxsiew5-Aug-08 16:40 
GeneralRe: question about bits field structure in C Pin
kcynic5-Aug-08 16:56
kcynic5-Aug-08 16:56 
QuestionON_MESSAGE vs linker Pin
greghint5-Aug-08 14:28
greghint5-Aug-08 14:28 
GeneralRe: ON_MESSAGE vs linker [modified] Pin
fantasy12155-Aug-08 15:59
fantasy12155-Aug-08 15:59 
I think you should define your specified MSG like:
in your UsrMsg.h or .h file anywhere
<br />
#define UM_MY_MSG WM_USER + 10


secondly, use ::SendMessage to consume the message:
::SendMessage(pWnd->GetSafeHwnd(), UM_MY_MSG, NULL, NULL); //Let's assume pWnd is a CMyDialog instance

thirdly in CMyDialog to map the UM_MY_MSG message
BEGIN_MESSAGE_MAP(CMyDialog , CDialog)
   <font color="blue">ON_MESSAGE(UM_MY_MSG, OnDealMsg)</font>
END_MESSAGE_MAP


forthly implement the OnDealMsg method! Hope it helps!

modified on Tuesday, August 5, 2008 10:15 PM

AnswerRe: ON_MESSAGE vs linker Pin
Mark Salsbery6-Aug-08 5:36
Mark Salsbery6-Aug-08 5:36 
GeneralRe: ON_MESSAGE vs linker Pin
greghint6-Aug-08 6:10
greghint6-Aug-08 6:10 
QuestionHow do I alter the mfc image icon - (on the top left corner of all programs) Pin
simon alec smith5-Aug-08 11:28
simon alec smith5-Aug-08 11:28 
AnswerRe: How do I alter the mfc image icon - (on the top left corner of all programs) Pin
Mark Salsbery5-Aug-08 11:55
Mark Salsbery5-Aug-08 11:55 
AnswerRe: How do I alter the mfc image icon - (on the top left corner of all programs) Pin
hoxsiew5-Aug-08 14:15
hoxsiew5-Aug-08 14:15 
QuestionQuestion about using the CSliderCtrl to control the Ruler... Pin
oppstp5-Aug-08 9:32
oppstp5-Aug-08 9:32 
QuestionRemoving focus for an hyperlink control Pin
YKK Reddy5-Aug-08 7:38
YKK Reddy5-Aug-08 7:38 
AnswerRe: Removing focus for an hyperlink control Pin
hoxsiew5-Aug-08 8:38
hoxsiew5-Aug-08 8:38 
GeneralRe: Removing focus for an hyperlink control Pin
YKK Reddy5-Aug-08 19:55
YKK Reddy5-Aug-08 19:55 
QuestionHow to convert variant_t data type to char* or char array or const char* or CString data type? Pin
yklim5-Aug-08 6:05
yklim5-Aug-08 6:05 
AnswerRe: How to convert variant_t data type to char* or char array or const char* or CString data type? Pin
led mike5-Aug-08 7:00
led mike5-Aug-08 7:00 
AnswerRe: How to convert variant_t data type to char* or char array or const char* or CString data type? Pin
hoxsiew5-Aug-08 7:10
hoxsiew5-Aug-08 7:10 
AnswerRe: How to convert variant_t data type to char* or char array or const char* or CString data type? Pin
George L. Jackson5-Aug-08 7:43
George L. Jackson5-Aug-08 7:43 
QuestionDebug mode and Break Points Pin
john john mackey5-Aug-08 5:25
john john mackey5-Aug-08 5:25 
AnswerRe: Debug mode and Break Points Pin
Waldermort5-Aug-08 18:29
Waldermort5-Aug-08 18:29 
QuestionHide process Pin
Daniel Kanev5-Aug-08 5:02
Daniel Kanev5-Aug-08 5:02 
AnswerRe: Hide process Pin
Stephen Hewitt5-Aug-08 13:54
Stephen Hewitt5-Aug-08 13:54 

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.