Click to open or copy the Cosmo sample.
In order to build any of the Samples for Inside OLE, 2nd Edition, you need to copy the required files. You only need to copy these files once.
See the online version of Inside OLE in the MSDN Library for a description of this sample.
This sample uses the following keywords:
_lclose; _llseek; _lread; _lwrite; activedocument; adjustwindowrect; beginpaint; cclient; ccosmoclient; ccosmodoc; ccosmoframe; cdocument; cframe; check; checklineselection; checkmenuitem; choosecolor; clear; clip; closeclipboard; closemetafile; coinitialize; colorget; colorset; commandparams; couninitialize; cpolyline; cpolylineadvisesink; createcclient; createcdocument; createcompatiblebitmap; createcompatibledc; createlinemenu; createmetafile; createpen; createsolidbrush; createstream; createtoolbar; createwindowex; cwindow; dataget; datagetmem; dataset; datasetmem; defwindowproc; deletedc; deletemetafile; deleteobject; dptolp; draw; emptyclipboard; enable; enablemenuitem; endpaint; errormessage; failed; fdirtyset; fmessagehook; fquerypaste; getclassinfo; getclientrect; getclipboarddata; getdc; getdevicecaps; getmapmode; getmenu; getparent; getscode; getstockobject; getsubmenu; getsyscolor; gettextmetrics; getwindowlong; getwindowrect; globalalloc; globalfree; globallock; globalunlock; inflaterect; invalidaterect; isclipboardformatavailable; iswindow; linestyleget; linestyleset; lineto; liset32; load; loadcursor; makelong; makepoints; memset; messagebeep; messagebox; messageloop; modifymenu; movetoex; muldiv; newdocument; offsetrect; oletext; oncolorchange; oncommand; ondatachange; ondocumentactivate; ondocumentdatachange; onlinestylechange; onpointchange; onsizechange; openclipboard; openfile; openfilew; openstream; paste; patblt; pointscale; polylinewndproc; preshowinit; readfromfile; readfromstorage; rectangle; rectconvertmappings; rectget; rectset; rectstorect; recttorects; registerallclasses; registerclass; release; releasedc; rename; renderbitmap; renderformat; rendermetafile; rendermetafilepict; save; saveopendialog; screentoclient; seek; selectobject; setbkcolor; setclipboarddata; setmapmode; setpixel; setrect; setwindowextex; setwindowlong; setwindoworgex; setwindowpos; sizeget; sizeset; stgcreatedocfile; stgisstoragefile; stgopenstorage; text; undo; unicodetoansi; unregisterclass; updatemenus; updatetoolbar; updatewindow; window; writeclassstg; writefmtusertypestg; writetofile; writetostorage; wsprintf