请救救小弟!!!
======================================
前言
======================================
小弟在搞Solidworks的二次开发,但由于VC++对数据库方面的支持不及DELPHI,所以
我把Solidworks的API封装成Delphi的XXX_TLB.PAS,一切都好象和C++一样的能实现对
Solidworks的二次开发,但小弟还有一个技术没有掌握。
如果谁帮小弟解决这以下的问题,我将会把我对Solidworks封装的源码公开:)这应该能
给Solidworks二次开发人员一些帮助吧。:)
======================================
问题:
======================================
在Solidworks的API中有一个函数FeatMgrView::GetFeatMgrViewWnd,它能近回一个CWND HANDLE。
请问我如何才能把Delphi开发的FORM放置到它(CWND HANDLE)上呢。
======================================
函数的说明(英文)
======================================
Description
This method will get the FeatureManager design tree window handle as a CWnd object. You may use this CWnd in combination with standard MFC calls to draw into this view as desired.
Syntax (OLE Automation)
retval = FeatMgrView.GetFeatMgrViewWnd ()
Return:
(long) retval
The CWnd handle of the FeatureManager design tree view
Syntax (COM)
status = FeatMgrView->GetFeatMgrViewWnd ( &retval )
Output:
(long) retval
The CWnd handle of the FeatureManager design tree view
Return:
(HRESULT)status
S_OK if successful
Remarks
You should make this call when the FeatureManager design tree view is created with ModelDoc::CreateFeatureMgrView. This method is not needed with ModelDoc::AddFeatureMgrView since you created the view and would, therefore, already have its handle.