Get focus
-
Hi, I have many dialog windows in my program.Some of them are child window.I want to know that which button has the focus in a certain time.Actually,I want to do that the button will be pressed which has the focus in a certain time.How can I do that? Thanks, ibrahim
-
Hi, I have many dialog windows in my program.Some of them are child window.I want to know that which button has the focus in a certain time.Actually,I want to do that the button will be pressed which has the focus in a certain time.How can I do that? Thanks, ibrahim
The solution is not as straight forward as seems to be. My first approach was to handle WM_SETFOCUS, but it will not work. But I have faced a similar situation my requirement was different. So let me give you the solution, just override OnCommand & check for notification code of WPARAM. :laugh: