Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Good job Mark! Pin
Mark Salsbery22-Feb-08 7:23
Mark Salsbery22-Feb-08 7:23 
GeneralRe: HELP! HELP! HELP!PLEASE! Pin
djrasa23-Feb-08 13:32
djrasa23-Feb-08 13:32 
GeneralRe: HELP! HELP! HELP!PLEASE! Pin
Maxwell Chen22-Feb-08 9:18
Maxwell Chen22-Feb-08 9:18 
GeneralRe: [Message Deleted] [modified]Sorry had to re-post Pin
djrasa23-Feb-08 13:31
djrasa23-Feb-08 13:31 
Generalrepaint window in VC++ Pin
vandana722-Feb-08 4:54
vandana722-Feb-08 4:54 
GeneralRe: repaint window in VC++ Pin
Dr. Emmett Brown22-Feb-08 5:31
Dr. Emmett Brown22-Feb-08 5:31 
GeneralRe: repaint window in VC++ Pin
Hamid_RT23-Feb-08 1:31
Hamid_RT23-Feb-08 1:31 
Generalcontrol key and accelerators [modified] Pin
bob1697222-Feb-08 4:01
bob1697222-Feb-08 4:01 
Visual C++ 2003, MFC Doc/View wizard generated application.

I've noticed some keypressed actions never make it to the view if the control key is pressed even if no accelerator is defined for the key combination.

I'm looking to check the state of the control key when I get a nChar equivalent to VK_TAB either in WM_CHAR or WM_KEYDOWN or both. However, neither WM_KEYDOWN or WM_CHAR are received when control and tab are pressed.

If I need to detect the control key with GetKeyState(VK_CONTROL) using the WM_KEYDOWN message in MFC, do I need to set up an accelerator to get the WM_KEYDOWN?

modified on Friday, February 22, 2008 10:18 AM

GeneralRe: control key and accelerators Pin
Iain Clarke, Warrior Programmer22-Feb-08 4:44
Iain Clarke, Warrior Programmer22-Feb-08 4:44 
GeneralRe: control key and accelerators Pin
bob1697222-Feb-08 4:55
bob1697222-Feb-08 4:55 
GeneralRe: control key and accelerators Pin
Rajkumar R22-Feb-08 5:04
Rajkumar R22-Feb-08 5:04 
GeneralRe: control key and accelerators Pin
bob1697222-Feb-08 6:16
bob1697222-Feb-08 6:16 
QuestionPreventing an application from shutting down? Pin
ritz123422-Feb-08 2:04
ritz123422-Feb-08 2:04 
AnswerRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 2:11
mveCPallini22-Feb-08 2:11 
GeneralRe: Preventing an application from shutting down? Pin
ritz123422-Feb-08 2:18
ritz123422-Feb-08 2:18 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 2:22
mveCPallini22-Feb-08 2:22 
GeneralRe: Preventing an application from shutting down? Pin
ritz123422-Feb-08 2:28
ritz123422-Feb-08 2:28 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 2:31
mveCPallini22-Feb-08 2:31 
GeneralRe: Preventing an application from shutting down? Pin
jhwurmbach22-Feb-08 6:07
jhwurmbach22-Feb-08 6:07 
GeneralRe: Preventing an application from shutting down? Pin
CPallini22-Feb-08 7:31
mveCPallini22-Feb-08 7:31 
AnswerRe: Preventing an application from shutting down? Pin
Maximilien22-Feb-08 2:27
Maximilien22-Feb-08 2:27 
GeneralRe: Preventing an application from shutting down? Pin
ritz123422-Feb-08 2:30
ritz123422-Feb-08 2:30 
AnswerNo Answer. Pin
jhwurmbach22-Feb-08 6:10
jhwurmbach22-Feb-08 6:10 
AnswerRe: Preventing an application from shutting down? [modified] Pin
User 238229222-Feb-08 2:38
User 238229222-Feb-08 2:38 
GeneralRe: Preventing an application from shutting down? Pin
Maxwell Chen22-Feb-08 3:27
Maxwell Chen22-Feb-08 3:27 

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.