How to determine which messagebox button has been pressed ?

This is a discussion on How to determine which messagebox button has been pressed ? within the C++ Programming forums, part of the General Programming Boards category; Well in VB you would say, Code: if msgbox('blah",vbyesno) = vbyes then Is there an equilvalent in C++ ?...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    91

    How to determine which messagebox button has been pressed ?

    Well in VB you would say,

    Code:
    if msgbox('blah",vbyesno) = vbyes then
    Is there an equilvalent in C++ ?

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    if(MessageBox(Window, "Format C:, you sure?", "Warning", MB_YESNO) == IDYES)
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. Replies: 12
    Last Post: 12-08-2008, 06:13 PM
  3. Replies: 2
    Last Post: 06-28-2008, 08:30 PM
  4. how do i check which button is pressed ?
    By intruder in forum Windows Programming
    Replies: 2
    Last Post: 04-24-2006, 03:24 PM
  5. Delete files that are used
    By Yuri in forum C++ Programming
    Replies: 8
    Last Post: 10-18-2005, 01:48 PM

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