-
December 19th, 2013, 11:02 AM
#1
Keep CDialog in 16:9 Format?
Hi,
i need Help again with my Problem.
I have a Dialog with a Browser Control and load a Site with a Video, as the Title says, is there any Way to keep a Dialog in the
Format of 16:9 Format, in eg. if someone change the Width or Height of a Dialog, the Height/Width should be changed to?
To keep this Format permanent?
My first try was in a OnSizing(UINT fwSide, LPRECT pRect) Function but this is not the best way, because any Time i want to resize my Dialog it flickers terribly and i know i make it in a wrong way.
So if someone can help?
Thanks in advance
-
December 19th, 2013, 01:21 PM
#2
Re: Keep CDialog in 16:9 Format?
OnSizing seems like the right place. Perhaps you could call SetRedraw(FALSE) on the browser control to prevent flickering.
-
December 20th, 2013, 03:06 PM
#3
Re: Keep CDialog in 16:9 Format?
OnSizing is more like notification: there is no way to prevent that sizing.
I would use WM_WINDOWPOSCHANGING message and modify WINDOWPOS structure to maintain aspect ratio.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
December 22nd, 2013, 05:23 PM
#4
Re: Keep CDialog in 16:9 Format?
Look at the deferwindowpos functions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|