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; addref; adjustwindowrect; advise; beginpaint; bringwindowtotop; cclient; ccosmoclient; ccosmodoc; ccosmoframe; cdocument; cdropsource; cdroptarget; cfigure; cfigureclassfactory; cframe; check; checklineselection; checkmenuitem; choosecolor; cimpidataobject; cimpioleobject; cimpipersiststorage; clear; clip; closedocument; closemetafile; cocreateinstance; codisconnectobject; cogetclassobject; colockobjectexternal; colorget; colorset; commandparams; coregisterclassobject; corevokeclassobject; cpolyline; cpolylineadvisesink; createcclient; createcdocument; createcompatiblebitmap; createcompatibledc; createdataadviseholder; createinstance; createlinemenu; createmetafile; createoleadviseholder; createpen; createsolidbrush; createstream; createtoolbar; createwindowex; cstringtable; cwindow; dadvise; dataget; datagetmem; dataset; datasetmem; defwindowproc; deletedc; deleteinterfaceimp; deletemenu; deletemetafile; deleteobject; destroyelement; dodragdrop; doverb; dptolp; dragenter; dragleave; dragover; draw; drawmenubar; drop; dropselecttargetwindow; dunadvise; enable; enablemenuitem; endpaint; enumadvise; enumdadvise; enumformatetc; enumverbs; errormessage; failed; fdirtyget; fdirtyset; fisdirty; fisembedded; fmessagehook; fquerypaste; fquerypastefromdata; frameset; getcanonicalformatetc; getclassid; getclassinfo; getclientrect; getclientsite; getclipboarddata; getconvertstg; getdata; getdatahere; getdc; getdevicecaps; getextent; getmapmode; getmenu; getmiscstatus; getmoniker; getparent; getscode; getstockobject; getsubmenu; getsyscolor; gettextmetrics; getuserclassid; getusertype; getwindowdc; getwindowlong; getwindowrect; givefeedback; globalalloc; globalfree; globallock; globalunlock; handsoffstorage; inflaterect; initfromdata; initnew; inole_createstorageonhglobal; insertmenu; invalidaterect; isdirty; isuptodate; iswindow; linestyleget; linestyleset; lineto; liset32; load; loadcursor; lockserver; lstrcmpi; lstrcpy; makelong; makepoints; memset; messagebeep; messagebox; messageloop; modifymenu; movetoex; muldiv; newdocument; objectdestroyed; offsetrect; oleflushclipboard; olegetclipboard; oleinitialize; olesetclipboard; oletext; oleuninitialize; oncolorchange; oncommand; ondatachange; ondocumentactivate; ondocumentdatachange; onlinestylechange; onpointchange; onshowwindow; onsizechange; openfile; openfilew; openstream; parsecommandline; paste; pastefromdata; patblt; pointscale; polylinewndproc; postmessage; preshowinit; querycontinuedrag; querygetdata; queryinterface; readclassstg; readfromfile; readfromstorage; readfromstream; rectangle; rectconvertmappings; rectget; rectset; rectstorect; recttorects; registerallclasses; registerclass; registerclipboardformat; registerdragdrop; release; releasedc; releaseinterface; releasestgmedium; rename; renderbitmap; renderformat; rendermedium; rendermetafile; rendermetafilepict; resultfromscode; revokedragdrop; save; savecompleted; saveobject; saveopendialog; screentoclient; seek; selectobject; sendadvise; sendonclose; sendonsave; setbkcolor; setclientsite; setcolorscheme; setconvertstg; setdata; setdefformatetc; setextent; setfocus; setforegroundwindow; sethostnames; setmapmode; setmoniker; setpixel; setpointl; setrect; setsizel; setwindowextex; setwindowlong; setwindoworgex; setwindowpos; setwindowtext; show; showobject; showwindow; sizeget; sizeset; stdmethodimp_; stgcreatedocfile; stgisstoragefile; stgopenstorage; succeeded; text; top; transferobjectcreate; unadvise; undo; unicodetoansi; unregisterclass; update; updateembeddingui; updatemenus; updatetoolbar; updatewindow; widechartomultibyte; window; writeclassstg; writefmtusertypestg; writetofile; writetostorage; writetostream; wsprintf; xformsizeinhimetrictopixels; xformsizeinpixelstohimetric