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