|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2021/5/14 15:58:14 |
标题: |
从获取其他进程中flexGrid表格数据 |
浏览:983 |
|
加入我的收藏 |
楼主: |
DWORD* p= (DWORD*) ::GetWindowLong(flexGridHWND, GWL_USERDATA); p++; //add 8; p++; //add 8; LPDISPATCH pDisp= (LPDISPATCH)*p; long row,col; COleDispatchDriver iDriver; iDriver.AttachDispatch(pDisp); // getrows() iDriver.InvokeHelper(0x4, DISPATCH_PROPERTYGET, VT_I4, (void*)&row, NULL); // getcols() iDriver.InvokeHelper(0x5, DISPATCH_PROPERTYGET, VT_I4, (void*)&col, NULL); ofs.open("c:\\textout.txt",ios::ate|ios::out); ofs<<"rows:"<<row<<",cols:"<<col<<endl;
那位大神能转一下Delphi代码 DWORD* 对应PDWORD
----------------------------------------------
- |
作者: |
|
2021/5/14 16:39:39 |
1楼: |
原文:https://blog.csdn.net/Castlehe/article/details/108273117
----------------------------------------------
-
|
|