Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: function calling in assembly Pin
Viorel.6-Jun-06 2:03
Viorel.6-Jun-06 2:03 
GeneralRe: function calling in assembly Pin
zon_cpp6-Jun-06 19:45
zon_cpp6-Jun-06 19:45 
QuestionGetClientRect(rect) or GetClientRect(&rect); Pin
Sarath C5-Jun-06 23:45
Sarath C5-Jun-06 23:45 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Laxman Auti5-Jun-06 23:52
Laxman Auti5-Jun-06 23:52 
GeneralRe: GetClientRect(rect) or GetClientRect(&rect); Pin
toxcct6-Jun-06 0:01
toxcct6-Jun-06 0:01 
QuestionRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Laxman Auti6-Jun-06 0:24
Laxman Auti6-Jun-06 0:24 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
toxcct6-Jun-06 0:25
toxcct6-Jun-06 0:25 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); [modified] Pin
Viorel.6-Jun-06 0:02
Viorel.6-Jun-06 0:02 
The CWnd::GetClientRect function actually requires an argument of type “pointer to RECT” -- RECT *, or LPRECT.

Nevertheless, this function can be used in more contexts:

RECT rect1;
GetClientRect(&rect1); // pass LPRECT
<br>
//
CRect rect2;
GetClientRect(&rect2); // works because CRect is public-derived from RECT,
                       // therefore an implicit conversion 
                       // from CRect* to LPRECT is available
//
CRect rect3;
GetClientRect(rect3); // works because CRect provides 
                      // a conversion operator to LPRECT

The design of CRect class allow you to use it with Windows functions that actually require LPRECT.


-- modified at 6:10 Tuesday 6th June, 2006
GeneralRe: GetClientRect(rect) or GetClientRect(&amp;amp;rect); [modified] Pin
Sarath C6-Jun-06 0:07
Sarath C6-Jun-06 0:07 
AnswerRe: GetClientRect(rect) or GetClientRect(&rect); Pin
Rinu_Raj6-Jun-06 0:06
Rinu_Raj6-Jun-06 0:06 
GeneralRe: GetClientRect(rect) or GetClientRect(&amp;rect); Pin
Sarath C6-Jun-06 0:09
Sarath C6-Jun-06 0:09 
GeneralRe: GetClientRect(rect) or GetClientRect(&amp;rect); Pin
Rinu_Raj6-Jun-06 0:28
Rinu_Raj6-Jun-06 0:28 
QuestionCrash dump Pin
Anil_vvs5-Jun-06 23:26
Anil_vvs5-Jun-06 23:26 
AnswerRe: Crash dump Pin
_AnsHUMAN_ 5-Jun-06 23:43
_AnsHUMAN_ 5-Jun-06 23:43 
GeneralRe: Crash dump Pin
Anil_vvs6-Jun-06 1:43
Anil_vvs6-Jun-06 1:43 
GeneralRe: Crash dump Pin
_AnsHUMAN_ 6-Jun-06 1:47
_AnsHUMAN_ 6-Jun-06 1:47 
AnswerRe: Crash dump Pin
2249176-Jun-06 0:03
2249176-Jun-06 0:03 
GeneralRe: Crash dump Pin
Anil_vvs6-Jun-06 1:44
Anil_vvs6-Jun-06 1:44 
AnswerRe: Crash dump Pin
Maxwell Chen6-Jun-06 0:12
Maxwell Chen6-Jun-06 0:12 
GeneralRe: Crash dump Pin
Anil_vvs6-Jun-06 1:44
Anil_vvs6-Jun-06 1:44 
Questionhow to catch the input for an edit box Pin
Kiran Pinjala5-Jun-06 23:22
Kiran Pinjala5-Jun-06 23:22 
AnswerRe: how to catch the input for an edit box Pin
toxcct5-Jun-06 23:23
toxcct5-Jun-06 23:23 
GeneralRe: how to catch the input for an edit box Pin
Kiran Pinjala6-Jun-06 0:09
Kiran Pinjala6-Jun-06 0:09 
GeneralRe: how to catch the input for an edit box Pin
toxcct6-Jun-06 0:18
toxcct6-Jun-06 0:18 
AnswerRe: how to catch the input for an edit box Pin
jhwurmbach5-Jun-06 23:36
jhwurmbach5-Jun-06 23:36 

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.