_U_RECT Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _U_RECT Class.

This argument adapter class allows either RECT pointers or references to be passed to a function that is implemented in terms of pointers.

System_CAPS_ICON_important.jpg Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class _U_RECT

Public Constructors

NameDescription
_U_RECT::_U_RECTThe constructor.

Public Data Members

NameDescription
_U_RECT::m_lpRectPointer to a RECT.

The class defines two constructor overloads: one accepts a RECT& argument and the other accepts an LPRECT argument. The first constructor stores the address of the reference argument in the class's single data member, m_lpRect. The argument to the pointer constructor is stored directly without conversion.

Header: atlwin.h

The class holds the value passed to either of its constructors as a public LPRECT data member.

LPRECT m_lpRect;

The address of the reference argument is stored in the class's single data member, m_lpRect.

_U_RECT(RECT& rc);  
_U_RECT(LPRECT lpRect);

Parameters

rc
A RECT reference.

lpRect
A RECT pointer.

Remarks

The argument to the pointer constructor is stored directly without conversion.

Class Overview

Show: