Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

dg5pt

Small windows

This topic is 6930 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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]

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!