Programming Guide |
Gets a handle to the current screen that can be passed to the window manager
#include <smmwuser.h>HWND sm_mw_drawingarea(void);#include <smxmuser.h>Widget sm_xm_drawingarea(void);
Motif, Windows; C only
- · Success: On Windows, an HWND handle to the window; on Motif, a Widget ID.
sm_mw_drawingarea
andsm_xm_drawingarea
get a handle to the current screen—in the case of Windows, a HWND handle; under Motif, a Widget ID. Use these functions with sm_translatecoords to place objects such as bitmapped graphics or custom widgets on a Panther screen. Refer tosm_translatecoords
for a Windows example that uses this function.Note: The Widget ID that
sm_xm_drawingarea
returns is not a recognizable X widget type. Consequently, you cannot directly call XmAddCallback with it. To use this Widget ID, you must call XmAddEventHandler.