Sign in to follow this  
amine137

slow dialog box in windowed mode

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this