共用方式為


_U_STRINGorID::_U_STRINGorID

The UINT constructor converts its argument to a resource type compatible with Windows resource-management functions using the MAKEINTRESOURCE macro and the result is stored in the class's single data member, m_lpstr.

_U_STRINGorID( 
   UINT nID  
); 
_U_STRINGorID( 
   LPCTSTR lpString  
);

Parameters

  • nID
    A resource ID.

  • lpString
    A resource name.

Remarks

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

Requirements

Header: atlwin.h

See Also

Reference

_U_STRINGorID Class

_U_STRINGorID::m_lpstr