
Thu, 11/07/2002 - 16:08
Forums:
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
Thu, 11/07/2002 - 17:03
did you try aWNTWindow->HWindow() ?
Thu, 11/07/2002 - 17:08
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