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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. auto closing messagebox

auto closing messagebox

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 4 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.
  • G Offline
    G Offline
    gamefreak2291
    wrote on last edited by
    #1

    #include int main () { MessageBox(NULL, "Please do not press okay, just wait.", "Beginning", MB_EXCLAMATION); return 0; } I would like to make this message box close on its own in 5 seconds.

    N R M 3 Replies Last reply
    0
    • G gamefreak2291

      #include int main () { MessageBox(NULL, "Please do not press okay, just wait.", "Beginning", MB_EXCLAMATION); return 0; } I would like to make this message box close on its own in 5 seconds.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Auto-close message box[^] article may help. :)

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • G gamefreak2291

        #include int main () { MessageBox(NULL, "Please do not press okay, just wait.", "Beginning", MB_EXCLAMATION); return 0; } I would like to make this message box close on its own in 5 seconds.

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #3

        Why do you need such a message box? Are you needing to show some kind of a progress?

        It is a crappy thing, but it's life -^ Carlo Pallini

        1 Reply Last reply
        0
        • G gamefreak2291

          #include int main () { MessageBox(NULL, "Please do not press okay, just wait.", "Beginning", MB_EXCLAMATION); return 0; } I would like to make this message box close on its own in 5 seconds.

          M Offline
          M Offline
          MANISH RASTOGI
          wrote on last edited by
          #4

          See This. MessageBoxTimeout API[^]

          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