Click to See Complete Forum and Search --> : How to change the order of WM_SETFOCUS


yajneshilu
November 30th, 2005, 04:22 AM
There is the parent class & some child controls.Also the parent class is calling SetFocus ,also child controls.When it is minimize or maximize WM_SETFOCUS is sent to cjil;d controls first & then parent.But when anothere dialog is opened & when this dialog is closed.The WM_SETFOCUS is set to child parent class first & theen child controls.Hence I am unable to set the focus to the desired control .Can I change this order of sending WM_SETFOCUS?

humptydumpty
November 30th, 2005, 04:34 AM
yes u can
by using SendMessage() function.
do what ever u want and wherever u want to set the focuss