U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TopWindow&PopUp, TrayIcon » How to remove the button [X] that closes the window?
Re: how to display dialog box without close button in window caption? [message #456 is a reply to message #444] Wed, 04 January 2006 07:49 Go to previous messageGo to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member


I suspect with WS_CAPTION there will always be a close button (and title bar) but you can grey the close button with some effort. Title bar is useful for being able to move the window around, even a login window. CreateWindowEx seems to need WS_SYSMENU to get system menu, depending on other settings.

You can find out what's on the title bar but apparently you can't change it using TITLEBARINFO.
http://msdn.microsoft.com/library/en-us/winui/winui/windowsu serinterface/windowing/windows/windowreference/windowfunctio ns/gettitlebarinfo.asp

Graeme
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I change main window and dialog title font size
Next Topic: TopWindow when Close override show exception unduly
Goto Forum:
  


Current Time: Tue Jun 16 08:22:22 GMT+2 2026

Total time taken to generate the page: 0.00654 seconds