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; _newenum; _tcsstr; activate; activedocument; addconnection; addpoint; addref; adjustwindowrect; autoapp; autofigure; autofigures; beginpaint; cautoapp; cautobase; cautofigure; cautofigures; cclassfactory; cclient; ccosmoclient; ccosmodoc; ccosmoframe; cdocument; cenumfigures; cframe; check; checklineselection; checkmenuitem; choosecolor; cimpidispatch; cimpiextconn; clear; clip; clone; closedocument; closemetafile; cocreateinstance; cogetclassobject; colorget; colorset; commandparams; copy; coregisterclassobject; corevokeclassobject; cpolyline; cpolylineadvisesink; createcclient; createcdocument; createcompatiblebitmap; createcompatibledc; createinstance; createlinemenu; createmetafile; createpen; createsolidbrush; createstream; createtoolbar; createwindow; createwindowex; cut; cwindow; dataget; datagetmem; dataset; datasetmem; declare_interface_; define_guid; defwindowproc; deletedc; deleteinterfaceimp; deletemetafile; deleteobject; destroywindow; dispgetidsofnames; dptolp; draw; enable; enablemenuitem; endpaint; errormessage; failed; fdirtyget; fdirtyset; filenameget; fmessagehook; fquerypaste; fquerypastefromdata; frame; get_activefigure; get_application; get_backcolor; get_caption; get_count; get_figures; get_fullname; get_height; get_left; get_linecolor; get_linestyle; get_name; get_numberofpoints; get_parent; get_path; get_saved; get_statusbar; get_top; get_visible; get_width; getclassinfo; getclientrect; getdata; getdc; getdevicecaps; getfiletitle; getidsofnames; getmapmode; getmenu; getmodulefilename; getparent; getscode; getstockobject; getsubmenu; getsyscolor; gettextmetrics; gettypeinfo; gettypeinfocount; gettypeinfoofguid; getwindowlong; getwindowrect; getwindowtext; globalalloc; globalfree; globallock; globalunlock; import; inflaterect; instance; invalidaterect; invoke; iswindow; iswindowvisible; item; linestyleget; linestyleset; lineto; liset32; load; loadcursor; loadregtypelib; loadtypelib; lockserver; lstrcmpi; makelong; makelparam; makepoints; memset; messagebeep; messagebox; messageget; messageloop; messageset; modifymenu; movesize; movetoex; muldiv; multibytetowidechar; newdocument; newfigure; next; objectdestroyed; offsetrect; oleflushclipboard; olegetclipboard; oleinitialize; olesetclipboard; oletext; oleuninitialize; oncolorchange; oncommand; ondatachange; ondocumentactivate; ondocumentdatachange; onlinestylechange; onpointchange; onsizechange; open; openfile; openfilew; openstream; parsecommandline; paste; pastefromdata; patblt; pointscale; polylinewndproc; postmessage; preshowinit; primarylangid; put_backcolor; put_height; put_left; put_linecolor; put_linestyle; put_statusbar; put_top; put_visible; put_width; queryclosealldocuments; querygetdata; queryinterface; quit; readfromfile; readfromstorage; rectangle; rectconvertmappings; rectget; rectset; rectstorect; recttorects; registeractiveobject; registerallclasses; registerclass; release; releaseconnection; releasedc; releaseinterface; releasestgmedium; removepoint; rename; renderbitmap; renderformat; rendermetafile; rendermetafilepict; reset; resultfromscode; reverttosaved; revokeactiveobject; save; saveas; saveopendialog; screentoclient; seek; selectobject; sendmessage; setbkcolor; setdata; setdefformatetc; setmapmode; setpixel; setpoint; setrect; setwindowextex; setwindowlong; setwindoworgex; setwindowpos; showwindow; sizeget; sizeset; skip; statusline; stdmethod; stdmethod_; stdmethodimp_; stgcreatedocfile; stgisstoragefile; stgopenstorage; succeeded; sysallocstring; sysallocstringlen; sysfreestring; text; undo; unicodetoansi; unregisterclass; updatemenus; updatetoolbar; updatewindow; vtableinterface; wcsstr; widechartomultibyte; window; writeclassstg; writefmtusertypestg; writetofile; writetostorage; wsprintf