Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How Do I Detect Activity In a CEdit Control ? Pin
Jon Hulatt20-Feb-02 0:58
Jon Hulatt20-Feb-02 0:58 
GeneralRe: How Do I Detect Activity In a CEdit Control ? Pin
MJ_Karas20-Feb-02 16:03
MJ_Karas20-Feb-02 16:03 
GeneralDriverName Pin
19-Feb-02 23:50
suss19-Feb-02 23:50 
Questionhow do I Change the Font size of DrawText? Pin
John Cruz19-Feb-02 23:35
John Cruz19-Feb-02 23:35 
AnswerRe: how do I Change the Font size of DrawText? Pin
Roger Allen19-Feb-02 23:42
Roger Allen19-Feb-02 23:42 
GeneralATL IDataObject Pin
Braulio Dez19-Feb-02 23:36
Braulio Dez19-Feb-02 23:36 
QuestionHow to Change Shot-Cut Key of F1 Pin
louis19-Feb-02 22:41
louis19-Feb-02 22:41 
AnswerRe: How to Change Shot-Cut Key of F1 Pin
Roger Allen19-Feb-02 23:38
Roger Allen19-Feb-02 23:38 
A quick search of the MFC code shows that in the AFX function IsHelpKey, the system checks directly for F1. This function is only called in the default threadcore code (i think - not absolutely sure) when processing messages. My suggestion to get this to work for you would be to override the PreTranslateMessage function for the windows you need to use the F1 key for. Trap the F1 key yourself and then act on it directly to call the right code at that point yourself. To continue to get he help code to work for a different key, define an accellerator for e.g. Ctrl-H to map to ID_HELP command.

Some code written from memory that may help.

BOOL CMyWindow::PreTranslateMessage(MSG* pMsg)
{
	if (pMSG->message == WM_KEYDOWN && pMsg->wParam == VK_F1)
		{
		// call my special function
		return TRUE ;
		}
	return CBaseWindow::PreTranslateMessage(pMsg) ;
}



Roger Allen
Sonork 100.10016

If I'm not breathing, I'm either dead or holding my breath.
A fool jabbers, while a wise man listens. But is he so wise to listen to the fool?
Please step to the rear of the car and make room for more victims. - John Simmons the Outlaw programmer, 1st Feb 2002, in the lounge
AnswerRe: How to Change Shot-Cut Key of F1 Pin
Steen Krogsgaard20-Feb-02 0:07
Steen Krogsgaard20-Feb-02 0:07 
QuestionWhich type of windows can accept files? Pin
Optic19-Feb-02 22:15
Optic19-Feb-02 22:15 
AnswerRe: Which type of windows can accept files? Pin
Joaquín M López Muñoz19-Feb-02 22:22
Joaquín M López Muñoz19-Feb-02 22:22 
GeneralRe: Which type of windows can accept files? Pin
Optic20-Feb-02 2:14
Optic20-Feb-02 2:14 
QuestionWhich type of windows can accept files? Pin
Optic19-Feb-02 22:14
Optic19-Feb-02 22:14 
GeneralPicture Control Pin
San19-Feb-02 21:55
San19-Feb-02 21:55 
GeneralRe: Picture Control Pin
Mazdak19-Feb-02 22:26
Mazdak19-Feb-02 22:26 
GeneralBrush and Pen Pin
mit1219-Feb-02 21:34
mit1219-Feb-02 21:34 
GeneralRe: Brush and Pen Pin
John Cruz19-Feb-02 23:39
John Cruz19-Feb-02 23:39 
GeneralRe: Brush and Pen Pin
mit1219-Feb-02 23:56
mit1219-Feb-02 23:56 
GeneralRe: Brush and Pen Pin
alex.barylski19-Feb-02 23:51
alex.barylski19-Feb-02 23:51 
GeneralRe: Brush and Pen Pin
mit1220-Feb-02 0:01
mit1220-Feb-02 0:01 
GeneralRe: Brush and Pen Pin
Christian Graus20-Feb-02 0:12
protectorChristian Graus20-Feb-02 0:12 
GeneralRe: Brush and Pen Pin
20-Feb-02 0:25
suss20-Feb-02 0:25 
GeneralRe: Brush and Pen Pin
mit1220-Feb-02 0:27
mit1220-Feb-02 0:27 
GeneralRe: Brush and Pen Pin
Christian Graus20-Feb-02 0:05
protectorChristian Graus20-Feb-02 0:05 
QuestionHow to monitor actual downstream bitrate Pin
tobi7419-Feb-02 21:19
tobi7419-Feb-02 21:19 

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.