Is combobox discarded?

Is there a way to reset combobox instead of down?

+4
source share
2 answers

I replied that Q, but this is in Delphi (the code is not so hard to understand):

Can I programmatically set the position of the combobox drop-down list?

You need to subclass the ComboBox hwndList (you get this handle through the GetComboBoxInfo API) using SetWindowLong ( GWL_WNDPROC ) and process the WM_MOVE message to place the hwndList in the new position.

+6
source

Not with standard Windows sockets (Here are the styles available for combo boxes ).

As @ILMV said, Windows will clear the window up rather than down if there is not enough space in the box.

You can check this with notepad - go to format → font and drag the window down so that the Script combo box is just above the start menu. Click the combo box - it crashes.

If you want it to always fall, you will need to make your own.

+1
source

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


All Articles