G
GAEL
I am creating an unmanaged Diretcx 9 application but I
want to integrate it to my managed c++ application.
Here is the problem:
I dont want to use
m_hWnd = CreateWindow( _T("D3D Window"),m_strWindowTitle,
m_dwWindowStyle, CW_USEDEFAULT, (rc.right-rc.left),
(rc.bottom-rc.top), 0,LoadMenu( hInstance, MAKEINTRESOURCE
(IDR_MENU) ), hInstance, 0 );
to create my window.
I just use the windows Form designer.
but to create my device, I need a window handle of type
HWND.
how can I retrieve this type (HWND) from my form Form1
(this)?
this->Handle returns me an object of type System::IntPtr
How can I convert (if possible) IntPtr to HWND in
(managed) c++?
want to integrate it to my managed c++ application.
Here is the problem:
I dont want to use
m_hWnd = CreateWindow( _T("D3D Window"),m_strWindowTitle,
m_dwWindowStyle, CW_USEDEFAULT, (rc.right-rc.left),
(rc.bottom-rc.top), 0,LoadMenu( hInstance, MAKEINTRESOURCE
(IDR_MENU) ), hInstance, 0 );
to create my window.
I just use the windows Form designer.
but to create my device, I need a window handle of type
HWND.
how can I retrieve this type (HWND) from my form Form1
(this)?
this->Handle returns me an object of type System::IntPtr
How can I convert (if possible) IntPtr to HWND in
(managed) c++?