Click to open or copy the Cosmo1.0 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; _lread; _lwrite; aboutproc; addatom; adjustwindowrect; beginpaint; closeclipboard; closemetafile; copyright; cosmowndproc; createcompatiblebitmap; createcompatibledc; createmetafile; createpen; createsolidbrush; createwindow; createwindowex; defwindowproc; deleteatom; deletedc; deletemetafile; deleteobject; destroywindow; dialogbox; dispatchmessage; docclose; docexecute; docgetobject; docrelease; docsave; docsetcolorscheme; docsetdocdimensions; docsethostnames; documentclean; dptolp; emptyclipboard; enablemenuitem; enddialog; endpaint; fapplicationexit; fapplicationinit; fclassregister; fcleanverify; fcosfileread; fcosfilewrite; fdirtyset; feditcopy; feditcut; feditpaste; ffileexit; ffileinit; ffilenew; ffileopen; ffilesave; ffilesaveas; fkeycreate; folecopylink; folecopynative; foleexit; foleinstanceinit; folereleasewait; foleserverinstall; folevtblinitdocument; folevtblinitobject; folevtblinitserver; freeprocinstance; fregdbinstall; fsaveopendialog; getatomname; getclientrect; getclipboarddata; getdc; getmapmode; getmenu; getmessage; getmodulefilename; getmodulehandle; getopenfilename; getparent; getstockobject; getsyscolor; getwindowlong; getwindowrect; getwindowword; globalalloc; globalfree; globallock; globalunlock; hgetbitmap; hgetmetafilepict; hgetpolyline; hlinkconstruct; hlistparse; hloadappstrings; hpolylinewindowcreate; inflaterect; invalidaterect; isclipboardformatavailable; iswindowvisible; left; lineto; loadaccelerators; loadcursor; loadicon; loadstring; localalloc; localfree; localrealloc; lpolylineusermessage; lptodp; lstrcat; lstrcmp; lstrcpy; lstrlen; makeintresource; makelong; makeprocinstance; menuembeddingset; messagebeep; messagebox; modifymenu; movetoex; objdoverb; objenumformats; objgetdata; objqueryprotocol; objrelease; objsetbounds; objsetcolorscheme; objsetdata; objsettargetdevice; objshow; oleclientnotify; oleregisterserver; oleregisterserverdoc; olerenameserverdoc; olerevokeserver; olerevokeserverdoc; olesavedserverdoc; olevtblfreedocument; olevtblfreeobject; olevtblfreeserver; openclipboard; openfile; pdocrevokeandcreate; pdocumentallocate; peekmessage; pobjectallocate; polylinedraw; polylinewndproc; postmessage; postquitmessage; pserverallocate; pszwhitespacescan; rectangle; rectconverttodevice; rectconverttohimetric; rectstorect; recttorects; regclosekey; regcreatekey; regdeletekey; registerclass; registerclipboardformat; regqueryvalue; regsetvalue; releasedc; right; selectobject; sendmessage; servercreate; servercreatefromtemplate; serveredit; serverexecute; serverexit; serveropen; serverrelease; setclipboarddata; setfocus; setmapmode; setpixel; setwindowextex; setwindowlong; setwindoworgex; setwindowpos; setwindowtext; setwindowword; showwindow; translateaccelerator; translatemessage; updatewindow; waitmessage; warning; window; windowtitleset; wsprintf