This method is specific to version 3, or higher, of the OS/2 operating system.
This class method returns a pointer to the object associated with the specified frame window handle.
#define INCL_WINWORKPLACE #include <os2.h> M_WPDesktop *somSelf; /* Pointer to the WPDesktop class object. */ HWND hwndFrame; /* Handle to the top-level frame window. */ WPObject *Object; /* Pointer to the object associated with hwndFrame. */ Object = _wpclsQueryObjectFromFrame(somSelf, hwndFrame);