DiscussionsIssue archiveOther usage issues

Archived discussion

HWND handle of a WNT_Window

Other usage issuesThu, 11/07/2002 - 16:082 replies

Browse this forum
QuestionAuthor

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,

Author

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

did you try aWNTWindow->HWindow() ?

02Author

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

Author