Advertisement

Newbie Windows Programming Question?

Started by April 05, 2001 02:27 PM
1 comment, last by plastickid 23 years, 10 months ago
Hey I have a question, I am kinda new to windows programming and I am trying to do something that I can''t remember how to do..You know all windows programs usually or pretty much have the mimimize, maximize and close button..I know there is a way in the Windows Class or the Create window when creating a win32 app to modify the control you want, either to have only mimimize and close and no maximimize..Thats what I want to do, I just got tricks of the windows game coding gurus..The page you got that, from, if you can tell me that would be very useful thanks a lot.. Plastickid. Too lazy to think!
Too lazy to think!
How are you creating your window?

If you use CreateWindowEx, one of the parameters is dwStyle.

This is where you specify what style the window has. For example, if you want the system menu, a caption bar, and a minimize box then you would specify: WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX

If you are using MFC then you could use ModifyStyle to set these as required or you can change the style in the PreCreateWindow function. (Take a look at: http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_core_changing_the_styles_of_a_window_created_by_mfc.htm)

===========================
No sense being pessimistic. It wouldn''''t work anyway.
===========================There are 10 types of people in the world. Those that understand binary and those that don't.( My views in no way reflect the views of my employer. )
Advertisement
Ahh just use GLUT.

This topic is closed to new replies.

Advertisement