WM_INPUT / RIM_INPUTSINK: Sollten wir DefWindowProc() aufrufen?C++

Programme in C++. Entwicklerforum
Anonymous
 WM_INPUT / RIM_INPUTSINK: Sollten wir DefWindowProc() aufrufen?

Post by Anonymous »

Ich schreibe eine native Win32-App. Das WndProc() sieht so aus:

Code: Select all

static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
// ...

case WM_INPUT:
switch (GET_RAWINPUT_CODE_WPARAM(wParam)) {
case RIM_INPUT:     /* do stuff */ break;  // according to docs
case RIM_INPUTSINK: /* do stuff */ WHAT_TO_DO
}
break;

// ...
}

return DefWindowProcW(hwnd, msg, wParam, lParam);
}
Was ist im WM_INPUT-Handler bei RIM_INPUTSINK zu tun?

[*]

Code: Select all

break;
, also DefWindowProcW() aufrufen, oder
return 0;Du>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post