Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Initializes the CContextMenuManager object.
BOOL InitContextMenuManager();
Return Value
Nonzero if the method creates the CContextMenuManager object; 0 if the CContextMenuManager object already exists.
Remarks
If you call CWinAppEx::GetContextMenuManager, the default implementation of that method calls InitContextMenuManager.
If your application already has a context menu manager and you call InitContextMenuManager, your application will have an ASSERT failure. Therefore, you should not call InitContextMenuManager if you create a CContextMenuManager object directly. If you are not using a custom CContextMenuManager, you should use GetContextMenuManager to create a CContextMenuManager object.
Requirements
Header: afxwinappex.h