Click here to Skip to main content
15,889,992 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhy the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:04
Joseph Marzbani13-Sep-08 9:04 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:19
Mark Salsbery13-Sep-08 9:19 
NewsRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:26
Joseph Marzbani13-Sep-08 9:26 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 9:40
Mark Salsbery13-Sep-08 9:40 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:51
Joseph Marzbani13-Sep-08 9:51 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:59
Perspx13-Sep-08 9:59 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 10:06
Joseph Marzbani13-Sep-08 10:06 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery13-Sep-08 10:17
Mark Salsbery13-Sep-08 10:17 
What kind of output do you get doing something like this
in the EXE:
MSG msg;
while(GetMessage(&msg, NULL, 0, 0))
{
    if (msg.message == WM_KEYDOWN || msg.message == WM_KEYUP)
    {
        if (msg.message == WM_KEYDOWN)
            TRACE0("WM_KEYDOWN  - ");
        else
            TRACE0("WM_KEYUP  - ");

        if (!TranslateMessage(&msg))
        {
            TRACE0("TranslateMessage() Failed!\n");
        }
        else
        {
            TRACE0("TranslateMessage() Succeeded!\n");
        }
    }

    if(msg.message == WM_CHAR || msg.message == WM_DEADCHAR || msg.message == WM_SYSCHAR ||
                              msg.message == WM_SYSDEADCHAR)
    {
        TRACE0("WM_CHAR!\n");
    }
}


Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 22:08
Joseph Marzbani13-Sep-08 22:08 
QuestionRe: Why the hell does the TranslateMessage() fail? Pin
CPallini13-Sep-08 22:54
mveCPallini13-Sep-08 22:54 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Mark Salsbery14-Sep-08 9:27
Mark Salsbery14-Sep-08 9:27 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani15-Sep-08 4:18
Joseph Marzbani15-Sep-08 4:18 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:32
Perspx13-Sep-08 9:32 
AnswerRe: Why the hell does the TranslateMessage() fail? Pin
Joseph Marzbani13-Sep-08 9:45
Joseph Marzbani13-Sep-08 9:45 
GeneralRe: Why the hell does the TranslateMessage() fail? Pin
Perspx13-Sep-08 9:48
Perspx13-Sep-08 9:48 
QuestionGetRawInputDeviceInfo' : undeclared identifier [modified] Pin
hariakuthota13-Sep-08 6:58
hariakuthota13-Sep-08 6:58 
QuestionWM_INPUT' : undeclared identifier Pin
hariakuthota13-Sep-08 5:48
hariakuthota13-Sep-08 5:48 
AnswerRe: WM_INPUT' : undeclared identifier Pin
bob1697213-Sep-08 6:14
bob1697213-Sep-08 6:14 
GeneralRe: WM_INPUT' : undeclared identifier Pin
hariakuthota13-Sep-08 20:14
hariakuthota13-Sep-08 20:14 
GeneralRe: WM_INPUT' : undeclared identifier Pin
bob1697214-Sep-08 8:03
bob1697214-Sep-08 8:03 
AnswerRe: WM_INPUT' : undeclared identifier Pin
Hamid_RT13-Sep-08 21:42
Hamid_RT13-Sep-08 21:42 
QuestionNot able to see the WM_IMPUT in class wizard. Pin
hariakuthota13-Sep-08 5:36
hariakuthota13-Sep-08 5:36 
AnswerRe: Not able to see the WM_IMPUT in class wizard. Pin
bob1697213-Sep-08 6:15
bob1697213-Sep-08 6:15 
GeneralRe: Not able to see the WM_IMPUT in class wizard. Pin
hariakuthota13-Sep-08 6:35
hariakuthota13-Sep-08 6:35 
GeneralRe: Not able to see the WM_IMPUT in class wizard. Pin
bob1697214-Sep-08 7:51
bob1697214-Sep-08 7:51 

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.