![]() |
Dismiss popup menu |
Post Reply
|
| Author | |
EugeneSemashko
Newbie
Joined: 08 September 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Dismiss popup menuPosted: 08 September 2008 at 9:11am |
|
Hello, i have a popup menu created with CXTPPopupBar class. I can't dismiss this menu sending it's owner WM_CANSELMODE message. And finally i can't find HMENU currently displayed on window. Menu was created by this code:
CXTPPopupBar* pMenu = GetPtr(CXTPPopupBar,menu_index); CMainFrame* pFrame = GetMainWnd(); CPoint pt; int flags = TPM_RETURNCMD | TPM_RIGHTBUTTON | TPM_CENTERALIGN | TPM_TOPALIGN; int choice; pt.x = x; pt.y = y; ::ClientToScreen(pFrame->CoorHwnd(), &pt); pFrame->GetCommandBars()->TrackPopupMenu(pMenu, flags, pt.x, pt.y, pFrame); |
|
|
EugeneSemashko
|
|
![]() |
|
EugeneSemashko
Newbie
Joined: 08 September 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 September 2008 at 9:30am |
|
It very important for me
|
|
|
EugeneSemashko
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 September 2008 at 9:32am |
|
Hello,
Call pCommandBars->ClosePopups(); to close all popup menus.
our Menus doesn't have HMENU. Use CXTPControls/CXTPControl methods instead.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
EugeneSemashko
Newbie
Joined: 08 September 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 September 2008 at 5:34am |
|
Hello! It's work! Thank you for help
|
|
|
EugeneSemashko
|
|
![]() |
|
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 |