On Tue, Aug 26, 2008 at 01:32:17PM -0700, Dan Gilbert wrote:
> My company has upgraded to VS2008 for our application, and with this
> upgrade all the existing guitest tab functions have stopped
> functioning. Using WinSpy, the tab window now has a class of
> Afx:TabWnd:.... .
> Am I out of luck? The workaround is to use mouse clicks, but I'm not
> fond of this. Currently I'm trying to see if I can change the guitest
> code to recognize the new tab window. Any help or advice would be
> greatly appreciated.
I can't tell for sure, but Win32::GuiTest's tab code seems to work only with
windows created with WC_TABCONTROL class. The Afx windows are created by MF
classes, not Win32 API, - a completely different set of functions and messages.
Check out MFC implementation of a tab window, CMFCTabCtrl:
http://msdn.microsoft.com/en-us/library/bb984302.aspx . Possibly this could
be a first step to the functionality you need.
I'm not sure if that API is worth including in Win32::GuiTest code, but if you feel
like it, it might be worth a standalone Win32::MFC::TabCtrl, who knows?