Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: View large text files. Pin
Navin10-Feb-03 4:38
Navin10-Feb-03 4:38 
GeneralRe: View large text files. Pin
Ted Ferenc10-Feb-03 6:33
Ted Ferenc10-Feb-03 6:33 
GeneralRe: View large text files. Pin
David Chamberlain10-Feb-03 6:47
David Chamberlain10-Feb-03 6:47 
GeneralRe: View large text files. Yes MMF. Pin
Neville Franks10-Feb-03 9:07
Neville Franks10-Feb-03 9:07 
GeneralSetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 3:54
jeremysay10-Feb-03 3:54 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 4:00
HENDRIK R10-Feb-03 4:00 
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 4:26
jeremysay10-Feb-03 4:26 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 5:19
HENDRIK R10-Feb-03 5:19 
First of all it seems to me like you called GetWindowRect on you frame window instead of your child window, because your client coordinates should never return 0 in your case (a child window should not have it's upper-left edge at the same point as it's parent).

To move your window according to the client area, I think a call to GetClientRect should return the it's coordinates when called on a CMDIFrameWnd, thus giving you the coordinates of your client area in relation to the windows origin (0, 0). With these information you only need to add the obtained value to your new child's position and then move it to it's new place - that's allConfused | :confused: Wink | ;)
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 20:56
jeremysay10-Feb-03 20:56 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 21:12
HENDRIK R10-Feb-03 21:12 
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 21:25
jeremysay10-Feb-03 21:25 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 21:56
HENDRIK R10-Feb-03 21:56 
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 21:37
jeremysay10-Feb-03 21:37 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 21:52
HENDRIK R10-Feb-03 21:52 
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 22:23
jeremysay10-Feb-03 22:23 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 22:30
HENDRIK R10-Feb-03 22:30 
GeneralRe: SetWindowPos and GetWindowRec Pin
HENDRIK R10-Feb-03 22:36
HENDRIK R10-Feb-03 22:36 
GeneralRe: SetWindowPos and GetWindowRec Pin
jeremysay10-Feb-03 22:48
jeremysay10-Feb-03 22:48 
QuestionCListCtrl and SEtItemIndex()? Pin
ns10-Feb-03 3:38
ns10-Feb-03 3:38 
AnswerRe: CListCtrl and SEtItemIndex()? Pin
HENDRIK R10-Feb-03 3:57
HENDRIK R10-Feb-03 3:57 
GeneralDelayed loading in VC++ 7 Pin
naradaji10-Feb-03 3:35
naradaji10-Feb-03 3:35 
GeneralRe: Delayed loading in VC++ 7 Pin
AlexO10-Feb-03 3:44
AlexO10-Feb-03 3:44 
GeneralRe: Delayed loading in VC++ 7 Pin
naradaji10-Feb-03 3:52
naradaji10-Feb-03 3:52 
Question#define or enum?? Pin
Nitron10-Feb-03 3:33
Nitron10-Feb-03 3:33 
AnswerRe: #define or enum?? Pin
pankajdaga10-Feb-03 3:38
pankajdaga10-Feb-03 3:38 

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.