Solved

ON_THREAD_MESSAGE

Posted on 2000-02-24
2
1,351 Views
Last Modified: 2013-11-20
Hi,
I implemented a CWInThread derived class and I wanted to receive some asynchronous messages from other threads.

I used the MFC Macro ON_THREAD_MESSAGE on my code. Whats the meaning of the two arguments of the handler member function passed to by the framework (UINT, LONG)?

afx_msg void memberFxn(UINT, LONG)

Additionaly how can I retrieve the MSG inside this function?

Thanks,
Antonio Nogueira
0
Comment
Question by:nogueira
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 100 total points
ID: 2554183
Hi,

They R WPARAM and LAPARAM values I beleive. So Ur function will be as

afx_msg void memberFxn(WPARAM wp, LPARAM lp) ;

They r used for any additional message information. For example U can post the thread message with the
message = whatever message u want to send
next parameter = WPARAM = some addition value which means something to U.

similarly the third parameter.

Hope this gives some ideas.
VinExpert
0
 

Author Comment

by:nogueira
ID: 2555256
thanks,
Vin
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 124
Pressing cancel button with C# UI Automation 3 66
EvenOdd challenge 10 106
Line meaning 9 85
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question