Mouse tracking & findout current window

Hi,
How to change Keyboard & Mouse Focus from one window to other?In my application From one child window i want to change my keyboard & mouse focus to Toolbar window in one condition & another child window in another condition also,default focus should be in first child window.Please help me
Last edited on
Are you using MFC?
using win32 api,Actually i am having a child window with toolbar,In this toolbar i have a combo box,in child window i wnt to use mouse middile button for scrolling,so i have to use SetFocus ( parent of that child window),then combo box on toolbar loosing its focus.So i think i have to track mouse pointer & find out in which window mouse pointer is now,7 according to that i have to change window focusing.Is there any methode for that?.Please help me some one
Last edited on
Topic archived. No new replies allowed.