Thread: button text?

  1. #1
    Registered User
    Join Date
    Jan 2006

    button text?

    Is it possible changing the button text; without using the whole win32 api code?

    I mean, working to a program that is this simple:

    #include <iostream.h>
    int main()
    MessageBox(0, "press yes to continue", "title", MB_OK);

  2. #2
    Registered User
    Join Date
    Sep 2004
    You can't change the button text of a MessageBox to something custom. Now you can change MB_OK to something different to get the buttons to say different things. Like MB_YESNO will give you "Yes" and "No" buttons. The complete list can be found Here.

    If you want anything more complex than that, you have to make your own dialog.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  2. Hide toobar button by tooltip text
    By Br5an in forum Windows Programming
    Replies: 0
    Last Post: 07-11-2005, 01:26 PM
  3. Removing text between /* */ in a file
    By 0rion in forum C Programming
    Replies: 2
    Last Post: 04-05-2004, 08:54 AM
  4. Small HTML question
    By Thantos in forum Tech Board
    Replies: 4
    Last Post: 12-29-2003, 12:37 AM
  5. text on owner-drawn button?
    By SyntaxBubble in forum Windows Programming
    Replies: 5
    Last Post: 02-17-2002, 01:08 PM