Sorry, Now I had another way to create new
window. Because I only need a HWND, so I just create it with ::CreateWindow
.
----- Original Message -----
Sent: Wednesday, October 05, 2005 2:02
PM
Subject: [CPP] Problem with custom
command
I have a command for xsi 4.2, Now I have to
port it to XSI 5. In this command, I have to create a CWnd to perform some
operations, So, I use these codes:
m_pContextWnd=new CWnd();
but it will fail on xsi5, I don't know why it
succeeded on 4.2, After this, the m_pContextWnd->m_hWnd is null on
xsi5.
so here comes my question, How can I accquire
the HWND handle of XSI interface? I don't want to use CDH, because acturaly,
I don't need to display any thing, I just need a HWND to do some
operations.