I have control, subclassed from CDialogBar, it has some buttons(like on toolbar). When I catch WM_LBUTTONDOWN in the CDialogBar class is it a simple way of getting know if mouse was clicked on one of the buttons that are on the control?
I have control, subclassed from CDialogBar, it has some buttons(like on toolbar). When I
Share
CDialogBarclass normally hosts regular windowed controls, so when a button is clicked there,WM_LBUTTONDOWNmessage is sent to this control window, not the dialog window class. So if you want to intercept those messages (if you really do), you need to either subclass the windows and handle their messages, or install a message hook.You can also use
Spy++tool to see what messages are effectively reaching yourCDialogBarwindow of interest to see if handling them might be a solution to your challenge.