HWND handle of a WNT_Window

Hi,

does somebody know, how to get the HWND handle of a WNT_Window???

So far my Code looks like this:

Handle(Aspect_Window) anAspectWindow = myView->Window();
Handle(WNT_Window) aWNTWindow = Handle(WNT_Window)::DownCast(anAspectWindow);
RECT r;
GetClientRect ((HWND)aWNTWindow,&r) ;

But it doesn't work.
Unfortunately the Class WNT_Window is not derived from CWnd, so that ->GetSaveHwnd() does not work as well...

Thanks,

Andreas

Stephane Routelous's picture

did you try aWNTWindow->HWindow() ?

Andreas Hussong's picture

i just found out myself 5 minutes ago :-)
i must have been blind for the last few hours.
Sorry - but thanks a lot anyway !!!

Andreas