Jump to content
  • Advertisement
Sign in to follow this  

How can i change win32 windows property?

This topic is 2998 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

I use DX9, and use DX9's DXUT framework(which create from dx9's sample--emptyproject).

1 I want remove win32 window's maximize button which at top right. How can
i to do ?
2 If we press escape key, the win32 window auto destroy. I don't want that,
How can i get rid of that?
3 I want resize the windows size, How to do.

Please help me, thank you all!

Share this post

Link to post
Share on other sites
1 - Im not sure, but I guess you have to use a different window style.
In your CreateWindow() change your 3rd parameter to one of these http://msdn.microsoft.com/en-us/library/ms632600(v=VS.85).aspx if it doesnt give the results you want try another.

2 - Search for PostQuitMessage() in all your code and see where it destroy the window when ESC key is pressed. Then delere PostQuitMessage() function call.
You should find some like:

if(pressedKey = "ESC")

If you find something like this, just delete it.

3- Use the SetWindowPos(). In the hWndInsertAfter use NULL, in uFlags use SWP_NOZORDER, in the other parameters fill as you want.
Take a look at the reference: http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!