Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Converts a CRect to an LPCRECT.
operator LPCRECT( ) const throw( );
Remarks
When you use this function, you don't need the address-of (&) operator. This operator will be automatically used when you pass a CRect object to a function that expects an LPCRECT.
Example
BOOL CMyDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// CWnd::GetWindowRect() takes a LPRECT, but we can
// simply pass our CRect object because of the LPRECT
// cast operator in the CRect class.
CRect rect;
GetWindowRect(rect);
// Similarly, CWnd::MoveWindow() takes a LPCRECT but
// the LPCRECT cast operator is used implicitly:
MoveWindow(rect, FALSE);
return TRUE;
}
Requirements
Header: atltypes.h