So the question is ....
Assume:
Code: Select all
AddXMLFile("MQUI_MyWnd.XML");
class CMyWnd:: public CCustomWnd
{
// MyWnd stuff
}
CMyWnd *MyWnd;
MyWnd = new CMyWnd;
CContextMenu::CContextMenu(class CXWnd *,unsigned __int32,class CXRect)
I am assuming thit takes a pointer to MyWnd, the default color, and the size of the context window.
So to continue the code:
Code: Select all
int iTop=10;
int iBottom=30;
int iLeft=10;
int iRight=50;
CContextMenu *MyContextMenu;
CXRect MyCXRect(iTop,IBottom,iLeft,iRight);
MyContextMenu = new CContextMenu((CXWnd *)MyWnd ,ConColorToARGB(CONCOLOR_BLACK),MyCXRect);
UINT uiMenuLinePositionToAdd = 0;
bool bIsChecked = false;
long lIHaveNoClue = 0;
MyContextMenu->AddMenuItem("A_menuline_01",uiMenuLinePositionToAdd,bIsChecked,lIHaveNoClue);



