Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Login& Logout Time Pin
Nibu babu thomas12-Jun-08 20:49
Nibu babu thomas12-Jun-08 20:49 
AnswerRe: Login& Logout Time Pin
David Crow12-Jun-08 4:03
David Crow12-Jun-08 4:03 
AnswerRe: Login& Logout Time Pin
leonigah12-Jun-08 23:51
leonigah12-Jun-08 23:51 
QuestionHow can get value of keyboard pressed key? Pin
Le@rner11-Jun-08 23:59
Le@rner11-Jun-08 23:59 
AnswerRe: How can get value of keyboard pressed key? Pin
CPallini12-Jun-08 0:24
mveCPallini12-Jun-08 0:24 
QuestionRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian12-Jun-08 0:27
professionalRajesh R Subramanian12-Jun-08 0:27 
AnswerRe: How can get value of keyboard pressed key? Pin
Le@rner12-Jun-08 0:40
Le@rner12-Jun-08 0:40 
AnswerRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian12-Jun-08 0:33
professionalRajesh R Subramanian12-Jun-08 0:33 
You may over-ride PreTranslateMessage()
BOOL CTrialDlg::PreTranslateMessage(MSG* pMsg) 
{
	if(pMsg->message == WM_KEYDOWN){
		if(pMsg->wParam >= 0x41 && pMsg->wParam <= 0x5A)
		{
			//something between a and z was pressed
		}
		else if(pMsg->wParam >= 0x30 && pMsg->wParam <= 0x39)
		{
			//a number was pressed 
			//check 0x60 through 0x69 to trap numbers 
			//from the numpad keys as well
		}
	}
	return CDialog::PreTranslateMessage(pMsg);
}



Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

GeneralRe: How can get value of keyboard pressed key? Pin
Le@rner12-Jun-08 1:07
Le@rner12-Jun-08 1:07 
GeneralRe: How can get value of keyboard pressed key? Pin
sudhir_Kumar12-Jun-08 1:29
sudhir_Kumar12-Jun-08 1:29 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian12-Jun-08 1:34
professionalRajesh R Subramanian12-Jun-08 1:34 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan12-Jun-08 6:24
Eytukan12-Jun-08 6:24 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian12-Jun-08 19:02
professionalRajesh R Subramanian12-Jun-08 19:02 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan12-Jun-08 20:56
Eytukan12-Jun-08 20:56 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian12-Jun-08 21:33
professionalRajesh R Subramanian12-Jun-08 21:33 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan13-Jun-08 0:27
Eytukan13-Jun-08 0:27 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian13-Jun-08 0:33
professionalRajesh R Subramanian13-Jun-08 0:33 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan13-Jun-08 1:33
Eytukan13-Jun-08 1:33 
AnswerRe: How can get value of keyboard pressed key? Pin
Nish Nishant13-Jun-08 2:21
sitebuilderNish Nishant13-Jun-08 2:21 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian13-Jun-08 3:00
professionalRajesh R Subramanian13-Jun-08 3:00 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian13-Jun-08 6:47
professionalRajesh R Subramanian13-Jun-08 6:47 
GeneralRe: How can get value of keyboard pressed key? Pin
Nish Nishant13-Jun-08 7:10
sitebuilderNish Nishant13-Jun-08 7:10 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan13-Jun-08 2:45
Eytukan13-Jun-08 2:45 
GeneralRe: How can get value of keyboard pressed key? Pin
Rajesh R Subramanian13-Jun-08 3:02
professionalRajesh R Subramanian13-Jun-08 3:02 
GeneralRe: How can get value of keyboard pressed key? Pin
Eytukan13-Jun-08 3:14
Eytukan13-Jun-08 3:14 

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.