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
    7

    MessageBox problem

    I have a problem with MessageBox function.
    If I call this function in a window function (not of main window)
    in this mode: MessageBox(NULL,"message","message",MB_OK)
    it is always obscured by the window .
    If I put MB_SETFOREGROUND (instead of MB_OK) I have always the same problem .
    I want that the MessageBox window appears in foreground, can you help me ?
    Thanks for persons that reply to this mail.


  2. #2
    Join Date
    Apr 1999
    Posts
    16

    Re: MessageBox problem

    Hi,

    Try using MB_TASKMODAL flag. i.e.
    MessageBox(NULL, "Message", "Caption", MB_TASKMODAL|MB_OK);
    This should help you.

    Thanx,
    Ashutosh


  3. #3
    Join Date
    Apr 1999
    Posts
    4

    Re: MessageBox problem

    Actually, using MB_OK | MB_SYSTEMMODAL forces the message box to the top. MB_TASKMODAL may not. But, the user must click the OK button in the message box before they can do other work.

    - jmk...


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