A
andykwok
Unregistered / Unconfirmed
GUEST, unregistred user!
======================================<br>前言<br>======================================<br>小弟在搞Solidworks的二次开发,但由于VC++对数据库方面的支持不及DELPHI,所以<br>我把Solidworks的API封装成Delphi的XXX_TLB.PAS,一切都好象和C++一样的能实现对<br>Solidworks的二次开发,但小弟还有一个技术没有掌握。<br>如果谁帮小弟解决这以下的问题,我将会把我对Solidworks封装的源码公开:)这应该能<br>给Solidworks二次开发人员一些帮助吧。:)<br>======================================<br>问题:<br>======================================<br>在Solidworks的API中有一个函数FeatMgrView::GetFeatMgrViewWnd,它能近回一个CWND HANDLE。<br>请问我如何才能把Delphi开发的FORM放置到它(CWND HANDLE)上呢。<br>======================================<br>函数的说明(英文)<br>======================================<br>Description<br>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.<br>Syntax (OLE Automation)<br>retval = FeatMgrView.GetFeatMgrViewWnd ()<br>Return:<br> (long) retval<br> The CWnd handle of the FeatureManager design tree view<br>Syntax (COM)<br>status = FeatMgrView->GetFeatMgrViewWnd ( &retval )<br>Output:<br> (long) retval<br> The CWnd handle of the FeatureManager design tree view<br>Return:<br> (HRESULT)status<br> S_OK if successful<br>Remarks<br>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.<br><br><br>