Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Services Pin
Laji5925-Jun-05 19:04
Laji5925-Jun-05 19:04 
GeneralRe: Windows Services Pin
fakefur25-Jun-05 19:24
fakefur25-Jun-05 19:24 
GeneralRe: Windows Services Pin
ThatsAlok26-Jun-05 18:32
ThatsAlok26-Jun-05 18:32 
GeneralRe: Windows Services Pin
Ravi Bhavnani26-Jun-05 3:09
professionalRavi Bhavnani26-Jun-05 3:09 
GeneralRe: Windows Services Pin
Laji5926-Jun-05 19:06
Laji5926-Jun-05 19:06 
GeneralRe: Windows Services Pin
Ravi Bhavnani26-Jun-05 19:12
professionalRavi Bhavnani26-Jun-05 19:12 
QuestionGet Controll? Pin
Larsson25-Jun-05 12:43
Larsson25-Jun-05 12:43 
AnswerRe: Get Controll? Pin
AntonlioX25-Jun-05 17:55
AntonlioX25-Jun-05 17:55 
Laugh | :laugh: Hi Larsson :

I could not understand your meaning .But if you want to get the char when you click a certain key of keyboard ,you can use the message map to hook the key down message.

The example is in the following :
// you should ooverride the "PreTranslateMessage"

BOOL CMyClientDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
switch(pMsg->message)
{
case WM_KEYDOWN :
switch(pMsg->wParam)
{
case 'A': //add code here to get the char A break;
case 'B': //add code here to get the char B break;
case 'B': //add code here to get the char C break;
}
break;

case WM_KEYUP:
switch(pMsg->wParam)
{
case 'A': //add code here to get the char A break;
case 'B': //add code here to get the char B break;
case 'B': //add code here to get the char C break;
} }
break;

}
return CDialog::PreTranslateMessage(pMsg);
}

AntonlioX
Questionhow do you display the set password dialog for a given user? Pin
cycoder25-Jun-05 7:00
cycoder25-Jun-05 7:00 
Questionhow do you programmatically add a snapin to compmgmt.msc in C++? Pin
cycoder25-Jun-05 6:59
cycoder25-Jun-05 6:59 
Questionhow do you programmatically manipulate webcam video properties? Pin
cycoder25-Jun-05 6:58
cycoder25-Jun-05 6:58 
AnswerRe: how do you programmatically manipulate webcam video properties? Pin
FlyingTinman25-Jun-05 8:34
FlyingTinman25-Jun-05 8:34 
Questionhow do you tell if fast user switching is enabled? Pin
cycoder25-Jun-05 6:56
cycoder25-Jun-05 6:56 
AnswerRe: how do you tell if fast user switching is enabled? Pin
Toby Opferman25-Jun-05 18:52
Toby Opferman25-Jun-05 18:52 
GeneralRe: how do you tell if fast user switching is enabled? Pin
cycoder26-Jun-05 7:53
cycoder26-Jun-05 7:53 
GeneralRe: how do you tell if fast user switching is enabled? Pin
Toby Opferman26-Jun-05 9:42
Toby Opferman26-Jun-05 9:42 
AnswerRe: how do you tell if fast user switching is enabled? Pin
Gary R. Wheeler26-Jun-05 2:27
Gary R. Wheeler26-Jun-05 2:27 
QuestionVC6 release mode .pdb? Pin
Ravi Bhavnani25-Jun-05 6:05
professionalRavi Bhavnani25-Jun-05 6:05 
AnswerFigured it out Pin
Ravi Bhavnani25-Jun-05 7:03
professionalRavi Bhavnani25-Jun-05 7:03 
GeneralRe: Figured it out Pin
Roland Pibinger25-Jun-05 8:54
Roland Pibinger25-Jun-05 8:54 
GeneralRe: Figured it out Pin
Ravi Bhavnani25-Jun-05 8:59
professionalRavi Bhavnani25-Jun-05 8:59 
GeneralRe: Figured it out Pin
Jose Lamas Rios25-Jun-05 13:45
Jose Lamas Rios25-Jun-05 13:45 
GeneralRe: Figured it out Pin
toxcct25-Jun-05 22:07
toxcct25-Jun-05 22:07 
GeneralRe: Figured it out Pin
Ravi Bhavnani26-Jun-05 3:05
professionalRavi Bhavnani26-Jun-05 3:05 
GeneralRe: Figured it out Pin
Jose Lamas Rios26-Jun-05 11:30
Jose Lamas Rios26-Jun-05 11:30 

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.