G
Guest
Hi,
I have code that "pops up" a listbox control. It's a child of my topmost
form, and appears on top of other controls. I would like to hide the listbox
when the user taps on an item in the list (on MouseUp), or taps outside the
listbox (on MouseDown).
Of couse, ListBox doesn't support the mouse methods. Setting Capture=true
and attaching a MouseDown delegate to the main form only works to a point (if
the user taps in another control, or on the menu bar, there's no
notification).
I wrote a native DLL that calls SetWindowsHookEx and passes mouse messages
to a managed MessageWindow. It turns out that mouse hooks are not implemented
in WinCE.
Am I missing something, or have I done something wrong? I see that the
ComboBox drop-down list manages this, as does the SysDateTimePick32 control.
It looks like OpenNETCF ApplicationEx class would allow me to create an
application-wide message filter for the lifetime of the ListBox. Could
someone confirm that this will pony up those pesky mouse messages?
I have code that "pops up" a listbox control. It's a child of my topmost
form, and appears on top of other controls. I would like to hide the listbox
when the user taps on an item in the list (on MouseUp), or taps outside the
listbox (on MouseDown).
Of couse, ListBox doesn't support the mouse methods. Setting Capture=true
and attaching a MouseDown delegate to the main form only works to a point (if
the user taps in another control, or on the menu bar, there's no
notification).
I wrote a native DLL that calls SetWindowsHookEx and passes mouse messages
to a managed MessageWindow. It turns out that mouse hooks are not implemented
in WinCE.
Am I missing something, or have I done something wrong? I see that the
ComboBox drop-down list manages this, as does the SysDateTimePick32 control.
It looks like OpenNETCF ApplicationEx class would allow me to create an
application-wide message filter for the lifetime of the ListBox. Could
someone confirm that this will pony up those pesky mouse messages?