Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Sat Jun 14 20:50:41 CEST 2025

Total time taken to generate the page: 0.05049 seconds