This example places a bit map into the clipboard.
#define INCL_WINCLIPBOARD #include <OS2.H> HAB hab; /* anchor-block handle. */ HBITMAP bmap; /* bit-map handle. */ HWND hwnd; WinOpenClipbrd(hab); WinSetClipbrdOwner(hab, hwnd); /* window handle of the clipboard */ /* owner. */ WinSetClipbrdData(hab, (ULONG)bmap, CF_BITMAP, CFI_HANDLE); /* tells the system that the */ /* bmap parameter is a handle */ /* to a bit map. */ WinCloseClipbrd(hab);