Click to open or copy the InOLE 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:
-muldiv; 1+widechartomultibyte; _dos_findfirst; alloc; ansitooem; beginpaint; bitblt; bitposition; cache; callwindowproc; cbstruct+; cch+sizeof; codosdatetimetofiletime; cofiletimenow; cogetmalloc; coisole1class; commandparams; convertstringalloc; copyrect; cotaskmemfree; createbindctx; createbitmap; createcompatiblebitmap; createcompatibledc; createdibitmap; createfilemoniker; createfont; createilockbytesonhglobal; createitemmoniker; createpatternbrush; createpen; createsolidbrush; createstreamonhglobal; createwindow; cursorscache; cursorsfree; defwindowproc; deletedc; deletemetafile; deleteobject; destroywindow; drawblankbutton; drawhandle; enablewindow; endpaint; enumcache; exttextout; failed; fenumchangefont; fenumenable; fenumhittest; fenumpaintgizmos; fillrect; findclose; findfirstfile; findresource; framerect; freeresource; gbgizmoadd; gbgizmocheck; gbgizmodataget; gbgizmodataset; gbgizmoenable; gbgizmoexist; gbgizmofocusset; gbgizmointget; gbgizmointset; gbgizmonotifyget; gbgizmonotifyset; gbgizmoremove; gbgizmosendmessage; gbgizmoshow; gbgizmotextget; gbgizmotextset; gbgizmotypeget; gbhwndassociateget; gbhwndassociateset; gbmessagehandler; genericsubproc; getbvalue; getclientrect; getdc; getdevicecaps; getdisplayname; getdlgitem; getdlgitemint; getdlgitemtext; getfiletimes; getgvalue; getkeystate; getmenu; getmiscstatus; getmoniker; getnextdlgtabitem; getparent; getprop; getrunningobjecttable; getrvalue; getscode; getsourcedisplayname; getstockobject; getsubmenu; getsyscolor; getsystemmetrics; gettextmetrics; getuserclassid; getusertype; getwindowinstance; getwindowlong; getwindowtext; gizmobarpaint; gizmobarpallocate; gizmobarpfree; gizmobarwndproc; gizmopallocate; gizmopcheck; gizmopenum; gizmopfind; gizmopfree; gizmopstateset; gizmoscompact; gizmosexpand; globalalloc; globalfree; globallock; globalunlock; hbrushdithercreate; hstringcache; hstringcachefree; idfromhmenu; inflaterect; initialize; inole_allocobjectdescriptor; inole_convertstringtoansi; inole_copystring; inole_createfilemoniker; inole_createitemmoniker; inole_createstorageonhglobal; inole_doconvert; inole_getlinksourcedata; inole_getusertypeofclass; inole_metafilepicticonfree; inole_mkparsedisplayname; inole_notechangetime; inole_olecreatefromfile; inole_olecreatelinktofile; inole_progidfromclsid; inole_readfmtusertypestg; inole_registerasrunning; inole_revokeasrunning; inole_seticonincache; inole_stgcreatedocfile; inole_stgisstoragefile; inole_stgopenstorage; inole_stringfromclsid; inole_stringfromguid2; inole_switchdisplayaspect; inole_writefmtusertypestg; intersectrect; invalidaterect; invertrect; isbadwriteptr; istringfromid; iswindow; iswindowenabled; left+; libmain; libmain32; lineto; loadbitmap; loadcursor; loadresource; loadstring; localalloc; localfree; lockresource; lstrcpy; lstrcpyn; lstrlen; makeintresource; map_loghim_to_pix; map_pix_to_loghim; maskcreate; max; menuselectparams; min; mkparsedisplayname; movetoex; muldiv; multibytetowidechar; next; notechangetime; olecreatefromfile; olecreatelinktofile; olesavetostream; patb; patblt; pgizmofromhwndid; pointfromlparam; positionbit; progidfromclsid; ptinrect; queryinterface; readclassstg; readfmtusertypestg; rectangle; register; registerclass; regqueryvalue; release; releasecapture; releasedc; removeprop; restoredc; resultfromscode; revoke; rgb; savedc; selectobject; sendcommand; sendmenuselect; sendmessage; setadvise; setbkcolor; setbkmode; setcapture; setconvertstg; setdata; setdlgitemint; setdlgitemtext; setfocus; setformatetc; setprop; setrect; settextcolor; setwindowlong; setwindowpos; setwindowtext; showwindow; sizeofresource; statmessagemapsort; statstripclean; statstripmenuselect; statstripmessagedisplay; statstripmessagemap; statstrippaint; statstripwndproc; stdapi_; stgcreatedocfile; stgcreatedocfileonilockbytes; stgisstoragefile; stgopenstorage; stringfromclsid; succeeded; text; textout; toolbuttonfree; toolbuttoninit; top+; uicursorload; uidrawhandles; uidrawshading; uishowobject; uitoolbuttondraw; uitoolconfigurefordisplay; uncache; unlockdata; unlockresource; unreferenced_parameter; updatewindow; virtualprotect; widechartomultibyte; writeclassstg; writeclassstm; writefmtusertypestg; wsprintf; xformheightinhimetrictopixels; xformheightinpixelstohimetric; xformrectinhimetrictopixels; xformrectinpixelstohimetric; xformsizeinhimetrictopixels; xformsizeinpixelstohimetric; xformwidthinhimetrictopixels; xformwidthinpixelstohimetric