Forum Discussion

Patrice's avatar
Patrice
Contributor
13 years ago

VB6 Grid Control with WndClass:AfxWnd40 not recognised


Hi,





I have lots of VB6 Grid Controls with WndClass: AfxWnd40(in TestComplete) in my application and so far i have been able to:





'Get number of rows

MyRows = MyAfxWnd40WndClass.rows





'Get number of cols

MyCols = MyAfxWnd40WndClass.cols





BUT i can't:





-  Get Data in a Cell using MyAfxWnd40WndClass.TextMatrix(x,x)

-  Select a cell, cells

-  Select a row, rows





I added the WndClass to the Object Mapping\Microsoft Controls\Grid and DataGrid just in case but no luck.





Can someone help?









Thanks,

Patrice

11 Replies