Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WM_NOTIFY

Status
Not open for further replies.

chris2001a

Programmer
Oct 8, 2001
5
GB
I'm trying to send a WM_NOTIFY msg to my main class from a listener, however I get an access violation exception :(
I'm trying to find a sample of a program that uses a WM_NOTIFY with a OnNotify.
Or alternatively, is there another ways to tell my main class that something happen without writing a separate thread that check a boolean to retrieve the value.... Not a nice solution :-/

Thanks,

Chris.
 
Typically one uses ON_MESSAGE

ON_MESSAGE( WM_MYMESSAGE, OnMyMessage )

with a message number in the range WM_USER to 0x7FFF (better WM_USER+100 or so). With WM_NOTIFY you need an NMHDR structure in lParam...
:) Hope that this helped! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top