Skip to main content
GameDev.net gamedev.net
🔒 Locked

Small windows

Started by dg5pt Apr 27, 2000 at 1:28 AM 1 replies 450+ views
Original Post
dg5pt
dg5pt
Hi, whenever I start the program windowed he inscrases the window to screen size. How can I tell him to keep the window size of 640x480? bye Felix Kollmann, DG5PT Future Interactive [http://www.futureint.com] [fkollmann@gmx.net]
NickGA
NickGA
quote:
Original post by dg5pt

Hi,

whenever I start the program windowed he inscrases the window to screen size. How can I tell him to keep the window size of 640x480?

bye

Felix Kollmann, DG5PT

Future Interactive

[http://www.futureint.com]
[fkollmann@gmx.net]



Write him a memo? Just kidding.

You might try something of this sort. I''m not sure that it''s a great way. Just a beginner here.
---------------------------------------------------------
RECT wrect;
GetWindowRect(main_window_handle,&wrect);
SetWindowPos(main_window_handle,HWND_TOP,
wrect.left,
wrect.top,
ptSize.x+24,
ptSize.y+32+100,NULL);
--------------------------------------------------------
I put that snippet somewhere in the WM_PAINT message part of the WinProc routine.

Hope it helps

"If you build it, it will crash."

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.