Click here to Skip to main content
15,918,049 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: WARNING Pin
Rajesh R Subramanian26-Sep-06 23:04
professionalRajesh R Subramanian26-Sep-06 23:04 
AnswerRe: WARNING Pin
Rinu_Raj26-Sep-06 23:04
Rinu_Raj26-Sep-06 23:04 
AnswerRe: WARNING Pin
toxcct26-Sep-06 23:07
toxcct26-Sep-06 23:07 
QuestionRe: WARNING Pin
David Crow27-Sep-06 2:49
David Crow27-Sep-06 2:49 
AnswerRe: WARNING Pin
toxcct27-Sep-06 3:01
toxcct27-Sep-06 3:01 
GeneralRe: WARNING Pin
David Crow27-Sep-06 3:06
David Crow27-Sep-06 3:06 
GeneralRe: WARNING Pin
toxcct27-Sep-06 3:10
toxcct27-Sep-06 3:10 
QuestionHow to get KeyPessed event from an editbox Pin
gunner_uk200026-Sep-06 22:55
gunner_uk200026-Sep-06 22:55 
Here is my event handling code:

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, <br />
						 WPARAM wParam, LPARAM lParam)<br />
{<br />
	switch(msg)<br />
	{<br />
	case WM_CREATE:<br />
		Init();<br />
	case WM_PAINT:<br />
		PaintScreen();<br />
		break;<br />
	case WM_CLOSE :<br />
		DestroyWindow(hwnd);<br />
		break;<br />
	case WM_KEYDOWN:<br />
		if(wParam == 13){<br />
			ProcessCommand();<br />
		}<br />
	case WM_COMMAND :<br />
		if(LOWORD(wParam) == ID_COMMAND)<br />
			ProcessCommand();<br />
		break;<br />
	case WM_DESTROY :<br />
		PostQuitMessage(0);<br />
		break;<br />
<br />
<br />
	}<br />
<br />
	return DefWindowProc(hwnd, msg, wParam, lParam);<br />
}


This only works if the main window has the focus, so how can i check which key was pressed if the editbox (ID_EDITBOX) has the focus.

Ie so that if the user presses enter i can run the proccessing needed on it.
AnswerRe: How to get KeyPessed event from an editbox Pin
Rinu_Raj26-Sep-06 23:01
Rinu_Raj26-Sep-06 23:01 
GeneralRe: How to get KeyPessed event from an editbox Pin
gunner_uk200026-Sep-06 23:19
gunner_uk200026-Sep-06 23:19 
AnswerRe: How to get KeyPessed event from an editbox Pin
Rinu_Raj26-Sep-06 23:34
Rinu_Raj26-Sep-06 23:34 
QuestionHow to exit from aplication ? Pin
Bravoone_200626-Sep-06 22:39
Bravoone_200626-Sep-06 22:39 
AnswerRe: How to exit from aplication ? Pin
toxcct26-Sep-06 22:50
toxcct26-Sep-06 22:50 
AnswerRe: How to exit from aplication ? Pin
Rinu_Raj26-Sep-06 22:50
Rinu_Raj26-Sep-06 22:50 
AnswerRe: How to exit from aplication ? Pin
Rajesh R Subramanian26-Sep-06 22:53
professionalRajesh R Subramanian26-Sep-06 22:53 
GeneralRe: How to exit from aplication ? Pin
toxcct26-Sep-06 22:58
toxcct26-Sep-06 22:58 
GeneralRe: How to exit from aplication ? Pin
Rajesh R Subramanian26-Sep-06 23:02
professionalRajesh R Subramanian26-Sep-06 23:02 
AnswerRe: How to exit from aplication ? Pin
Bravoone_200626-Sep-06 23:20
Bravoone_200626-Sep-06 23:20 
GeneralRe: How to exit from aplication ? Pin
toxcct26-Sep-06 23:21
toxcct26-Sep-06 23:21 
GeneralRe: How to exit from aplication ? Pin
Hamid_RT26-Sep-06 23:45
Hamid_RT26-Sep-06 23:45 
QuestionImage reading and writing + B-SPline models Pin
Raspoteen26-Sep-06 22:29
Raspoteen26-Sep-06 22:29 
AnswerRe: Image reading and writing + B-SPline models Pin
Ștefan-Mihai MOGA26-Sep-06 22:47
professionalȘtefan-Mihai MOGA26-Sep-06 22:47 
AnswerRe: Image reading and writing + B-SPline models Pin
Hamid_RT27-Sep-06 8:40
Hamid_RT27-Sep-06 8:40 
Questionhow to send a struct Pin
hanlei000000000926-Sep-06 22:15
hanlei000000000926-Sep-06 22:15 
AnswerRe: how to send a struct Pin
Waldermort26-Sep-06 22:21
Waldermort26-Sep-06 22:21 

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.