CRect::operator LPCRECT 如果LPRECT()被重载了,那函数是怎么被调用啊?
void CYourView::OnInitialUpdate()
{
CRect rect;
GetWindowRect(rect);
...
}
为什么rect就可以自动被void GetWindowRect( LPRECT lpRect );
调用,系统是怎么自动调用的?
EE
Converts a CRect to an LPRECT. When you use this function, you dont need the address-of (&) operator. This operator will be automatically used when you pass a CRect object to a function that expects an LPRECT.
---------CSDN