Click here to Skip to main content
15,907,395 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Diff. between DestroyWindow() and EndDialog() Pin
Rage23-Jul-07 23:26
professionalRage23-Jul-07 23:26 
AnswerRe: Diff. between DestroyWindow() and EndDialog() Pin
nitin323-Jul-07 23:52
nitin323-Jul-07 23:52 
AnswerRe: Diff. between DestroyWindow() and EndDialog() Pin
Rajkumar R23-Jul-07 23:56
Rajkumar R23-Jul-07 23:56 
AnswerRe: Diff. between DestroyWindow() and EndDialog() Pin
Mark Salsbery24-Jul-07 5:19
Mark Salsbery24-Jul-07 5:19 
GeneralRe: Diff. between DestroyWindow() and EndDialog() Pin
Abhijeet Pathak24-Jul-07 6:20
Abhijeet Pathak24-Jul-07 6:20 
GeneralRe: Diff. between DestroyWindow() and EndDialog() Pin
Mark Salsbery24-Jul-07 6:23
Mark Salsbery24-Jul-07 6:23 
QuestionWindows Media Encoder Pin
Chikanok23-Jul-07 23:04
Chikanok23-Jul-07 23:04 
QuestionHow to get press enter key message from combobox control? Pin
hanlei000000000923-Jul-07 22:21
hanlei000000000923-Jul-07 22:21 
If I get press enter key message from edit control, like this:
<br />
BOOL   PreTranslateMessage(MSG*   pMsg)     <br />
{   <br />
	<br />
	if(pMsg->message   ==   WM_KEYDOWN)   <br />
	{   <br />
		<br />
		CWnd   *p   =   GetDlgItem(IDC_EDIT1);   <br />
	<br />
		if(pMsg->wParam   ==   VK_RETURN   &&   pMsg->hwnd   ==   p->m_hWnd   )   <br />
		{   <br />
			MessageBox("OK");   <br />
			return   TRUE;   <br />
		}  <br />
<br />
	}   <br />
<br />
	return   CDialog::PreTranslateMessage(pMsg);   <br />
}<br />

that's OK, but if I get press enter key message from combobox control:
<br />
BOOL   PreTranslateMessage(MSG*   pMsg)     <br />
{   <br />
	<br />
	if(pMsg->message   ==   WM_KEYDOWN)   <br />
	{   <br />
		<br />
		CWnd   *p   =   GetDlgItem(IDC_COMBO);   // IDC_COMBO: combobox<br />
	<br />
		if(pMsg->wParam   ==   VK_RETURN   &&   pMsg->hwnd   ==   p->m_hWnd   )   <br />
		{   <br />
			MessageBox("OK");   <br />
			return   TRUE;   <br />
		}  <br />
<br />
	}   <br />
<br />
	return   CDialog::PreTranslateMessage(pMsg);   <br />
}<br />

pMsg->hwnd not equals p->m_hWnd,
why?
AnswerRe: How to get press enter key message from combobox control? Pin
Rajkumar R23-Jul-07 22:56
Rajkumar R23-Jul-07 22:56 
QuestionOverlapped I/O with I/O Completion Ports Pin
Zerox MXI23-Jul-07 22:14
Zerox MXI23-Jul-07 22:14 
AnswerRe: Overlapped I/O with I/O Completion Ports Pin
Mark Salsbery24-Jul-07 5:37
Mark Salsbery24-Jul-07 5:37 
GeneralRe: Overlapped I/O with I/O Completion Ports Pin
Zerox MXI25-Jul-07 16:17
Zerox MXI25-Jul-07 16:17 
Questionzooming progam for dialog window Pin
Rokini23-Jul-07 22:11
Rokini23-Jul-07 22:11 
AnswerRe: zooming progam for dialog window Pin
Arman S.24-Jul-07 1:58
Arman S.24-Jul-07 1:58 
QuestionRe: zooming progam for dialog window Pin
David Crow24-Jul-07 3:26
David Crow24-Jul-07 3:26 
AnswerRe: zooming progam for dialog window Pin
Rokini24-Jul-07 18:48
Rokini24-Jul-07 18:48 
AnswerRe: zooming progam for dialog window Pin
Rokini24-Jul-07 18:58
Rokini24-Jul-07 18:58 
QuestionA Question about lib files Pin
mt_samiei23-Jul-07 21:34
mt_samiei23-Jul-07 21:34 
AnswerRe: A Question about lib files Pin
Jonathan [Darka]23-Jul-07 21:42
professionalJonathan [Darka]23-Jul-07 21:42 
GeneralRe: A Question about lib files Pin
mt_samiei23-Jul-07 21:54
mt_samiei23-Jul-07 21:54 
GeneralRe: A Question about lib files Pin
Jonathan [Darka]23-Jul-07 22:09
professionalJonathan [Darka]23-Jul-07 22:09 
GeneralRe: A Question about lib files Pin
mt_samiei23-Jul-07 22:13
mt_samiei23-Jul-07 22:13 
AnswerRe: A Question about lib files Pin
Rajkumar R23-Jul-07 22:30
Rajkumar R23-Jul-07 22:30 
GeneralRe: A Question about lib files Pin
mt_samiei23-Jul-07 22:36
mt_samiei23-Jul-07 22:36 
AnswerRe: A Question about lib files Pin
Rajkumar R23-Jul-07 22:43
Rajkumar R23-Jul-07 22:43 

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.