Click here to Skip to main content
15,925,081 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Query on WH_KEYBOARD Experts help Pin
Member 115017627-Jun-04 18:17
Member 115017627-Jun-04 18:17 
Generalabout IO Completion Ports Pin
regale26-Jun-04 17:02
regale26-Jun-04 17:02 
GeneralRe: about IO Completion Ports Pin
valikac27-Jun-04 5:38
valikac27-Jun-04 5:38 
GeneralRe: about IO Completion Ports Pin
regale27-Jun-04 19:19
regale27-Jun-04 19:19 
GeneralLinking to C++ Pin
c. s.26-Jun-04 15:46
c. s.26-Jun-04 15:46 
GeneralRe: Linking to C++ Pin
darkbyte27-Jun-04 4:29
darkbyte27-Jun-04 4:29 
QuestionUsing Alt key in Windows app? Pin
IGx8926-Jun-04 11:57
IGx8926-Jun-04 11:57 
AnswerRe: Using Alt key in Windows app? Pin
Jörgen Sigvardsson27-Jun-04 11:04
Jörgen Sigvardsson27-Jun-04 11:04 
I don't think there's an easy solution. Especially not so with Qt, as it probably hides the message pump from you.

I tried this in MFC:
BOOL CMainFrame::PreTranslateMessage(MSG* pMsg)
{
   if((pMsg->message == WM_SYSKEYDOWN || pMsg->message == WM_SYSKEYUP) 
       && pMsg->wParam == VK_MENU) {
      DoMything();
      return TRUE;
   }
 
   return CFrameWnd::PreTranslateMessage(pMsg);
}
and it worked fairly well I believe. It didn't mess with the accelerators (ALT-F for File Menu, ALT-F4 for close application, etc), but it allowed me to do whatever I want to with the ALT-button. In this case I'm just filtering it out. If it's possible to implement a PreTranslateMessage() function in Qt, it's not a hard problem.

Good luck. Smile | :)

--
Ich bin Joachim von Hassel, und ich bin Pilot der Bundeswehr.
Welle: Erdball - F104-G Starfighter

GeneralRe: Using Alt key in Windows app? Pin
IGx8928-Jun-04 13:45
IGx8928-Jun-04 13:45 
Generalpassing values from edit boxes to the button Pin
lyn26-Jun-04 10:34
lyn26-Jun-04 10:34 
GeneralRe: passing values from edit boxes to the button Pin
DougW4826-Jun-04 18:08
DougW4826-Jun-04 18:08 
GeneralRe: passing values from edit boxes to the button Pin
lyn26-Jun-04 18:17
lyn26-Jun-04 18:17 
GeneralRe: passing values from edit boxes to the button Pin
PJ Arends26-Jun-04 18:24
professionalPJ Arends26-Jun-04 18:24 
GeneralNeed a GetClusterSize function Pin
Paul Steane26-Jun-04 8:47
Paul Steane26-Jun-04 8:47 
Questiona font from a ttf file? Pin
CaesarCZ26-Jun-04 5:56
CaesarCZ26-Jun-04 5:56 
AnswerRe: a font from a ttf file? Pin
darkbyte27-Jun-04 4:22
darkbyte27-Jun-04 4:22 
QuestionHow can I rename an NT user using the ADSI? Pin
zzzhouzhou26-Jun-04 5:46
zzzhouzhou26-Jun-04 5:46 
Generalscrollbar Pin
cruscotto26-Jun-04 4:36
cruscotto26-Jun-04 4:36 
GeneralRe: scrollbar Pin
Prakash Nadar26-Jun-04 7:31
Prakash Nadar26-Jun-04 7:31 
GeneralRe: scrollbar Pin
cruscotto26-Jun-04 21:51
cruscotto26-Jun-04 21:51 
GeneralToolbar flicker Pin
Jim Crafton26-Jun-04 4:07
Jim Crafton26-Jun-04 4:07 
GeneralRe: Toolbar flicker Pin
Michael Dunn26-Jun-04 12:42
sitebuilderMichael Dunn26-Jun-04 12:42 
GeneralRe: Toolbar flicker Pin
Jim Crafton29-Jun-04 18:35
Jim Crafton29-Jun-04 18:35 
GeneralVisual Basic Question Pin
Stylemaster26-Jun-04 3:47
professionalStylemaster26-Jun-04 3:47 
GeneralRe: Visual Basic Question Pin
Hesham Amin26-Jun-04 4:15
Hesham Amin26-Jun-04 4:15 

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.