Commit 1046bb2c authored by chili's avatar chili
Browse files

wm key stuff

parent 335287f0
#include <Windows.h>
#include "WindowsMessageMap.h"
#include <sstream>
LRESULT CALLBACK WndProc( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam )
{
......@@ -11,6 +13,18 @@ LRESULT CALLBACK WndProc( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam )
case WM_CLOSE:
PostQuitMessage( 69 );
break;
case WM_KEYDOWN:
if( wParam == 'D' )
{
SetWindowText( hWnd,"Respects" );
}
break;
case WM_KEYUP:
if( wParam == 'F' )
{
SetWindowText( hWnd,"Dangerfield" );
}
break;
}
return DefWindowProc( hWnd,msg,wParam,lParam );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment