Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to convert const void* to CString? Pin
g_satish1-Apr-09 20:26
g_satish1-Apr-09 20:26 
AnswerRe: How to convert const void* to CString? Pin
«_Superman_»1-Apr-09 20:30
professional«_Superman_»1-Apr-09 20:30 
AnswerRe: How to convert const void* to CString? Pin
Stuart Dootson1-Apr-09 21:56
professionalStuart Dootson1-Apr-09 21:56 
QuestionHow to capture "Enter Key"? Pin
gothic_coder1-Apr-09 20:25
gothic_coder1-Apr-09 20:25 
AnswerRe: How to capture "Enter Key"? Pin
«_Superman_»1-Apr-09 20:32
professional«_Superman_»1-Apr-09 20:32 
GeneralRe: How to capture "Enter Key"? Pin
gothic_coder1-Apr-09 20:36
gothic_coder1-Apr-09 20:36 
AnswerRe: How to capture "Enter Key"? Pin
Code-o-mat1-Apr-09 22:32
Code-o-mat1-Apr-09 22:32 
GeneralRe: How to capture "Enter Key"? Pin
gothic_coder1-Apr-09 23:29
gothic_coder1-Apr-09 23:29 
Code-o-mat wrote:
Hey!

On a side note: having a button that gets enabled when a correct password is entered makes it a bit easier to guess the password by bruteforce (or/and maybe other methods) because one only has to write a program that enters a password and then checks the state of the button, if it is disabled, it tries the next possible password and checks the button again until the button becomes enabled... althorough you can add a -let's say- 3 seconds pause if a wrong password is entered before the user is allowed to enter the next password, this makes it take much much more time to hack.


That's not the issue Smile | :)


Code-o-mat wrote:
Aside of this, did you try handling WM_KEYDOWN? Did it work?


Yes i did.. But it's not working, i tried WM_CHAR also same result

case WM_CHAR : 
{
	switch(LOWORD(wParam))
	{
		case VK_RETURN:
			MessageBox(hWnd, "Enter Pressed", NULL, NULL);
	}
}


case WM_KEYDOWN : 
{
	switch(LOWORD(wParam))
	{
		case VK_RETURN:
			MessageBox(hWnd, "Enter Pressed", NULL, NULL);
	}
}


P.S
BTW the default focus is in password (Edit) box only, Does this create any problem?
GeneralRe: How to capture "Enter Key"? Pin
Code-o-mat1-Apr-09 23:33
Code-o-mat1-Apr-09 23:33 
GeneralRe: How to capture "Enter Key"? Pin
gothic_coder1-Apr-09 23:59
gothic_coder1-Apr-09 23:59 
GeneralRe: How to capture "Enter Key"? Pin
Code-o-mat2-Apr-09 0:20
Code-o-mat2-Apr-09 0:20 
GeneralRe: How to capture "Enter Key"? Pin
gothic_coder2-Apr-09 1:31
gothic_coder2-Apr-09 1:31 
GeneralRe: How to capture "Enter Key"? Pin
Code-o-mat2-Apr-09 1:34
Code-o-mat2-Apr-09 1:34 
QuestionCMainwindow Pin
p_19601-Apr-09 20:20
p_19601-Apr-09 20:20 
AnswerRe: CMainwindow Pin
Stuart Dootson1-Apr-09 22:01
professionalStuart Dootson1-Apr-09 22:01 
AnswerRe: CMainwindow Pin
Iain Clarke, Warrior Programmer2-Apr-09 6:24
Iain Clarke, Warrior Programmer2-Apr-09 6:24 
QuestionHow to retrieve contents of a control in a different application? Pin
neil47811-Apr-09 19:51
neil47811-Apr-09 19:51 
AnswerRe: How to retrieve contents of a control in a different application? Pin
Stuart Dootson1-Apr-09 22:09
professionalStuart Dootson1-Apr-09 22:09 
AnswerRe: How to retrieve contents of a control in a different application? Pin
sashoalm4-Apr-09 3:32
sashoalm4-Apr-09 3:32 
QuestionAnother Stupid Question? Pin
Joseph Marzbani1-Apr-09 19:35
Joseph Marzbani1-Apr-09 19:35 
AnswerRe: Another Stupid Question? Pin
«_Superman_»1-Apr-09 19:45
professional«_Superman_»1-Apr-09 19:45 
AnswerRe: Another Stupid Question? Pin
Joseph Marzbani1-Apr-09 20:12
Joseph Marzbani1-Apr-09 20:12 
JokeRe: Another Stupid Question? Pin
Iain Clarke, Warrior Programmer2-Apr-09 6:15
Iain Clarke, Warrior Programmer2-Apr-09 6:15 
AnswerRe: Another Stupid Question? Pin
Maxwell Chen1-Apr-09 20:24
Maxwell Chen1-Apr-09 20:24 
GeneralRe: Another Stupid Question? Pin
vital_parsley1-Apr-09 21:46
vital_parsley1-Apr-09 21:46 

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.