I want the client area to be 320 x 240.
Not the whole window.
Now, here is my code.
Code:
HWND WinClass::Create ( HINSTANCE hInstance, LPSTR class_name, LPSTR wnd_name, HWND parent,
DWORD dwStyle, int x, int y, int width, int height )
{
RECT rect = { 0, 0, width, height };
AdjustWindowRect ( &rect, dwStyle, true );
hWnd = CreateWindow ( class_name, wnd_name, dwStyle, x, y, width, height,
parent, NULL, hInstance, NULL );
return hWnd;
}
Isnt this the correct way to makesure your "client" area is the desired resolution?