c# - SetWindowPos changes context menu size -
if context menu open in program being resized/repositioned it's size , position changed, there way around this?
popup menus operate own modal message loops. key-presses handled menu. mouse clicks either invoke menu items, navigate sub-menus, or close menu.
in short, there's no way user invoke move or size of window whilst menu running modal message loop.
because of this, designers of system don't care happens menu in scenario describe because there's no supported way scenario occur. it's happening because, guess, have timer calls setwindowpos on window owns menu.
the way around not move or size windows whilst have popup menus open.
Comments
Post a Comment