KurtKubic Posted July 13, 2006 Report Share Posted July 13, 2006 Hi I need to control an applications child-windows in a way that I want a warning when I (by accident) press the close-button. I can "store" the window (using the Get Control command), but can I disable the close button (Upper right X-button) - or set an OnClose-eventhandler - in any way??? Lars Quote Link to comment Share on other sites More sharing options...
paul Posted July 13, 2006 Report Share Posted July 13, 2006 Not with ME! One way to achieve this is to write a program, e.g. in VB, which will require the use of several Windows API calls, i.e. DrawMenuBar, EnumWindows, GetSystemMenu, GetWindowText, RemoveMenu and SetWindowPos. Quote Link to comment Share on other sites More sharing options...
Andy Posted July 14, 2006 Report Share Posted July 14, 2006 Utility to disable a window's close button: http://www.donationcoder.com/Software/Skro...ex.html#NoClose Quote Link to comment Share on other sites More sharing options...
KurtKubic Posted July 14, 2006 Author Report Share Posted July 14, 2006 Thanks Andy I know the utility, but it doesn't work on Child-windows! Lars Quote Link to comment Share on other sites More sharing options...
KurtKubic Posted July 14, 2006 Author Report Share Posted July 14, 2006 Not with ME! Is it not possible using the PostMessage command?? Lars Quote Link to comment Share on other sites More sharing options...
paul Posted July 16, 2006 Report Share Posted July 16, 2006 Unfortunately, there's no message or messages designed to do this! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.