changing what the x button does

This is a discussion on changing what the x button does within the Windows Programming forums, part of the Platform Specific Boards category; i want to know if it is possible to change what the button in he corner that is supposed to ...

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    44

    changing what the x button does

    i want to know if it is possible to change what the button in he corner that is supposed to turn off the program is able to be changed? i also want to know how you make can check if somebody clicked on a button thank you

  2. #2
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Well, I guess the easiest way to change what the close button does would be to handle the WM_CLOSE message (which you should most likely be doing anyway)..

    The WM_NCHITTEST will return where a user has clicked in the non-client area so maybe that will be of more use.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. elliptical button
    By geek@02 in forum Windows Programming
    Replies: 0
    Last Post: 11-21-2006, 01:15 AM
  2. Button changing
    By Obbin in forum C++ Programming
    Replies: 2
    Last Post: 07-07-2006, 08:32 AM
  3. writing text over a deleted button
    By algi in forum Windows Programming
    Replies: 4
    Last Post: 05-02-2005, 11:32 AM
  4. Changing button colors?
    By V.G in forum Windows Programming
    Replies: 2
    Last Post: 10-04-2004, 10:44 PM
  5. Window won't display on button command!?
    By psychopath in forum Windows Programming
    Replies: 6
    Last Post: 06-22-2004, 08:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21