• 13
• 18
• 19
• 27
• 9

# How can i change win32 windows property?

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

## 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.

##### 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"){     PostQuitMessage(0)}

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