This function sets the current clipboard-viewer window to a specified window.
#define INCL_WINCLIPBOARD /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HAB hab; /* Anchor-block handle. */ HWND hwndNewClipViewer; /* Window handle of the new clipboard viewer. */ BOOL rc; /* Success indicator. */ rc = WinSetClipbrdViewer(hab, hwndNewClipViewer);