Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Slider Direction Pin
Hamid_RT24-May-06 21:45
Hamid_RT24-May-06 21:45 
Questiontemplates Pin
vivek.s.vivek24-May-06 20:23
vivek.s.vivek24-May-06 20:23 
AnswerRe: templates [modified] Pin
Nibu babu thomas24-May-06 20:36
Nibu babu thomas24-May-06 20:36 
GeneralRe: templates [modified] Pin
Eytukan24-May-06 22:24
Eytukan24-May-06 22:24 
GeneralRe: templates [modified] Pin
Nibu babu thomas24-May-06 22:26
Nibu babu thomas24-May-06 22:26 
Questionwparm,lparm Pin
Scorpio24-May-06 20:22
Scorpio24-May-06 20:22 
AnswerRe: wparm,lparm Pin
Nibu babu thomas24-May-06 20:30
Nibu babu thomas24-May-06 20:30 
AnswerRe: wparm,lparm Pin
Sarath C24-May-06 20:31
Sarath C24-May-06 20:31 
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
GeneralRe: wparm,lparm Pin
Scorpio24-May-06 20:44
Scorpio24-May-06 20:44 
GeneralRe: wparm,lparm Pin
Sarath C24-May-06 21:19
Sarath C24-May-06 21:19 
Questionnew com port driver Pin
MyOwnShadow24-May-06 20:06
MyOwnShadow24-May-06 20:06 
AnswerRe: new com port driver Pin
NiceNaidu24-May-06 20:49
NiceNaidu24-May-06 20:49 
Questionsingleton inheritance Pin
Krishnatv24-May-06 19:55
Krishnatv24-May-06 19:55 
AnswerRe: singleton inheritance Pin
Nibu babu thomas24-May-06 20:16
Nibu babu thomas24-May-06 20:16 
QuestionCRichEditCtrl Pin
VinayCool24-May-06 19:47
VinayCool24-May-06 19:47 
AnswerRe: CRichEditCtrl Pin
Nibu babu thomas24-May-06 20:25
Nibu babu thomas24-May-06 20:25 
AnswerRe: CRichEditCtrl Pin
Steve Echols24-May-06 20:30
Steve Echols24-May-06 20:30 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:44
VinayCool24-May-06 20:44 
GeneralRe: CRichEditCtrl [modified] Pin
Steve Echols24-May-06 21:05
Steve Echols24-May-06 21:05 
GeneralRe: CRichEditCtrl [modified] Pin
VinayCool24-May-06 21:37
VinayCool24-May-06 21:37 
AnswerRe: CRichEditCtrl Pin
_anil_24-May-06 20:36
_anil_24-May-06 20:36 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:46
VinayCool24-May-06 20:46 
AnswerRe: CRichEditCtrl Pin
NiceNaidu24-May-06 20:40
NiceNaidu24-May-06 20:40 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:48
VinayCool24-May-06 20:48 
AnswerRe: CRichEditCtrl Pin
Hamid_RT24-May-06 20:53
Hamid_RT24-May-06 20:53 

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.