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; alloc; appendmenu; beginpaint; bringwindowtotop; caninplaceactivate; cchpathmax; cclient; ccosmoclient; ccosmodoc; ccosmoframe; cdocument; cdropsource; cdroptarget; cfigure; cfigureclassfactory; cframe; chatchwin; check; checklineselection; checkmenuitem; childset; choosecolor; cimpidataobject; cimpioleinplaceactiveobject; cimpioleinplaceobject; cimpioleobject; cimpipersistfile; cimpipersiststorage; clear; clip; closedocument; closemetafile; cocreateinstance; codisconnectobject; cogetclassobject; cogetmalloc; colockobjectexternal; colorget; colorset; commandparams; contextsensitivehelp; coregisterclassobject; corevokeclassobject; cotaskmemalloc; cotaskmemfree; cpolyline; cpolylineadvisesink; createbindctx; createcclient; createcdocument; createcompatiblebitmap; createcompatibledc; createdataadviseholder; createfilemoniker; createinstance; createlinemenu; createmenu; createmetafile; createoleadviseholder; createpen; createsolidbrush; createstream; createtoolbar; createwindowex; cstringtable; ctoolbar; cwindow; dadvise; dataget; datagetmem; dataset; datasetmem; deactivateandundo; defwindowproc; deletedc; deleteinterfaceimp; deletemenu; deletemetafile; deleteobject; destroyelement; destroymenu; discardundostate; dispatchmessage; dodragdrop; doverb; dptolp; dragenter; dragleave; dragover; draw; drawmenubar; drop; dropselecttargetwindow; dunadvise; enable; enablemenuitem; enablemodeless; endpaint; enumadvise; enumdadvise; enumformatetc; enumverbs; errormessage; failed; fdirtyget; fdirtyset; filenameget; fisdirty; fisembedded; fmessagehook; fquerypaste; fquerypastefromdata; frameset; getborder; getcanonicalformatetc; getclassid; getclassinfo; getclientrect; getclientsite; getclipboarddata; getconvertstg; getcurfile; getdata; getdatahere; getdc; getdevicecaps; getdisplayname; getextent; getmapmode; getmenu; getmenuitemcount; getmessage; getmiscstatus; getmoniker; getparent; getscode; getstockobject; getsubmenu; getsyscolor; gettextmetrics; getuserclassid; getusertype; getwindow; getwindowcontext; getwindowdc; getwindowlong; getwindowrect; givefeedback; globalalloc; globalfree; globallock; globalunlock; handsoffstorage; hatchwindowregister; hwndassociateset; inflaterect; initfromdata; initnew; inole_createstorageonhglobal; inole_getlinksourcedata; inole_notechangetime; inole_registerasrunning; inole_revokeasrunning; inplaceactivate; inplacedeactivate; inplacemenucreate; inplacemenudestroy; inplacetoolscreate; inplacetoolsdestroy; inplacetoolsrenegotiate; insertmenu; insertmenus; invalidaterect; isdirty; isrunning; isuptodate; iswindow; linestyleget; linestyleset; lineto; liset32; load; loadcursor; lockserver; lstrcmpi; lstrcpy; makelong; makepoints; memset; menuselect; messagebeep; messagebox; messageget; messageloop; modifymenu; movetoex; muldiv; multibytetowidechar; newdocument; objectdestroyed; offsetrect; olecreatemenudescriptor; oledestroymenudescriptor; oleflushclipboard; olegetclipboard; oleinitialize; olesetclipboard; oletext; oletranslateaccelerator; oleuninitialize; oncolorchange; oncommand; ondatachange; ondocumentactivate; ondocumentdatachange; ondocwindowactivate; onframewindowactivate; oninplaceactivate; oninplacedeactivate; onlinestylechange; onpointchange; onshowwindow; onsizechange; onuiactivate; onuideactivate; openfile; openfilew; openinplaceobject; openintowindow; openstream; parsecommandline; paste; pastefromdata; patblt; pointscale; polylinewndproc; postmessage; preshowinit; querycontinuedrag; querygetdata; queryinterface; reactivateandundo; readclassstg; readfromfile; readfromstorage; readfromstream; rectangle; rectconvertmappings; rectget; rectset; rectsset; rectstorect; recttorects; registerallclasses; registerclass; registerclipboardformat; registerdragdrop; release; releasedc; releaseinterface; releasestgmedium; removemenu; removemenus; rename; renderbitmap; renderformat; rendermedium; rendermetafile; rendermetafilepict; requestborderspace; resizeborder; resultfromscode; revokedragdrop; save; savecompleted; saveobject; saveopendialog; screentoclient; seek; selectobject; sendadvise; sendonclose; sendonrename; sendonsave; setactiveobject; setbkcolor; setborderspace; setclientsite; setcolorscheme; setconvertstg; setdata; setdefformatetc; setextent; setfocus; setforegroundwindow; sethostnames; setmapmode; setmenu; setmoniker; setobjectrects; setparent; setpixel; setpointl; setrect; setrectempty; setsizel; setstatustext; setwindowextex; setwindowlong; setwindoworgex; setwindowpos; setwindowtext; show; showobject; showwindow; sizeget; sizeset; stdmethodimp_; stgcreatedocfile; stgisstoragefile; stgopenstorage; succeeded; text; top; transferobjectcreate; translateaccelerator; translatemessage; uiactivate; uideactivate; unadvise; undo; unicodetoansi; unregisterclass; update; updateembeddingui; updatemenus; updatetoolbar; updatewindow; widechartomultibyte; window; writeclassstg; writefmtusertypestg; writetofile; writetostorage; writetostream; wsprintf; xformsizeinhimetrictopixels; xformsizeinpixelstohimetric