因为CRect重载了operator LPRECT()。看汇编,或者F11
CRect IRImgRect;
00423700 lea ecx,[IRImgRect]
00423706 call CRect::CRect (0402176h)
GetDlgItem(IDC_SERIAL)->GetClientRect(&IRImgRect);
0042370B lea eax,[IRImgRect]
00423711 push eax
00423712 push 3F0h
00423717 mov ecx,dword ptr [this]
0042371A call CWnd::GetDlgItem (0451338h)
0042371F mov ecx,eax
00423721 call CWnd::GetClientRect (045136Eh)
GetDlgItem(IDC_SERIAL)->GetClientRect(IRImgRect);
00423726 lea ecx,[IRImgRect]
0042372C call CRect::operator tagRECT * (04022E8h)
00423731 push eax
00423732 push 3F0h
00423737 mov ecx,dword ptr [this]
0042373A call CWnd::GetDlgItem (0451338h)
0042373F mov ecx,eax
00423741 call CWnd::GetClientRect (045136Eh)
--
修改:z16166 FROM 114.241.227.*
FROM 114.241.227.*