Jump to content

Combo Box - Prevent Change with mouse wheel


Recommended Posts

Hello,

I have a combo box and when the mouse hovers on it and I scroll the mouse wheel, the combo box scrolls and change data. I want to prevent that from happening and change the data on the combo box, only by mouse clicking. Is it possible?

Thank you.

 

Coding can be fun when you do it your own.

Link to post
Share on other sites
  • 2 weeks later...
On 10/11/2021 at 9:40 PM, kjpolker said:

_GUICtrlComboBox_SetExtendedUI()

 

Good catch!

I have learned new info.

 

Details:

https://docs.microsoft.com/en-us/windows/win32/controls/cb-setextendedui

Quote

By default, the F4 key opens or closes the list and the DOWN ARROW changes the current selection. In the extended UI, the F4 key is disabled and the DOWN ARROW key opens the drop-down list. The mouse wheel, which normally scrolls through the items in the list, has no effect when the extended UI is set.

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...