ReactOS 0.4.15-dev-8219-ge8b88cf
MenuCleanup Struct Reference
Collaboration diagram for MenuCleanup:

Public Member Functions

 MenuCleanup (CComPtr< IContextMenu > &pCM, HMENU &menu)
 
 ~MenuCleanup ()
 

Public Attributes

CComPtr< IContextMenu > & m_pCM
 
HMENUm_hMenu
 

Detailed Description

Definition at line 104 of file CDefView.cpp.

Constructor & Destructor Documentation

◆ MenuCleanup()

MenuCleanup::MenuCleanup ( CComPtr< IContextMenu > &  pCM,
HMENU menu 
)
inline

Definition at line 109 of file CDefView.cpp.

110 : m_pCM(pCM), m_hMenu(menu)
111 {
112 }
HMENU & m_hMenu
Definition: CDefView.cpp:107
CComPtr< IContextMenu > & m_pCM
Definition: CDefView.cpp:106

◆ ~MenuCleanup()

MenuCleanup::~MenuCleanup ( )
inline

Definition at line 113 of file CDefView.cpp.

114 {
115 if (m_hMenu)
116 {
118 m_hMenu = NULL;
119 }
120 if (m_pCM)
121 {
123 m_pCM.Release();
124 }
125 }
void Release()
Definition: atlcomcli.h:170
#define NULL
Definition: types.h:112
HRESULT WINAPI IUnknown_SetSite(IUnknown *obj, IUnknown *site)
Definition: ordinal.c:1407
BOOL WINAPI DestroyMenu(_In_ HMENU)

Member Data Documentation

◆ m_hMenu

HMENU& MenuCleanup::m_hMenu

Definition at line 107 of file CDefView.cpp.

Referenced by ~MenuCleanup().

◆ m_pCM

CComPtr<IContextMenu>& MenuCleanup::m_pCM

Definition at line 106 of file CDefView.cpp.

Referenced by ~MenuCleanup().


The documentation for this struct was generated from the following file: