Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide restore box on MDI

Status
Not open for further replies.

Nosferatu

Programmer
Jun 9, 2000
412
RO
Hy!

Is there a way to hide the restore box on a MDI window?
I can disable the minimize button, but I want to prohibit the users from using the restore button.

The MDI client is actually a CFormView which gets maximized on Display and I don't want to be restored to its original dimensions.

Thank you. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
I believe the only way you can do this is to disable the minimize button also.
tellis.gif

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
 
Thanks, but that won't work...
You can hide both the minimize and maximize button handling the windows styles, and even more, if you remove the WM_SYSMENU flag, you won't have a close button!

Actually, what I want is to inhibit the restoring operation - like the double click on the title bar and I can't figure out how to do this.

The program is an form-based application and I would like to have the whole form displayed on screen, maximized, at all times.

any further help is appreciated. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top