• Advertisement
Sign in to follow this  

slow dialog box in windowed mode

This topic is 3520 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I created an application where I use directdraw 7 to output a video to the screen. It is in windowed mode. I also have a dialog bar that controls the gain and exposure of the camera that is capturing the video. I use trackbars and edit boxes. However the dialog box is kind of slow. when I drag the bar, the edit boxes take time to update their values. (the dialog box is in overlapped child window) Is there a way to speed it up? Thank you,

Share this post


Link to post
Share on other sites
Advertisement
Do you call UpdateWindow in the dialog in the same call where the edit control is changed? If not, your dialog has to wait for the next paint to update, which won't occur until your video processing takes a break or calls OnIdle() (or whatever you use to be polite to the rest of the world).

Share this post


Link to post
Share on other sites
What does your message pump look like?

You should process all available messages before doing the render/update stuff. Otherwise you'll end up with seemingly lagging controls.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement