Quick Easy MFC question [modified]
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Here's the code, and the important values from stepping through the code:
CStatic m\_audio\_rate\_text; ... m\_audio\_rate\_text.Create(T\_AUDIO\_BITRATE\_TEXT, WS\_CHILD|WS\_VISIBLE ,move ,this,AUDIO\_BITRATE\_TEXT); CRect t; m\_audio\_rate\_text.GetWindowRect(&t);
// step-through watch values:
// move { top=160 bottom=205 left=500 right=600}
// t { top=189 bottom=234 left=503 right=603}How do I get the right RECT ?? (the same as the one I created it with) Or Why is GetWindowRect() returning a different value?
modified on Tuesday, March 24, 2009 4:33 PM
-
Here's the code, and the important values from stepping through the code:
CStatic m\_audio\_rate\_text; ... m\_audio\_rate\_text.Create(T\_AUDIO\_BITRATE\_TEXT, WS\_CHILD|WS\_VISIBLE ,move ,this,AUDIO\_BITRATE\_TEXT); CRect t; m\_audio\_rate\_text.GetWindowRect(&t);
// step-through watch values:
// move { top=160 bottom=205 left=500 right=600}
// t { top=189 bottom=234 left=503 right=603}How do I get the right RECT ?? (the same as the one I created it with) Or Why is GetWindowRect() returning a different value?
modified on Tuesday, March 24, 2009 4:33 PM