Can Win32 popup menus respond to the scroll wheel?

Let's say I got a Win32 pop-up menu with a swamp standard, and it’s above the screen. It sprouts an up arrow at the top and a down arrow at the bottom, so that the user can scroll through their elements.

Is it even possible for such a menu to respond to mouse wheel scrolling? The scroll wheel events are sent to focused control, which is not a menu, so it usually happens that instead of a text editor is behind the menu.

Update. That is, is there a way to route the events of the scroll wheel or any message that I can send to the open menu to programmatically scroll it up or down?

+3
source share
2 answers

You can hack something yourself, but it will not be the Win32 menu. This is not part of the user interface standard.

The reason this is true is probably what you have already stated; Win32 menu cannot get focus.

0
source

Can you somehow minimize the menu? Office hides less used menus and provides a menu item to load them when necessary. if not, you can write your own paging, as the initial menu does.

0
source

Source: https://habr.com/ru/post/1720993/


All Articles