Click here to Skip to main content
15,915,780 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRE: RE: RE: Register Class in a Dialog Based Application Pin
Tom Hunter5-Jan-00 1:28
Tom Hunter5-Jan-00 1:28 
GeneralRE: RE: RE: RE: Register Class in a Dialog Based Application Pin
Member 8106-Jan-00 1:55
Member 8106-Jan-00 1:55 
GeneralI need table convert color string to RGB in HTML Pin
Kobe24-Dec-99 7:31
Kobe24-Dec-99 7:31 
QuestionFont size problem ??? Pin
Kobe24-Dec-99 0:10
Kobe24-Dec-99 0:10 
AnswerRE: Font size problem ??? Pin
Alex Gorev3-Jan-00 4:57
Alex Gorev3-Jan-00 4:57 
AnswerRE: Font size problem ??? Pin
Andrei Zenkovitch3-Jan-00 8:15
Andrei Zenkovitch3-Jan-00 8:15 
AnswerRE: Font size problem ??? Pin
Tom Hunter5-Jan-00 1:38
Tom Hunter5-Jan-00 1:38 
GeneralRegisterWindowsMessage Pin
Member 351722-Dec-99 16:05
Member 351722-Dec-99 16:05 
I’ve been reading your submission on registerwindowmessage at the codeguru.com web site.

Your information in addition to some other sources, sure seems simple enough. The only problem is I just can not get it to work.

This is what I have done. Can you suggest where I am going wrong? Maybe it is the way I send the message?

I want to send a message from one dialog-based exe to another.

Both exe’s have this message defined.

#define TESTMSG "TESTMSG"


Both exe’s get the message id like this, and the debugger shows both get the same value.

int gnStartMsg = RegisterWindowMessage(TESTMSG);

The sending exe then sends a message like this.

SendMessage(gnStartMsg, 0, 0);



The receiving exe has this message map and member function.

BEGIN_MESSAGE_MAP(CRegToDlg, CDialog)
//{{AFX_MSG_MAP(CRegToDlg)
ON_WM_SYSCOMMAND()
ON_WM_PAINT()
ON_WM_QUERYDRAGICON()
//}}AFX_MSG_MAP
ON_REGISTERED_MESSAGE(gnStartMsg, OnMsgTest)

void CRegToDlg::OnMsgTest()
{
AfxMessageBox("I made it");
}


The messagebox is never displayed.
PMCGA61201@AOL.COM
Thank you.
GeneralRE: RegisterWindowsMessage Pin
Sadhu23-Dec-99 2:29
Sadhu23-Dec-99 2:29 
GeneralRE: RegisterWindowsMessage Pin
Mike Dunn24-Dec-99 5:12
Mike Dunn24-Dec-99 5:12 
GeneralWho had focus. Any high level suggestion would be helpful. Pin
Phil McGahan20-Dec-99 15:16
Phil McGahan20-Dec-99 15:16 
GeneralRE: Who had focus. Any high level suggestion would be helpful. Pin
Member 40421-Dec-99 12:33
Member 40421-Dec-99 12:33 
QuestionHow to send data with method POST in cgi ??? Pin
Kobe20-Dec-99 2:23
Kobe20-Dec-99 2:23 
AnswerRE: How to send data with method POST in cgi ??? Pin
Ghazi20-Dec-99 3:59
Ghazi20-Dec-99 3:59 
AnswerRE: How to send data with method POST in cgi ??? Pin
Ghazi20-Dec-99 4:07
Ghazi20-Dec-99 4:07 
GeneralRE: RE: How to send data with method POST in cgi ??? Pin
Kobe20-Dec-99 5:23
Kobe20-Dec-99 5:23 
AnswerRE: How to send data with method POST in cgi ??? Pin
RAJIV25-Dec-99 14:53
RAJIV25-Dec-99 14:53 
QuestionHow to know that file .gif is animated or not ??? Pin
Kobe20-Dec-99 1:46
Kobe20-Dec-99 1:46 
AnswerRE: How to know that file .gif is animated or not ??? Pin
Cristi Posea20-Dec-99 4:46
Cristi Posea20-Dec-99 4:46 
AnswerRE: How to know that file .gif is animated or not ??? Pin
Anonymous20-Dec-99 13:19
suss Anonymous20-Dec-99 13:19 
Generaltapi Pin
Member 453419-Dec-99 22:44
Member 453419-Dec-99 22:44 
GeneralRE: tapi Pin
Anonymous22-Dec-99 10:38
suss Anonymous22-Dec-99 10:38 
Generalread jpg Pin
roni19-Dec-99 0:35
roni19-Dec-99 0:35 
GeneralRE: read jpg Pin
Dmitriy20-Dec-99 14:57
Dmitriy20-Dec-99 14:57 
GeneralRS485 communication Pin
Petr Stejskal18-Dec-99 7:40
Petr Stejskal18-Dec-99 7:40 

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.