RE: [CPP] Problem with custom command [Solved]

Date : Wed, 5 Oct 2005 08:45:43 -0400
To : <XSI(at)Softimage.COM>
From : "Andrew Skowronski" <askowron(at)Softimage.COM>
Subject : RE: [CPP] Problem with custom command [Solved]
Glad you solved your problem. 
 
And for those who are interested, XSI 5.0 does expose the main window handle of XSI as part of the C++ API.
 
-Andrew
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf Of Steve Yin
Posted At: Wednesday, October 05, 2005 4:37 AM
Posted To: xsi
Conversation: [CPP] Problem with custom command [Solved]
Subject: Re: [CPP] Problem with custom command [Solved]

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 -----
From: Steve Yin
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.

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.