I can read one MSFlexGrid from a tab select window, but when selecting the second and third MSFlexGrid I still read the first MSFlexGrid. I'm expecting to have to develop a DLL to read the MSFlexGrid. Is there an easier way?
I have a window which is MSFlexGridWndClass. I am trying to look at data within a cell in the grid. Can this be done without developing a DLL?
I tried the following code:
CurrentWindow = WFndWndC("AccessRights", "ThunderRT6FormDC", FINDWINDOWFLAGS_IF, Timeout)
WSetWndPosSiz(CurrentWindow, 0, 70, 880, 623)
CurrentWindow = WFndWndC(NULL,"MSFlexGridWndClass",FW_FOCUS)
if CurrentWindow = 0 Then fail "Can't find window"
If Not WTabExists(_hwnd(CURRENTWINDOW)) Then
Fail "Tab control doesn't exist on this window."
This result is
Tab control doesn't exist.
Rational had a technical article available for how to use OLE to walk down the cells in an MSFlexGridwork - it was article ID 4841 but I will save you some time and post the direct link for were IBM now has the article...