I'm converting an app from MFC 4.0 to OWL 5 and need to know how to do the following: -
MFC provides a static member function of the CWnd class that returns a pointer to the CWnd object that is attached to a specific HWND. If no object is attached, NULL is returned. This is useful when the Cwnd (TWindow ?) object does not directly create the actual window, but rather is passed a handle to an already existing window and you want to verify that the handle is not already assigned to an object.
Its declaration is: -
static CWnd * CWnd::FromHandlePermanent(HWND hWnd)
Is there a similar functionality within OWL ? I've gone over the TWindow class and can't seem to find anything similar.