ReactOS 0.4.16-dev-106-g10b08aa
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 133 of file CDefView.cpp.

Constructor & Destructor Documentation

◆ MenuCleanup()

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

Definition at line 138 of file CDefView.cpp.

139 : m_pCM(pCM), m_hMenu(menu)
140 {
141 }
HMENU & m_hMenu
Definition: CDefView.cpp:136
CComPtr< IContextMenu > & m_pCM
Definition: CDefView.cpp:135

◆ ~MenuCleanup()

MenuCleanup::~MenuCleanup ( )
inline

Definition at line 142 of file CDefView.cpp.

143 {
144 if (m_hMenu)
145 {
147 m_hMenu = NULL;
148 }
149 if (m_pCM)
150 {
152 m_pCM.Release();
153 }
154 }
void Release()
Definition: atlcomcli.h:170
#define NULL
Definition: types.h:112
HRESULT WINAPI IUnknown_SetSite(IUnknown *obj, IUnknown *site)
Definition: ordinal.c:1411
BOOL WINAPI DestroyMenu(_In_ HMENU)

Member Data Documentation

◆ m_hMenu

HMENU& MenuCleanup::m_hMenu

Definition at line 136 of file CDefView.cpp.

Referenced by ~MenuCleanup().

◆ m_pCM

CComPtr<IContextMenu>& MenuCleanup::m_pCM

Definition at line 135 of file CDefView.cpp.

Referenced by ~MenuCleanup().


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