I want to write a window class to replace the combolbox window of combox, so that in my own combobox control, I can popup this window to act as the dropdown window. But I meet some difficulties:
1. If I use a popup window, when my window appear, the background window become gray.
2. If I use combolbox, I can not know when the user click out of my dropdown window at which time I can close my dropdown window.
3. If I use SetCapture() to trace mouse input, the scroll bar of my dropdown window acts strengly. When you click at the scroll bar, my mouse capture disappears.
4. I have seen some controls which do not use mouse capture at all, but they act well. When I click outside of it, it disappears, without receiving any mouse message. How can they do that?
Can anyone give me any advice?
Thank a lot in advance.