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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable the close button

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Does anyone know how to disable the little x in the upper righthand corner of the Dialogue screen? I've been to properties to disable the minimize and maximize, but I want those two buttons, just wanna get rid of the close button. Thanks in advance!
 
Hi,

Try playing around with the different window styles. I find that you can get rid of those buttons using WS_OVERLAPPED style. You can also use quite a number of other styles to get rid of those buttons. Choose one that suit your needs. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top