Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Vector VS. Array BUG Pin
Stephen Hewitt25-Mar-08 20:16
Stephen Hewitt25-Mar-08 20:16 
GeneralRe: Vector VS. Array BUG Pin
Steve Echols25-Mar-08 20:14
Steve Echols25-Mar-08 20:14 
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 
first of all if you see Mediaplayer the main window can be sized anyway, but the video window adjust to keep the aspect ratio of the video. So adjust the display of video than the dialog box, because size and aspect ratio varies for each video.

Chandrasekharanp wrote:
now this can be resized only by dragging the bottom right side... is is possible?

you can prevent changing the size only in one dimension by overriding WM_SIZING, i cannot thing of any other advanced tricks.

Chandrasekharanp wrote:
i believe that there are three possibilities.

There are more possibilities, WM_SIZING[^]

void CYourDlg::OnSizing(UINT fwSide, LPRECT pRect)
{
	CDialog::OnSizing(fwSide, pRect);

	if (fwSide != WMSZ_BOTTOMLEFT	&& 
		fwSide != WMSZ_BOTTOMRIGHT	&& 
		fwSide != WMSZ_TOPLEFT		&& 
		fwSide != WMSZ_TOPRIGHT )
	{
		// if not corner sizing keep the same size;
		RECT rc;
		GetWindowRect(&rc);
		*pRect = rc;
	}
}

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

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.