Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help about capDlgVideoSource Pin
Mark Salsbery24-May-07 7:05
Mark Salsbery24-May-07 7:05 
QuestionDLL Initialization Failed Pin
Tal S.23-May-07 22:32
Tal S.23-May-07 22:32 
QuestionIs it possible to give window message different priority ? Pin
GameProfessor23-May-07 22:14
GameProfessor23-May-07 22:14 
AnswerRe: Is it possible to give window message different priority ? Pin
Roger Stoltz23-May-07 23:28
Roger Stoltz23-May-07 23:28 
QuestionObject Ids for my menu options Pin
prithaa23-May-07 21:56
prithaa23-May-07 21:56 
QuestionRe: Object Ids for my menu options Pin
Naveen23-May-07 22:06
Naveen23-May-07 22:06 
AnswerRe: Object Ids for my menu options Pin
prithaa23-May-07 23:18
prithaa23-May-07 23:18 
GeneralRe: Object Ids for my menu options Pin
Naveen23-May-07 23:25
Naveen23-May-07 23:25 
When a menu is clicked, a WM_COMMAND message is send to the parent window of that menu. So handle the WM_COMMAND message ( overide the OnCommand if your using MFC dialog ) in the parent window.

BOOL CMyDlg::OnCommand(WPARAM wParam, LPARAM lParam) <br />
{<br />
	// TODO: Add your specialized code here and/or call the base class<br />
	if( HIWORD(wParam) == 0 )<br />
	{<br />
		if ( LOWORD(wParam) == IDR_STRING142 )<br />
		{<br />
			// menu with id IDR_STRING142 clicked<br />
		}<br />
		else if ( LOWORD(wParam) == IDS_STRING143 )<br />
		{<br />
			// menu with id IDS_STRING143 clicked<br />
		}<br />
		....<br />
	}<br />
	return CDialog::OnCommand(wParam, lParam);<br />
}


nave

GeneralRe: Object Ids for my menu options Pin
prithaa24-May-07 0:08
prithaa24-May-07 0:08 
GeneralRe: Object Ids for my menu options Pin
Naveen24-May-07 0:12
Naveen24-May-07 0:12 
GeneralRe: Object Ids for my menu options Pin
prithaa24-May-07 0:44
prithaa24-May-07 0:44 
Questionvirus Pin
saisp23-May-07 21:52
saisp23-May-07 21:52 
JokeRe: virus Pin
Optimus Chaos23-May-07 22:29
Optimus Chaos23-May-07 22:29 
JokeRe: virus Pin
Rajesh R Subramanian23-May-07 22:42
professionalRajesh R Subramanian23-May-07 22:42 
JokeRe: virus Pin
Hamid_RT23-May-07 23:18
Hamid_RT23-May-07 23:18 
GeneralRe: virus Pin
David Crow24-May-07 4:10
David Crow24-May-07 4:10 
JokeRe: virus Pin
Mark Salsbery24-May-07 7:09
Mark Salsbery24-May-07 7:09 
QuestionMessage Way Pin
baerten23-May-07 21:49
baerten23-May-07 21:49 
AnswerRe: Message Way Pin
Naveen23-May-07 22:04
Naveen23-May-07 22:04 
GeneralRe: Message Way Pin
baerten23-May-07 22:10
baerten23-May-07 22:10 
GeneralRe: Message Way Pin
Naveen23-May-07 22:15
Naveen23-May-07 22:15 
GeneralRe: Message Way Pin
baerten23-May-07 22:33
baerten23-May-07 22:33 
GeneralRe: Message Way Pin
Naveen23-May-07 22:46
Naveen23-May-07 22:46 
GeneralRe: Message Way Pin
baerten23-May-07 23:01
baerten23-May-07 23:01 
GeneralRe: Message Way Pin
Naveen23-May-07 23:05
Naveen23-May-07 23:05 

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.