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 force full form to display?

How to force full form to display?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helptutorialquestion
7 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.
  • T Offline
    T Offline
    theFrenchHornet
    wrote on last edited by
    #1

    I have a managed C# application which calls functions in an unmanaged C++ dll. On the unmanaged side, I am trying to put up a dialog that contains a text label, a progress bar, and a cancel button. I use CreateDialog and ShowWindow to display the form. The form displays, but for a few seconds has nothing on it. Eventually, the progress bar appears and does show increasing numbers of blue blocks. The form closes as it should, but without ever having displayed the text or the cancel button. The form is displayed for about 10 seconds. Is there a command similar to DoEvents on the managed side that will force all portions of the dialog to display? I saw a reference in one of the articles to a Peek loop, but did not see any code and am not familiar enough with that to implement without more information. Any help appreciated ...

    L C 2 Replies Last reply
    0
    • T theFrenchHornet

      I have a managed C# application which calls functions in an unmanaged C++ dll. On the unmanaged side, I am trying to put up a dialog that contains a text label, a progress bar, and a cancel button. I use CreateDialog and ShowWindow to display the form. The form displays, but for a few seconds has nothing on it. Eventually, the progress bar appears and does show increasing numbers of blue blocks. The form closes as it should, but without ever having displayed the text or the cancel button. The form is displayed for about 10 seconds. Is there a command similar to DoEvents on the managed side that will force all portions of the dialog to display? I saw a reference in one of the articles to a Peek loop, but did not see any code and am not familiar enough with that to implement without more information. Any help appreciated ...

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      theFrenchHornet wrote:

      I saw a reference in one of the articles to a Peek loop, but did not see any code

      Does the article not have the code available for download? Most do I think.

      led mike

      T 1 Reply Last reply
      0
      • L led mike

        theFrenchHornet wrote:

        I saw a reference in one of the articles to a Peek loop, but did not see any code

        Does the article not have the code available for download? Most do I think.

        led mike

        T Offline
        T Offline
        theFrenchHornet
        wrote on last edited by
        #3

        No - like I said, it was just a reference. The article was not about it. Thus, no code.

        L 1 Reply Last reply
        0
        • T theFrenchHornet

          No - like I said, it was just a reference. The article was not about it. Thus, no code.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Not sure what you want but maybe [^]this will help

          led mike

          T 1 Reply Last reply
          0
          • T theFrenchHornet

            I have a managed C# application which calls functions in an unmanaged C++ dll. On the unmanaged side, I am trying to put up a dialog that contains a text label, a progress bar, and a cancel button. I use CreateDialog and ShowWindow to display the form. The form displays, but for a few seconds has nothing on it. Eventually, the progress bar appears and does show increasing numbers of blue blocks. The form closes as it should, but without ever having displayed the text or the cancel button. The form is displayed for about 10 seconds. Is there a command similar to DoEvents on the managed side that will force all portions of the dialog to display? I saw a reference in one of the articles to a Peek loop, but did not see any code and am not familiar enough with that to implement without more information. Any help appreciated ...

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

            Try to use a function like Form->Refresh() Form->Update() Form->Repaint() or something similar.

            T 1 Reply Last reply
            0
            • L led mike

              Not sure what you want but maybe [^]this will help

              led mike

              T Offline
              T Offline
              theFrenchHornet
              wrote on last edited by
              #6

              Thanks - I'll see if I can incorporate it.

              1 Reply Last reply
              0
              • C Caos000

                Try to use a function like Form->Refresh() Form->Update() Form->Repaint() or something similar.

                T Offline
                T Offline
                theFrenchHornet
                wrote on last edited by
                #7

                Thanks, but doesn't change the behavior.

                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