Click to open or copy the Cocosmo 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:
activedocument; addref; adjustwindowrect; advise; cclient; ccosmoclient; ccosmodoc; ccosmoframe; cdocument; cframe; check; checklineselection; checkmenuitem; choosecolor; clear; clip; closeclipboard; cocreateinstance; cofreeunusedlibraries; coinitialize; colorget; colorset; commandparams; couninitialize; cpolylineadvisesink; createcclient; createcdocument; createcompatiblebitmap; createcompatibledc; createlinemenu; createpen; createtoolbar; datagetmem; dataset; deletedc; deleteobject; emptyclipboard; enable; enablemenuitem; errormessage; failed; fdirtyset; fmessagehook; fquerypaste; getclassinfo; getclientrect; getclipboarddata; getdc; getmenu; getscode; getsubmenu; gettextmetrics; getwindowlong; getwindowrect; globallock; globalunlock; inflaterect; isclipboardformatavailable; linestyleget; linestyleset; lineto; load; memset; messagebox; messageloop; modifymenu; movetoex; newdocument; oncolorchange; oncommand; ondatachange; ondocumentactivate; ondocumentdatachange; onlinestylechange; onpointchange; onsizechange; openclipboard; paste; patblt; preshowinit; queryinterface; readfromfile; rectset; registerallclasses; registerclass; release; releasedc; releaseinterface; rename; renderbitmap; renderformat; rendermetafilepict; resultfromscode; save; saveopendialog; selectobject; setclipboarddata; setrect; setwindowpos; stdmethodimp_; succeeded; unadvise; undo; unregisterclass; updatemenus; updatetoolbar; window; writetofile