I have been messing with the API again. The problem with the createwindow at the moment is that I want to get rid of the minimise and maximise buttons, but when I do this I get a black border around my screen.
Here is the new code
Code: Select all
RECT wr;
wr.left = 650;
wr.right = 800 + wr.left;
wr.top = 150;
wr.bottom = 600 + wr.top;
AdjustWindowRect( &wr,WS_OVERLAPPEDWINDOW,FALSE );
HWND hWnd = CreateWindowW( L"Chili DirectX Framework Window",L"Missile Command By T.R.Williams (Asimov)",
WS_OVERLAPPED|WS_SYSMENU ,wr.left,wr.top,wr.right-wr.left,wr.bottom-wr.top,
NULL,NULL,wc.hInstance,NULL );
Now this works but leaves a border on the bottom and right hand side. I have tried changing dimensions in the Rect, but it then just crashes.
Any ideas?