![]() |
Popup Positioning |
Post Reply ![]() |
Author | |
mrmathis ![]() Senior Member ![]() ![]() Joined: 17 May 2007 Location: United States Status: Offline Points: 105 |
![]() ![]() ![]() ![]() ![]() Posted: 09 June 2008 at 12:22pm |
I am calling CXTPPopupBar::Popup to track a context menu. Inside there, a call is made to UpdateLocation to position the menu. Shortly thereafter, a call is made to OnIdleUpdateCmdUI, and in my handler for that I remove an entry or two via "pControl->SetVisible(FALSE)". However, since that happens after the position is calculated, the menu ends up looking "off" when the click happened near the bottom of the screen. That is, there is an n-entry vertical gap (where n is the number of entries I removed) between the cursor and the bottom of the menu.
Shouldn't the UpdateLocation call happen after OnIdleUpdateCmdUI?
|
|
--Mike
|
|
![]() |
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 |