Click here to Skip to main content
15,916,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDrawing Problem Pin
g_sandipan7-May-08 19:36
g_sandipan7-May-08 19:36 
AnswerRe: Drawing Problem Pin
Nitheesh George7-May-08 19:46
Nitheesh George7-May-08 19:46 
GeneralRe: Drawing Problem Pin
g_sandipan7-May-08 20:40
g_sandipan7-May-08 20:40 
GeneralRe: Drawing Problem Pin
Nitheesh George7-May-08 21:08
Nitheesh George7-May-08 21:08 
AnswerRe: Drawing Problem Pin
Mark Salsbery9-May-08 7:25
Mark Salsbery9-May-08 7:25 
QuestionGetWindowRect problem in CFormView::OnInitialUpdate() Pin
hanlei00000000097-May-08 19:05
hanlei00000000097-May-08 19:05 
AnswerRe: GetWindowRect problem in CFormView::OnInitialUpdate() Pin
dehseth7-May-08 19:09
dehseth7-May-08 19:09 
AnswerRe: GetWindowRect problem in CFormView::OnInitialUpdate() Pin
Nitheesh George7-May-08 20:26
Nitheesh George7-May-08 20:26 
Hi,

The MSDN says that

"The GetWindowRect function retrieves the dimensions of the bounding rectangle of the specified window. The dimensions are given in screen coordinates that are relative to the upper-left corner of the screen."


So may be(am not sure) the window is created (0,0) as top left. Then it is moved to new Co Ordinates When it is displayed. that is why you are getting different co ordinates. My suggestion is that no need to bother about this co ordinates u just use rect. top, rect.left etc. so that your drawing or anything will positioned based on the parent window.

thanks

Nitheesh
Questiondeleting the previous shape Pin
shohel8997-May-08 18:55
shohel8997-May-08 18:55 
AnswerRe: deleting the previous shape Pin
dehseth7-May-08 19:07
dehseth7-May-08 19:07 
QuestionRe: deleting the previous shape Pin
Rajkumar R7-May-08 19:20
Rajkumar R7-May-08 19:20 
AnswerRe: deleting the previous shape Pin
dehseth7-May-08 20:16
dehseth7-May-08 20:16 
QuestionRe: deleting the previous shape Pin
Rajkumar R7-May-08 20:38
Rajkumar R7-May-08 20:38 
AnswerRe: deleting the previous shape Pin
shohel8998-May-08 4:28
shohel8998-May-08 4:28 
GeneralRe: deleting the previous shape Pin
Rajkumar R8-May-08 5:23
Rajkumar R8-May-08 5:23 
GeneralRe: deleting the previous shape Pin
shohel8998-May-08 15:06
shohel8998-May-08 15:06 
GeneralRe: deleting the previous shape Pin
Rajkumar R8-May-08 23:00
Rajkumar R8-May-08 23:00 
AnswerRe: deleting the previous shape Pin
Nelek8-May-08 10:58
protectorNelek8-May-08 10:58 
QuestionFlexGrid & CMSFlexGrid Pin
dehseth7-May-08 18:39
dehseth7-May-08 18:39 
AnswerRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 19:16
Rajkumar R7-May-08 19:16 
QuestionRe: FlexGrid & CMSFlexGrid Pin
dehseth7-May-08 19:30
dehseth7-May-08 19:30 
QuestionRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 19:41
Rajkumar R7-May-08 19:41 
AnswerRe: FlexGrid & CMSFlexGrid Pin
dehseth7-May-08 20:10
dehseth7-May-08 20:10 
GeneralRe: FlexGrid & CMSFlexGrid Pin
Rajkumar R7-May-08 20:28
Rajkumar R7-May-08 20:28 
Questionchange menu background color Pin
hari_honey7-May-08 18:25
hari_honey7-May-08 18:25 

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.