Re: Help with picture box
What's with the wait function?
Does it have a loop in it?
Try Sleep(2000) to wait for 2 seconds.
Re: Help with picture box
Any thoughts on my actual problem????
Re: Help with picture box
When you call wait it kicks in before the picture box gets a chance to draw itself. When wait expires you tell the picture box to hide itself again. So in effect, you never really give it a chance to draw itself. Try calling UpdateWindow on the picture box before the wait call.
Re: Help with picture box
GCDEF,
Thanks for your input. Your solution was most helpful and solved my problem. It's very frustrating getting stuck, even on a simple program such as mine. By the way, what's the difference between UpdateDialogControl, UpdateWindow, and UpdateData??? UpdateWindow is the only one that worked in this case, as I had tried the other two and met only with utter hopelessness.
Thanks again for the solution!
Re: Help with picture box
Quote:
Originally Posted by
abollmeyer
GCDEF,
Thanks for your input. Your solution was most helpful and solved my problem. It's very frustrating getting stuck, even on a simple program such as mine. By the way, what's the difference between UpdateDialogControl, UpdateWindow, and UpdateData??? UpdateWindow is the only one that worked in this case, as I had tried the other two and met only with utter hopelessness.
Thanks again for the solution!
Glad I could help. MSDN would do a better job explaining those functions that I could, but basically UpdateWindow forces the target window to redraw itself immediately. UpdateData transfers information between controls and variables. I'm not familiar with UpdateDialogControl.