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. Finished drawing dialog

Finished drawing dialog

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsquestion
5 Posts 2 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.
  • C Offline
    C Offline
    clint1982
    wrote on last edited by
    #1

    Hi I want to make a loading message box which disappears once the loading was finished. In order to do that I decided to use the function DialogBox in order to create a modal dialog, however, I couldn't find a message that indicates that dialog has finished drawing itself. I want to start the loading sequence right after the dialog and the message of "loading" appears on the dialog. Any suggestions ? I would like to use a dialog in order to easily make a nice loading message. Thanks a lot, Clint

    E 1 Reply Last reply
    0
    • C clint1982

      Hi I want to make a loading message box which disappears once the loading was finished. In order to do that I decided to use the function DialogBox in order to create a modal dialog, however, I couldn't find a message that indicates that dialog has finished drawing itself. I want to start the loading sequence right after the dialog and the message of "loading" appears on the dialog. Any suggestions ? I would like to use a dialog in order to easily make a nice loading message. Thanks a lot, Clint

      E Offline
      E Offline
      Emulator
      wrote on last edited by
      #2

      In wich ambient you are doing this? MFC? In that case you can take OnInitDialog event or.. WM_INITDIALOG

      C 1 Reply Last reply
      0
      • E Emulator

        In wich ambient you are doing this? MFC? In that case you can take OnInitDialog event or.. WM_INITDIALOG

        C Offline
        C Offline
        clint1982
        wrote on last edited by
        #3

        I tried WM_INITDIALOG, but it happens before the dialog has finished drawing itself, so the message doesn't appear.

        E 1 Reply Last reply
        0
        • C clint1982

          I tried WM_INITDIALOG, but it happens before the dialog has finished drawing itself, so the message doesn't appear.

          E Offline
          E Offline
          Emulator
          wrote on last edited by
          #4

          Try WM_PAINT event

          C 1 Reply Last reply
          0
          • E Emulator

            Try WM_PAINT event

            C Offline
            C Offline
            clint1982
            wrote on last edited by
            #5

            Also WM_PAINT is not good, it happens during the drawing of every control.

            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