Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Popup Positioning
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Popup Positioning

 Post Reply Post Reply
mrmathis View Drop Down
Senior Member
Senior Member

Joined: 17 May 2007
Location: United States
Status: Offline
Points: 105
Post Options Post Options   Thanks (0) Thanks(0)   Quote mrmathis Quote  Post ReplyReply Direct Link To This Post Topic: Popup Positioning
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

This page was generated in 0.063 seconds.