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 #54366 is a reply to message #458] Tue, 07 July 2020 09:05 Go to previous messageGo to previous message
jstip is currently offline  jstip
Messages: 4
Registered: July 2020
Junior Member
Indeed it's possible, similar as in VBA:

#include <Winuser.h>

HMENU hMenu = GetSystemMenu(GetHWND(),0);
RemoveMenu(hMenu, SC_CLOSE, MF_BYCOMMAND);

I've placed it in the GotFocus callback.
 
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: Thu Sep 10 02:53:57 GMT+2 2026

Total time taken to generate the page: 0.00883 seconds