How to get a pointer to the CMDIFrameWnd window of ICad.exe
Posted: Thu Jan 13, 2005 6:05 pm
Hi,
How could I get a pointer to the IntelliCAD CMDIFrameWnd window?
I would like the something that works like acedGetAcadFrame() function from ARX.
I tried these:
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)CMDIFrameWnd::FromHandle(sds_getmainhwnd());
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)AfxGetApp()->m_pMainWnd;
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)AfxGetMainWnd();
But they didn't work.
Any help is welcome.
Thanks in advance,
Vinicius
How could I get a pointer to the IntelliCAD CMDIFrameWnd window?
I would like the something that works like acedGetAcadFrame() function from ARX.
I tried these:
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)CMDIFrameWnd::FromHandle(sds_getmainhwnd());
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)AfxGetApp()->m_pMainWnd;
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)AfxGetMainWnd();
But they didn't work.
Any help is welcome.
Thanks in advance,
Vinicius