handling a listbox's LButtonUp in parent-dialog
-
Should not be too hard but I'm probably just very stupid :) I have a dialog with a listbox. I want to know when the mouse-button is released in the listbox's client-area. I DON'T want to create a special class for the listbox. So how can my dialog get an OnLButtonUp from the listbox..? Any help would be greatly appreciated! :)
-
Should not be too hard but I'm probably just very stupid :) I have a dialog with a listbox. I want to know when the mouse-button is released in the listbox's client-area. I DON'T want to create a special class for the listbox. So how can my dialog get an OnLButtonUp from the listbox..? Any help would be greatly appreciated! :)
-
Should not be too hard but I'm probably just very stupid :) I have a dialog with a listbox. I want to know when the mouse-button is released in the listbox's client-area. I DON'T want to create a special class for the listbox. So how can my dialog get an OnLButtonUp from the listbox..? Any help would be greatly appreciated! :)
your dialog is receiving only notification messages from it's childs WM_NOTIFY message and notification code. You could simulate this behaviour by subclasing the listbox and send a message to it's parent (dialog) use
CHookWnd
class By PJ Naughter http://www.codeproject.com/cpp/chookwnd.asp -
One solution is to add the appropriate mouse message handler and determine whether the mouse is over the client area via PtInRect(). Kuphryn