共用方式為


CWinFormsControl::GetControlHandle

擷取控制代碼為 Windows Form 控制項。

inline HWND GetControlHandle( ) const;

傳回值

將控制代碼傳回給 Windows Form 控制項。

備註

傳回GetControlHandle 是在 .NET Framework 中控制項的屬性中的視窗控制代碼的 Helper 方法。 在 [ CWnd::Attach,的呼叫期間視窗控制代碼的值複製到 CWnd::m_hWnd

需求

Header: afxwinforms.h

請參閱

參考

CWinFormsControl 類別

CWinFormsControl::GetControl

CWinFormsControl::CreateManagedControl