Click here to Skip to main content
16,006,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 1:41
mpallavi6-Jun-05 1:41 
GeneralRe: Why am i getting this message? Pin
RChin6-Jun-05 1:50
RChin6-Jun-05 1:50 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 2:26
mpallavi6-Jun-05 2:26 
AnswerRe: Why am i getting this message? Pin
ThatsAlok6-Jun-05 1:07
ThatsAlok6-Jun-05 1:07 
GeneralRe: Why am i getting this message? Pin
mpallavi6-Jun-05 1:43
mpallavi6-Jun-05 1:43 
GeneralRe: Why am i getting this message? Pin
ThatsAlok6-Jun-05 1:47
ThatsAlok6-Jun-05 1:47 
Generalcapturing the save events Pin
Anonymous6-Jun-05 0:47
Anonymous6-Jun-05 0:47 
GeneralRe: capturing the save events Pin
MailtoGops6-Jun-05 4:54
MailtoGops6-Jun-05 4:54 
Sunil Virmani,

When you design a menu using RC editor or if you create a menu item dynamically, it will have a window ID which is uniquly used to find out which control generates that event. Suppose if you have a menu item ID_FILE_SAVE it will have a interger value. This integer value is passed with the LOWORD of wParam.

-- If you use MFC , you can use ON_UPDATE_COMMAND_UI macro. The corresponding handler will be called/notified when there is an event.

-- If you want to process the message, you can use ON_COMMAND(id,memberFxn ); macro. IT will call appropriate handler.

-- In case if you use Win32 SDK, you have to use switch case..

switch(msgType)
{
case WM_COMMAND:
if (LOWORD(lParam)) == ID_FILE_PRINT)
{
//.. do your process here
}

}


Thanks & Regards,

Gopalakrishnan

" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "

- Words from Nelson Mandela

Thanks & Regards,

Gopalakrishnan
GeneralRe: capturing the save events Pin
Sunil Virmani6-Jun-05 18:19
Sunil Virmani6-Jun-05 18:19 
GeneralGetting the number of packets received / sent Pin
Nikhil Wason5-Jun-05 23:53
Nikhil Wason5-Jun-05 23:53 
GeneralRe: Getting the number of packets received / sent Pin
ThatsAlok5-Jun-05 23:56
ThatsAlok5-Jun-05 23:56 
GeneralRe: Getting the number of packets received / sent Pin
Cedric Moonen6-Jun-05 0:03
Cedric Moonen6-Jun-05 0:03 
GeneralRe: Getting the number of packets received / sent Pin
ThatsAlok6-Jun-05 0:12
ThatsAlok6-Jun-05 0:12 
GeneralRe: Getting the number of packets received / sent Pin
MailtoGops6-Jun-05 4:36
MailtoGops6-Jun-05 4:36 
GeneralRe: Getting the number of packets received / sent Pin
ThatsAlok6-Jun-05 18:05
ThatsAlok6-Jun-05 18:05 
GeneralUse of Enter with Edit Box Pin
sweep1235-Jun-05 23:43
sweep1235-Jun-05 23:43 
GeneralRe: Use of Enter with Edit Box Pin
ThatsAlok5-Jun-05 23:54
ThatsAlok5-Jun-05 23:54 
GeneralRe: Use of Enter with Edit Box Pin
sweep1236-Jun-05 0:32
sweep1236-Jun-05 0:32 
GeneralRe: Use of Enter with Edit Box Pin
ThatsAlok6-Jun-05 0:47
ThatsAlok6-Jun-05 0:47 
GeneralRe: Use of Enter with Edit Box Pin
ddmcr6-Jun-05 0:49
ddmcr6-Jun-05 0:49 
GeneralRe: Use of Enter with Edit Box Pin
sweep1236-Jun-05 0:58
sweep1236-Jun-05 0:58 
GeneralRe: Use of Enter with Edit Box Pin
ddmcr6-Jun-05 1:01
ddmcr6-Jun-05 1:01 
GeneralRe: Use of Enter with Edit Box Pin
ThatsAlok6-Jun-05 1:11
ThatsAlok6-Jun-05 1:11 
GeneralRe: Use of Enter with Edit Box Pin
sweep1236-Jun-05 1:20
sweep1236-Jun-05 1:20 
GeneralRe: Use of Enter with Edit Box Pin
ThatsAlok6-Jun-05 1:31
ThatsAlok6-Jun-05 1:31 

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.