#pragma once #include #include "WCString.h" namespace SRFramework { class SRMenu { public: SRMenu(); SRMenu(HMENU hMenu); virtual ~SRMenu(); protected: HMENU m_hMenu; public: BOOL CreateMenu(); BOOL CreatePopupMenu(); void DestroyMenu(); BOOL InsertMenu(const SRMenu & menu, UINT uPosition, UINT uFlags,const WCString & wcsNewItem); BOOL AppendMenu(UINT nFlags, UINT_PTR nIDNewItem,const WCString &wcsNewItem); BOOL CheckMenuItem(UINT nIDCheckItem, UINT nCheck); }; }