AddInternalMenu
Adds an internal menu to the main menu created from resource
BOOL AddInternalMenu( HWND hMenu, int nMenuID, int nMenuPos )
TRUE if successful, FALSE otherwise
EX1
#include <Control.h> #include <OC_Res.h> void OriginObject_AddInternalMenu_Ex1(Menu* pmenu, int nId = IDR_CM_WKS) { Worksheet wks = Project.ActiveLayer(); HINSTANCE hInstOutil = GetModuleHandle(MODULE_OU); if(pmenu->Load(hInstOutil, nId, 1)) { HWND hMenu = pmenu->GetSafeHmenu(); if(hMenu) wks.AddInternalMenu(hMenu, nId, 1); } }
Adds if needed an internal menu to the main menu created from resource
origin.h