CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    327

    message box options





    I use the following code to construct a message box;


    void CMainFrame::OnDialogsMessage()

    {

    MessageBox("Message", "Title", MB_ICONEXCLAMATION);

    }


    What other options besides MB_ICONEXCLAMATION are available for message boxes?

    When I do a search for messagebox on MSDN I get a billion results, none of

    which help.


    Any response anyone can give me will be greatly appreciated.

  2. #2
    Join Date
    Apr 1999
    Location
    FL
    Posts
    18

    Re: message box options

    Look in windows.h. The possibilities are

    MB_ICONSTOP
    MB_ICONQUESTION
    MB_ICONEXCLAMATION
    MB_ICONINFORMATION
    MB_ICONMASK

    There are also MB_ codes for the message box butttons

    MB_OK
    MB_OKCANCEL
    MB_ABORTRETRYIGNORE
    MB_YESNOCANCEL
    MB_YESNO
    etc.

    and

    MB_DEFBUTTON1
    MB_DEFBUTTON2
    etc.


  3. #3
    Join Date
    Apr 1999
    Location
    Miami, FL
    Posts
    67

    Re: message box options

    You need to search in the right place. Use the Index tab in MSDN (not the Search tab).

    I found the help for MessageBox in mk:@MSITStore:c:\Program%20Files\Microsoft%20Visual%20Studio\MSDN98\98VSa\1033\winui.chm::/devdoc/live/pdui/dlgboxes_76bc.htm. Type in in the URL dialog box under the "Go" menu of MSDN.


    Alvaro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured