mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2025-05-10 08:40:41 +08:00
21 lines
474 B
C
21 lines
474 B
C
|
|
/*
|
|
* This example trys to handle the event when the user
|
|
* presses <C> key as the <Ctrl> key is down.
|
|
*/
|
|
LRESULT MyWinProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|
{
|
|
switch (message) {
|
|
case MSG_KEYDOWN:
|
|
if (wParam ==SCANCODE_C && lParam & KS_CTRL) {
|
|
// User pressed Ctrl+C.
|
|
break;
|
|
}
|
|
break;
|
|
...
|
|
}
|
|
|
|
return DefaultMainWinProc (hWnd, message, wParam, lParam);
|
|
}
|
|
|