Thread: MessageBox

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    42
    Rep Power
    12

    MessageBox


    i want to add some features to MessageBox. does anybody know where the function is defined? i need it to model my own messagebox from it.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,625
    Rep Power
    4247
    IIRC, MessageBox is a Windows OS function call.
    http://msdn.microsoft.com/library/de...messagebox.asp

    MFC has a wrapper function around this call, to pass some parameters to it by default, if you don't specify them explicitly, but other than that, there's not much more you can do to it. The function was designed to provide a consistent set of message boxes.

    If you want to make your own message box, you're probably better off making your own Dialog window and displaying it.
  4. #3
  5. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,155
    Rep Power
    2222
    Within MFC, MessageBox is a method of the CWnd class.

    The same functionality is found in a global function, AfxMessageBox.

IMN logo majestic logo threadwatch logo seochat tools logo