I am trying to access a desktop application from my WinForm application. I am accessing the UI controls of the desktop application from my application, for this, I am getting the instance of that application Process, through that, getting the main application handle. Using that application handle I can navigate to any of the controls in that application, since all other controls are child control, only thing that I need to know is the relative path from the main application (ie, its either
GW_CHILD or GW_HWNDNEXT, this we can get using the Spy++ tool of Visual Studio). Now the problem I got struck in
is that I would like to navigate within the Tab control.
I would like to select tab page from a tab (of SysTabControl32 type), get its form/window/dialog control
to focus, play around with its controls, select some other tab page, so the same
Now, when I SendMessageA( handleToTabControl,TCM_SETCURSEL, TAB_PAGE_INDEX, null), its just
setting/showing the corresponding tab (button at the top) as if selected (by bring to front, relative to other
pages) , but the tab/window controls corresponding to the selected tab page are not being shown.
Am I sending wrong message or not doing enough stuff.
Can any body please help me out and give some clue
Thanks in advance