Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Vector VS. Array BUG Pin
Stephen Hewitt25-Mar-08 20:21
Stephen Hewitt25-Mar-08 20:21 
GeneralRe: Vector VS. Array BUG Pin
Steve Echols25-Mar-08 20:31
Steve Echols25-Mar-08 20:31 
GeneralOn Dialog Box Pin
Chandrasekharan P25-Mar-08 18:20
Chandrasekharan P25-Mar-08 18:20 
GeneralRe: On Dialog Box [modified] Pin
rp_suman25-Mar-08 19:29
rp_suman25-Mar-08 19:29 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 19:56
Chandrasekharan P25-Mar-08 19:56 
AnswerRe: On Dialog Box Pin
Rajkumar R25-Mar-08 19:45
Rajkumar R25-Mar-08 19:45 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 20:25
Chandrasekharan P25-Mar-08 20:25 
GeneralRe: On Dialog Box [modified] Pin
Rajkumar R25-Mar-08 21:22
Rajkumar R25-Mar-08 21:22 
Chandrasekharanp wrote:
i am using directshow here

not purely, you are using an ActiveX control that build on Directshow filters.


Chandrasekharanp wrote:
[ nAspectRatio = ] MSWebDVD.AspectRatio

Chandrasekharanp wrote:
i actually dint understand what this is

I never used this control, this is the property that gives a number (some naming convention n-any number, i-interger, 0 -object, not very sure) it actually gives the aspect ratio of the video stream. And this is a read-only property so you cannot expect to do something like resizing video.

Try MSWebDVD.SetClipVideoRect(oRect); where you have to calculate the rectangle every time the dialog is resized (I guess you are resizing the control when dialog is resized, still need to be done) keeping the aspected ratio (aspect ratio of the video can be obtained from the property, MSWebDVD.AspectRatio) same.
* on size handler of dialog
* resize the control
* from the new size of control and the aspect ratio of video calculate video rect
* set the video Rect MSWebDVD.SetClipVideoRect().

Try this.

modified on Wednesday, March 26, 2008 3:42 AM

GeneralRe: On Dialog Box Pin
rp_suman25-Mar-08 19:55
rp_suman25-Mar-08 19:55 
GeneralRe: On Dialog Box Pin
Chandrasekharan P25-Mar-08 20:07
Chandrasekharan P25-Mar-08 20:07 
GeneralRedirection in command line "<" Pin
uusheikh25-Mar-08 17:30
uusheikh25-Mar-08 17:30 
GeneralRe: Redirection in command line "<" Pin
User 58385225-Mar-08 17:59
User 58385225-Mar-08 17:59 
GeneralRe: Redirection in command line "<" Pin
fefe.wyx25-Mar-08 18:21
fefe.wyx25-Mar-08 18:21 
GeneralRe: Redirection in command line "<" Pin
uusheikh25-Mar-08 20:18
uusheikh25-Mar-08 20:18 
GeneralRe: Redirection in command line "<" Pin
Maxwell Chen25-Mar-08 21:03
Maxwell Chen25-Mar-08 21:03 
GeneralRe: Redirection in command line "<" Pin
uusheikh25-Mar-08 21:25
uusheikh25-Mar-08 21:25 
GeneralRe: Redirection in command line "<" Pin
Maxwell Chen25-Mar-08 21:18
Maxwell Chen25-Mar-08 21:18 
GeneralRe: Redirection in command line "<" Pin
David Crow26-Mar-08 4:10
David Crow26-Mar-08 4:10 
QuestionHow to insert a child form? Pin
TooShy2Talk25-Mar-08 16:48
TooShy2Talk25-Mar-08 16:48 
QuestionUsing CFileDialog? Pin
dipuks25-Mar-08 15:59
dipuks25-Mar-08 15:59 
AnswerRe: Using CFileDialog? Pin
David Crow25-Mar-08 16:11
David Crow25-Mar-08 16:11 
GeneralCompare and merge Pin
KirkNarine25-Mar-08 9:15
KirkNarine25-Mar-08 9:15 
GeneralRe: Compare and merge Pin
led mike25-Mar-08 10:14
led mike25-Mar-08 10:14 
AnswerRe: Compare and merge Pin
Maxwell Chen25-Mar-08 17:50
Maxwell Chen25-Mar-08 17:50 
QuestionMethod to get file path Pin
nvphap25-Mar-08 8:55
nvphap25-Mar-08 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.