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. How to destroy a dialog after timeout

How to destroy a dialog after timeout

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
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.
  • M Offline
    M Offline
    mamtz
    wrote on last edited by
    #1

    Hi I need to display a dialog showing a message to the user and distroy it after a specific timeout. How can i do this? I'm familiar with threads but in other languages so just a piece of code would be very helpful... Thanks a lot Mamtz

    T 1 R 3 Replies Last reply
    0
    • M mamtz

      Hi I need to display a dialog showing a message to the user and distroy it after a specific timeout. How can i do this? I'm familiar with threads but in other languages so just a piece of code would be very helpful... Thanks a lot Mamtz

      T Offline
      T Offline
      try88
      wrote on last edited by
      #2

      try this : SetTimer(..) and OnTimer(..) { if(timeout) close dialog KillTimer(..) } 路漫漫其修远兮,吾将上下而求索。

      1 Reply Last reply
      0
      • M mamtz

        Hi I need to display a dialog showing a message to the user and distroy it after a specific timeout. How can i do this? I'm familiar with threads but in other languages so just a piece of code would be very helpful... Thanks a lot Mamtz

        1 Offline
        1 Offline
        123ivan123
        wrote on last edited by
        #3

        Use EndDialog(TRUE) when timeout

        1 Reply Last reply
        0
        • M mamtz

          Hi I need to display a dialog showing a message to the user and distroy it after a specific timeout. How can i do this? I'm familiar with threads but in other languages so just a piece of code would be very helpful... Thanks a lot Mamtz

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          See this[^] article. Also this[^] one. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          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