Commit 14fab71d authored by chili's avatar chili
Browse files

wm char and mouse stuff

parent 1046bb2c
......@@ -25,6 +25,21 @@ LRESULT CALLBACK WndProc( HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam )
SetWindowText( hWnd,"Dangerfield" );
}
break;
case WM_CHAR:
{
static std::string title;
title.push_back( (char)wParam );
SetWindowText( hWnd,title.c_str() );
}
break;
case WM_LBUTTONDOWN:
{
const POINTS pt = MAKEPOINTS( lParam );
std::ostringstream oss;
oss << "(" << pt.x << "," << pt.y << ")";
SetWindowText( hWnd,oss.str().c_str() );
}
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