wparm,lparm
-
I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging. "Every thing can be done Better, Then it is being done"
Scorpio wrote:
I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging.
Read this short discussion[^].
Nibu thomas A Developer Programming tips[^] My site[^]
-
I have come across this wparm,lparm terms a lot of time ,can anybody please tell me what are this paramaters and what they contain when used in messaging. "Every thing can be done Better, Then it is being done"
WPARAM and LPARAM are message parameters which is defined as typedef UINT_PTR WPARAM; u can use this parameters when u ::SendMessage or ::PostMessage to a window. this value can be anything casted to WPARAM or LPARAM. The message processing is the function which decides which parameter to use. u can pass pointers integer values etc... but the final processing is doing in the message processing function. you can define your on message by using ON_MESSAGE macro inside the Message map eg: // example for ON_MESSAGE #define WM_MYMESSAGE (WM_USER + 1) BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass ) ON_MESSAGE( WM_MYMESSAGE, OnMyMessage ) // ... Possibly more entries to handle additional messages END_MESSAGE_MAP( ) refer MSDN for more information SaRath
-
WPARAM and LPARAM are message parameters which is defined as typedef UINT_PTR WPARAM; u can use this parameters when u ::SendMessage or ::PostMessage to a window. this value can be anything casted to WPARAM or LPARAM. The message processing is the function which decides which parameter to use. u can pass pointers integer values etc... but the final processing is doing in the message processing function. you can define your on message by using ON_MESSAGE macro inside the Message map eg: // example for ON_MESSAGE #define WM_MYMESSAGE (WM_USER + 1) BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass ) ON_MESSAGE( WM_MYMESSAGE, OnMyMessage ) // ... Possibly more entries to handle additional messages END_MESSAGE_MAP( ) refer MSDN for more information SaRath
-
Is it correct that all the messages are getting processed by function RUN which is embeded in my global object theApp