![]() |
How can I change menu position? |
Post Reply ![]() |
Author | |
peony7 ![]() Newbie ![]() Joined: 06 October 2009 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 06 October 2009 at 5:02am |
I made a toolbar , each toolbar button has a menu. I coded as follows.
but I have a problem. I would like to change the menu position like a TrackPopupMenu() function. Is there any method?
First time, I used TrackPopupMenu() function. But I couldn't use customize mode at the case.
int CMainFrame::OnCreateControl(LPCREATECONTROLSTRUCT lpCreateControl)
{ if (lpCreateControl->nID == ID_OPERATION) { CXTPControlPopup* pButton = CXTPControlPopup::CreateControlPopup(xtpControlButtonPopup); pButton->SetStyle(xtpButtonIcon); pButton->SetFlags(xtpFlagManualUpdate); CXTPPopupBar* pPopupBar = CXTPPopupBar::CreatePopupBar(GetCommandBars()); lpCreateControl->pControl = pButton;
return TRUE; } return FALSE;
}
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |