How to force full form to display?
-
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 ...
-
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 ...
-
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
No - like I said, it was just a reference. The article was not about it. Thus, no code.
-
No - like I said, it was just a reference. The article was not about it. Thus, no code.
-
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 ...
-
Thanks - I'll see if I can incorporate it.
-
Try to use a function like Form->Refresh() Form->Update() Form->Repaint() or something similar.
Thanks, but doesn't change the behavior.