capturing embedded control messages
-
Hi all, I have a simple dialog box with two list view controls on it. the controls both have a vertical scroll bar and are created via Visual Studio (not manually using CreateWindowEx). I need to syncronize the scrollbars so when a user selects one scrollbar, the other list view's scroll bar also moves (obviously moving the information within as well). From what I read in MSDN, I thought the scroll messages from a control within were propagated to the parent window (in this case a dialog box). With this information, I understood it as I could just handle the WM_VSCROLL message in the parent's windproc and figure out where the message came from and do what I got to do (using SetScrollPos and such). Only thing is, my parent window is not receving ANY messages from the two list view controls. I don't remember what I need to do so the parent windproc receives these messages so I can handle my scrolling. Any suggestions on how to get the messages? Other than adding a windproc for each control? I don't really want to do it that way and I'm looking for a better way. Any suggestions are greatly appreciated. Thank you!