I have control (implemented C#, .Net 2.0) that inherits from combobox. It has filtering and other stuff. To keep UI right, when amount of items during filtering falls, drop down list changes its size to fit the number of items left (it is done by NativeMethods.SetWindowPos(…)).
Is there any way to check if drop down list is revealed up or down (literally) – not to check if it is open, it is open, but in which direction, upwards or downwards?
cheers, jbk
So i found an answer:
Here we have both handles to combobox:
And to dropdownlist of combobox:
Now, we can get rectangles from handles:
and
now we can check: