Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Modal Message Box

Modal Message Box

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pandit84
    wrote on last edited by
    #1

    Hi i have created a message box as MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK ); i need to display this on top of other window in my application Current whenever i click on other areas..it goes behind the pages.. Please provide comments..

    I 1 Reply Last reply
    0
    • P pandit84

      Hi i have created a message box as MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK ); i need to display this on top of other window in my application Current whenever i click on other areas..it goes behind the pages.. Please provide comments..

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      change NULL of first parameter MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK ); to the window handle in which the Message-Bos is displyed.

      S 1 Reply Last reply
      0
      • I includeh10

        change NULL of first parameter MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK ); to the window handle in which the Message-Bos is displyed.

        S Offline
        S Offline
        ShiXiangYang
        wrote on last edited by
        #3

        MessageBox(m_hWnd,"you info","captain",MB_TOPMOST|Your mode);

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups