Click here to Skip to main content
15,914,357 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tool Tip in CFormView Pin
Roger Allen21-Feb-03 1:43
Roger Allen21-Feb-03 1:43 
GeneralRe: Tool Tip in CFormView Pin
Aaron Schaefer21-Feb-03 6:18
Aaron Schaefer21-Feb-03 6:18 
Questiontab like control? Pin
Jon Hulatt21-Feb-03 1:22
Jon Hulatt21-Feb-03 1:22 
AnswerRe: tab like control? Pin
AlexO21-Feb-03 2:58
AlexO21-Feb-03 2:58 
GeneralMDI Menu Pin
albuemil21-Feb-03 0:43
albuemil21-Feb-03 0:43 
GeneralRe: MDI Menu Pin
Roger Allen21-Feb-03 1:47
Roger Allen21-Feb-03 1:47 
GeneralRe: MDI Menu Pin
albuemil21-Feb-03 2:30
albuemil21-Feb-03 2:30 
GeneralMoveWindow() Pin
ROK_RShadow20-Feb-03 23:53
ROK_RShadow20-Feb-03 23:53 
I am trying to resize my application based on the size of a loaded file. First I tried to use SetWindowPos() this worked, but did not resize the frame. So I have attempted to use MoveWindow() to do this, and it works.. but not as expected. For example if somebody could review this code fragment and tell me whats up. The file I am loading is a video, and lets say the size is 320 x 480 the frame resizes to a really tiny window.

CRect winRect;
CRect tmpRect;
GetClientRect(tmpRect);

if(!m_media.GetVidSize(winRect))
DoError("Unable to receive size");

GetParentFrame()->MoveWindow(tmpRect.Width(),tmpRect.Height(),winRect.Width(), winRect.Height());

CString str;
str.Format("Video Width: %d\nVideo Height: %d\n",
winRect.Width(), winRect.Height());
TRACE(str);

I can verify that GetVidSize() is returning correct results based upon the TRACE statment wich outputs
320 and 480.

Thank you
GeneralRe: MoveWindow() Pin
Chintan21-Feb-03 0:28
Chintan21-Feb-03 0:28 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:35
ROK_RShadow21-Feb-03 0:35 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:29
vikramlinux21-Feb-03 0:29 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:33
ROK_RShadow21-Feb-03 0:33 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:35
vikramlinux21-Feb-03 0:35 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:39
ROK_RShadow21-Feb-03 0:39 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:43
vikramlinux21-Feb-03 0:43 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:48
ROK_RShadow21-Feb-03 0:48 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 0:51
vikramlinux21-Feb-03 0:51 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 0:55
ROK_RShadow21-Feb-03 0:55 
GeneralRe: MoveWindow() Pin
vikramlinux21-Feb-03 1:11
vikramlinux21-Feb-03 1:11 
GeneralRe: MoveWindow() Pin
ROK_RShadow21-Feb-03 1:14
ROK_RShadow21-Feb-03 1:14 
GeneralRegestering an exe Pin
Shah Shehpori20-Feb-03 23:24
sussShah Shehpori20-Feb-03 23:24 
GeneralRe: Regestering an exe Pin
Hans Ruck21-Feb-03 0:03
Hans Ruck21-Feb-03 0:03 
GeneralRe: Regestering an exe Pin
Martyn Pearson21-Feb-03 0:05
Martyn Pearson21-Feb-03 0:05 
General:( Very Noob question Pin
jeremysay20-Feb-03 22:58
jeremysay20-Feb-03 22:58 
GeneralRe: :( Very Noob question Pin
Martyn Pearson21-Feb-03 0:03
Martyn Pearson21-Feb-03 0:03 

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.