CPopupMenu类参考

#include <PopupMenu.h>

继承自CMzWndEx

所有成员的列表。

公有成员

void AddItem (struct PopupMenuItemProp &pmip)
 CPopupMenu (const TCHAR *pString=NULL)
int GetHeight ()
 get the height of the window
virtual LRESULT MzDefWndProc (UINT message, WPARAM wParam, LPARAM lParam)
virtual BOOL OnInitDialog (void)
 called by MZFC when the window (dialog) is created and initializing.
virtual void OnMzCommand (WPARAM wParam, LPARAM lParam)
 called when the window receives MZFC's command message MZ_WM_COMMAND
virtual void OnSettingChange (DWORD wFlag, LPCTSTR pszSectionName)
 called when received WM_SETTINGCHANGE
void PaintWin (HDC hdc, RECT *prcUpdate=NULL)
 called when the window needs paint or update.
virtual ~CPopupMenu (void)


构造及析构函数文档

CPopupMenu::CPopupMenu ( const TCHAR *  pString = NULL  ) 

virtual CPopupMenu::~CPopupMenu ( void   )  [virtual]


成员函数文档

void CPopupMenu::AddItem ( struct PopupMenuItemProp pmip  ) 

int CPopupMenu::GetHeight (  )  [inline]

get the height of the window

重载CMzWnd

virtual LRESULT CPopupMenu::MzDefWndProc ( UINT  message,
WPARAM  wParam,
LPARAM  lParam 
) [virtual]

the window's message processing function.

  • override this member to do your own processing, but remember to call it after you've do your own processing.

重载CMzWndEx

virtual BOOL CPopupMenu::OnInitDialog ( void   )  [virtual]

called by MZFC when the window (dialog) is created and initializing.

Derived class must override this member function to do your own initializations, and must called the following first:

 if(!CMzWndEx::OnInitDialog())
     return FALSE;
 // add your initialise code below...
 // ...

返回:
FALSE: init failed, TRUE: init succeeded.
参见:
CMzWnd::Create()

重载CMzWndEx

virtual void CPopupMenu::OnMzCommand ( WPARAM  wParam,
LPARAM  lParam 
) [virtual]

called when the window receives MZFC's command message MZ_WM_COMMAND

override this member to process your UI's command

参见:
MZ_WM_COMMAND

重载CMzWnd

virtual void CPopupMenu::OnSettingChange ( DWORD  wFlag,
LPCTSTR  pszSectionName 
) [virtual]

called when received WM_SETTINGCHANGE

重载CMzWnd

void CPopupMenu::PaintWin ( HDC  hdc,
RECT *  prcUpdate = NULL 
) [virtual]

called when the window needs paint or update.

重载CMzWndEx


该类的文档由以下文件生成:

Generated at Fri Feb 20 15:17:30 2009 for Meizu M8 MZFC Documentation by 魅族手机