Click here to Skip to main content
15,899,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Which Process has input focus Pin
ThatsAlok31-Dec-04 18:37
ThatsAlok31-Dec-04 18:37 
GeneralNetworking tutorials Pin
elec_eng31-Dec-04 11:21
elec_eng31-Dec-04 11:21 
GeneralRe: Networking tutorials Pin
Ravi Bhavnani31-Dec-04 12:02
professionalRavi Bhavnani31-Dec-04 12:02 
QuestionWhat is the code for the AsyncKeyState function? Pin
Coolarj1031-Dec-04 10:58
Coolarj1031-Dec-04 10:58 
AnswerRe: What is the code for the AsyncKeyState function? Pin
Heath Stewart31-Dec-04 11:12
protectorHeath Stewart31-Dec-04 11:12 
GeneralRe: What is the code for the AsyncKeyState function? Pin
Coolarj1031-Dec-04 11:29
Coolarj1031-Dec-04 11:29 
GeneralRe: What is the code for the AsyncKeyState function? Pin
Heath Stewart31-Dec-04 12:17
protectorHeath Stewart31-Dec-04 12:17 
GeneralALT key state after ModifyStyle, DoModal Pin
Vancouver31-Dec-04 8:16
Vancouver31-Dec-04 8:16 
I have a problem with the combination of ModifyStyle and DoModal:

ModifyStyle(0, WS_MINIMIZE, SWP_HIDEWINDOW);<br />
dlg_whatever.DoModal();


(only these both together pose the problem)

at this point. i.e. after the subdialog ended with EndDialog, the keyboard's ALT status is "toggled", even though the keyboard has not been touched all the time.
This poses a problem for me, so I carry out a SetKeyboardState, clearing the ALT status (testwise clearing the status of ALL keys too). This works so far, that a subsequent GetKeyboardState showsn that the ALT key is not toggled any more.

However, when any key gets pressed now, PreTranslateMessage shows WM_SYSKEYUP (i.e. ALT status).

Does anyone know

1. the reason for this behaviour,

2. how to clear the ALT state more effectively than by SetKeyboardState?
GeneralRe: ALT key state after ModifyStyle, DoModal Pin
Neville Franks1-Jan-05 9:39
Neville Franks1-Jan-05 9:39 
GeneralRe: ALT key state after ModifyStyle, DoModal Pin
Vancouver1-Jan-05 13:18
Vancouver1-Jan-05 13:18 
GeneralRe: ALT key state after ModifyStyle, DoModal Pin
Neville Franks1-Jan-05 18:05
Neville Franks1-Jan-05 18:05 
GeneralRe: ALT key state after ModifyStyle, DoModal Pin
Vancouver1-Jan-05 18:58
Vancouver1-Jan-05 18:58 
GeneralRichEdit Bolding Pin
merkit31-Dec-04 5:23
merkit31-Dec-04 5:23 
GeneralRe: RichEdit Bolding Pin
merkit1-Jan-05 5:47
merkit1-Jan-05 5:47 
GeneralCStatic/PreSubclassWindow/WS_VSCROLL Pin
marchaasi7030-Dec-04 22:54
marchaasi7030-Dec-04 22:54 
GeneralFiles in a folder Pin
Imtiaz Murtaza30-Dec-04 22:41
Imtiaz Murtaza30-Dec-04 22:41 
GeneralRe: Files in a folder Pin
ThatsAlok31-Dec-04 1:11
ThatsAlok31-Dec-04 1:11 
GeneralRe: Files in a folder Pin
Archer28231-Dec-04 4:38
Archer28231-Dec-04 4:38 
GeneralRe: Files in a folder Pin
toxcct31-Dec-04 4:46
toxcct31-Dec-04 4:46 
GeneralRe: Files in a folder Pin
Gary R. Wheeler1-Jan-05 3:32
Gary R. Wheeler1-Jan-05 3:32 
GeneralRe: Files in a folder Pin
nm_1141-Jan-05 7:58
nm_1141-Jan-05 7:58 
GeneralRe: Files in a folder Pin
Archer2821-Jan-05 14:11
Archer2821-Jan-05 14:11 
GeneralRe: Files in a folder Pin
Gary R. Wheeler2-Jan-05 0:57
Gary R. Wheeler2-Jan-05 0:57 
GeneralTitleless dialog Pin
LiYS30-Dec-04 20:54
LiYS30-Dec-04 20:54 
GeneralRe: Titleless dialog Pin
Michael Dunn31-Dec-04 6:19
sitebuilderMichael Dunn31-Dec-04 6: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.