Click here to Skip to main content
16,012,316 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Another programming question Pin
David Wulff1-Apr-02 1:45
David Wulff1-Apr-02 1:45 
QuestionHow to get the correct client rect of the view? Pin
Feng Qin31-Mar-02 14:58
Feng Qin31-Mar-02 14:58 
AnswerRe: How to get the correct client rect of the view? Pin
PJ Arends31-Mar-02 15:10
professionalPJ Arends31-Mar-02 15:10 
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin31-Mar-02 15:53
Feng Qin31-Mar-02 15:53 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus31-Mar-02 16:00
protectorChristian Graus31-Mar-02 16:00 
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin1-Apr-02 0:35
Feng Qin1-Apr-02 0:35 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus1-Apr-02 0:53
protectorChristian Graus1-Apr-02 0:53 
GeneralRe: How to get the correct client rect of the view? Pin
Christian Graus1-Apr-02 1:04
protectorChristian Graus1-Apr-02 1:04 
I've got it - get the WindowRect of the control, GetWindowRect as opposed to GetClientRect. Then if that is relative to the entire screen, call ScreenToClient in the window class on that rect to translate it to be relative to the window. yuou want the window rect anyhow if you're going to call movewindow, otherwise you're scrunching the window size down by whatever the non-client area is.





Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?!
- Jon Hulatt, 22/3/2002
GeneralRe: How to get the correct client rect of the view? Pin
Feng Qin1-Apr-02 14:39
Feng Qin1-Apr-02 14:39 
GeneralC++ question Pin
Rajveer31-Mar-02 13:34
Rajveer31-Mar-02 13:34 
GeneralRe: C++ question Pin
Jack Handy31-Mar-02 14:33
Jack Handy31-Mar-02 14:33 
GeneralRe: C++ question Pin
Roger Wright31-Mar-02 14:58
professionalRoger Wright31-Mar-02 14:58 
GeneralRe: C++ question Pin
Rajveer2-Apr-02 2:34
Rajveer2-Apr-02 2:34 
GeneralRe: C++ question Pin
Roger Wright2-Apr-02 3:41
professionalRoger Wright2-Apr-02 3:41 
GeneralRe: C++ question Pin
Michael A. Barnhart31-Mar-02 15:26
Michael A. Barnhart31-Mar-02 15:26 
GeneralRe: C++ question Pin
Nick Parker31-Mar-02 16:45
protectorNick Parker31-Mar-02 16:45 
GeneralRe: help with this code Pin
Christian Graus31-Mar-02 12:31
protectorChristian Graus31-Mar-02 12:31 
GeneralRe: help with this code Pin
Nick Parker31-Mar-02 16:47
protectorNick Parker31-Mar-02 16:47 
GeneralRe: help with this code Pin
Christian Graus31-Mar-02 18:49
protectorChristian Graus31-Mar-02 18:49 
Generalhelp with downloading from a login/pass web using php (repost) Pin
31-Mar-02 11:17
suss31-Mar-02 11:17 
GeneralQuick newbie question Pin
31-Mar-02 9:28
suss31-Mar-02 9:28 
GeneralRe: Quick newbie question Pin
Christian Graus31-Mar-02 12:32
protectorChristian Graus31-Mar-02 12:32 
GeneralRe: Quick newbie question Pin
Paul M Watt31-Mar-02 15:38
mentorPaul M Watt31-Mar-02 15:38 
GeneralRe: Quick newbie question Pin
Mazdak1-Apr-02 0:22
Mazdak1-Apr-02 0:22 
GeneralWinXP symbols - VC does not find them Pin
Lockhart31-Mar-02 9:27
Lockhart31-Mar-02 9:27 

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.