Click to open or copy the files for the Reitp sample.
The REitp sample demonstrates the main features of a RichEdit control. It is also a good replacement for the NotePad applet.
This sample uses the following keywords:
_assert; _based; _fstrncpy; _lclose; _lcreat; _llseek; _lopen; _lread; _lwrite; _segname; _tcschr; _tcscpy; a2w; abortdoc; addref; appendmenu; arerectsequal; assert; assertsz; beginpaint; bottomless; browse; cache; callwindowproc; checkinmenu; checkmenuitem; checkoutmenu; checkrevert; checksave; childwindowfrompoint; choosefont; choptext; cleardebugscreen; clienttoscreen; closeclipboard; closemetafile; closeredoc; cogetmalloc; combobox_getitemdata; commdlgextendederror; copymemory; copymetafile; createbitmap; createcompatiblebitmap; createcompatibledc; createdialog; createhatchwindow; createic; createicon; createmetafile; createpopupmenu; createsolidbrush; createstorage; createtoolbarex; createwindow; data_seg; debugbreak; debugbreak2; debugstr; declare_reguid; defined; defwindowproc; deletedc; deletemetafile; deleteobject; destroymenu; destroywindow; dialogboxparam; dispatchmessage; doesfileexist; doopen; dotagsdialog; doverb; dragacceptfiles; dragqueryfile; drawmenubar; eates; emptyclipboard; enablemenuitem; enablewindow; enddialog; enddoc; endpage; endpaint; enumcache; enumfontfamilies; enummetafile; enummetafileextracticon; enummetafileextracticonsource; enummetafileextractlabel; enummetafileicondraw; errorwithfile; escape; exttextout; failed; fb_oncommand; fb_ondrawitem; fb_onmeasureitem; fb_onnccreate; fb_onpaint; fenablepaste; ffillsizes; ffromtag; ficonfilefromclass; file; fillcolors; fillerup; fillnames; fillrect; findreplace; findtext; finitformatbarclass; finsertsize; fnassert; fppinit; framerect; free; freelocalstring; frestorewindowpos; fserverfromclass; fverbget; get_wm_command_cmd; get_wm_command_hwnd; get_wm_command_id; get_wm_command_mps; getassociatedexecutable; getasynckeystate; getbitmapbits; getclassfile; getclassinfo; getclientrect; getclientsite; getclipboarddata; getcursorpos; getdc; getdesktopwindow; getdevicecaps; getdisplayname; getdlgitem; getdragdropeffect; getfiletitle; getfocus; getformatbarfield; gethatchrect; gethatchwidth; geticonofclass; geticonoffile; getkeystate; getlasterror; getmenu; getmenustate; getmessage; getobject; getopenfilename; getparent; getsavefilename; getscode; getstockobject; getsyscolor; getsystemmetrics; gettext; gettickcount; getwindowid; getwindowlong; getwindowplacement; getwindowrect; getwindowtext; getword; globalalloc; globalallocptr; globalfree; globalfreeptr; globallock; globalreallocptr; globalunlock; gtdlgproc; handle_msg; handlecommand; handlecreate; hiconandsourcefromclass; hiconfromclass; hinstfromhwnd; hourglassoff; hourglasson; hrgetclassfilea; hrprogidfromclsida; hwndcreateformatbar; ignoreleftclick; imoniker_getdisplaynamea; importdataobject; indentfirst; inflaterect; init_interfaceimpl; initializemallocspy; inplacedeactivate; insertobject; invalidaterect; ipersistfile_loada; iscloseformatetc; isdialogmessage; isequalclsid; isequalformatetc; isequaliid; isiconic; isspace; itpcall_addref; itpcall_contextsensitivehelp; itpcall_deleteobject; itpcall_getclipboarddata; itpcall_getcontextmenu; itpcall_getdragdropeffect; itpcall_getinplacecontext; itpcall_getnewstorage; itpcall_new; itpcall_queryacceptdata; itpcall_queryinsertobject; itpcall_queryinterface; itpcall_release; itpcall_showcontainerui; itpoleinplaceframe_addref; itpoleinplaceframe_contextsensitivehelp; itpoleinplaceframe_enablemodeless; itpoleinplaceframe_getborder; itpoleinplaceframe_getwindow; itpoleinplaceframe_insertmenus; itpoleinplaceframe_new; itpoleinplaceframe_queryinterface; itpoleinplaceframe_release; itpoleinplaceframe_removemenus; itpoleinplaceframe_requestborderspace; itpoleinplaceframe_setactiveobject; itpoleinplaceframe_setborderspace; itpoleinplaceframe_setmenu; itpoleinplaceframe_setstatustext; itpoleinplaceframe_translateaccelerator; lfbcomboboxwndproc; lfbeditwndproc; lfbtoolbarwndproc; lformatbarwndproc; lineto; load; loadaccelerators; loadcursor; loadicon; loadlibrary; loadmenu; loadstring; lstrcmp; lstrcmpi; lstrcpy; lstrcpyn; lstrlen; make_str_local_copya2w; make_str_local_copyw2a; makelong; map_loghim_to_pix; map_pix_to_loghim; mapwindowpoints; max; memset; message; messagebeep; messagebox; messageboxa; messageboxw; mfenumcallback; min; movememory; movewindow; muldiv; multibytetowidechar; myread; mywrite; nenumfontnameproc; nenumfontsizeproc; newredoc; next; nyi; offsetrect; offsetviewportorg; offsetwindoworg; oledbg_begin; oledbg_begin1; oledbg_begin2; oledbg_begin3; oledbg_begin4; oledbgaddrefmethod; oledbgassert; oledbgassertsz; oledbgdata_main; oledbggetdbglevel; oledbgindent; oledbgout; oledbgout1; oledbgout2; oledbgout3; oledbgout4; oledbgouthresult; oledbgoutnoprefix; oledbgoutnoprefix1; oledbgoutnoprefix2; oledbgoutnoprefix3; oledbgoutnoprefix4; oledbgoutrect; oledbgoutrect1; oledbgoutrect2; oledbgoutrect3; oledbgoutrect4; oledbgoutrefcnt; oledbgoutrefcnt1; oledbgoutrefcnt2; oledbgoutrefcnt3; oledbgoutrefcnt4; oledbgoutscode; oledbgprint; oledbgprintalways; oledbgprintrect; oledbgprintrectalways; oledbgprintrefcnt; oledbgprintrefcntalways; oledbgprintscodealways; oledbgqueryinterfacemethod; oledbgreleasemethod; oledbgsetdbglevel; oledbgverify; oledbgverifysz; oleduplicatedata; olegeticonofclass; olegeticonoffile; oleinitialize; olemetafilepictfromiconandlabel; olesetmenudescriptor; olestdcheckvtbl; olestdcommitstorage; olestdcompareformatetc; olestdcopyformatetc; olestdcopymetafilepict; olestdcopystatdata; olestdcopystring; olestdcopytargetdevice; olestdcreatechildstorage; olestdcreatedc; olestdcreateic; olestdcreaterootstorage; olestdcreatestandardpalette; olestdcreatestorageonhglobal; olestdcreatetargetdevice; olestdcreatetempfilemoniker; olestdcreatetempstorage; olestddeletetargetdevice; olestddestroyallelements; olestddoconvert; olestddotreatasclass; olestdenumfmtetc_create; olestdenumstatdata_create; olestdfillobjectdescriptorfromdata; olestdfree; olestdfreestring; olestdgetauxusertype; olestdgetdata; olestdgetdefaultfileformatofclass; olestdgetdropeffect; olestdgetfirstmoniker; olestdgetitemtoken; olestdgetlenfileprefixofmoniker; olestdgetlinksourcedata; olestdgetmetafilepictfromoleobject; olestdgetmiscstatusofclass; olestdgetobjectdescriptordata; olestdgetobjectdescriptordatafromoleobject; olestdgetoleobjectdata; olestdgetpriorityclipboardformat; olestdgetsize; olestdgettreatasfmtusertype; olestdgetusertypeofclass; olestdiconlabeltextout; olestdinitialize; olestdinitvtbl; olestdisduplicateformat; olestdisolelink; olestdmalloc; olestdmarkpasteentrylist; olestdmkparsedisplayname; olestdnotefilechangetime; olestdnoteobjectchangetime; olestdnullmethod; olestdopenchildstorage; olestdopenorcreaterootstorage; olestdopenrootstorage; olestdqueryformatmedium; olestdqueryinterface; olestdquerylinksourcedata; olestdqueryobjectdescriptordata; olestdqueryoleobjectdata; olestdrealloc; olestdregisterasrunning; olestdrelease; olestdrevokeasrunning; olestdseticonincache; olestdsetupadvises; olestdswitchdisplayaspect; olestduninitialize; olestdverifyrelease; oleuiaddverbmenu; oleuicanunloadnow; oleuidrawhandles; oleuidrawshading; oleuiinsertobject; oleuilocklibrary; oleuimetafilepictextracticon; oleuimetafilepictextracticonsource; oleuimetafilepictextractlabel; oleuimetafilepictfromiconandlabel; oleuimetafilepicticondraw; oleuimetafilepicticonfree; oleuishowobject; oleuninitialize; onframewindowactivate; openclipboard; openfileerror; openredoc; outputdebugstring; paintalignment; paintcolor; painteffects; paintname; paintsize; parsearguments; parsecmdline; pfbsgetwindowptr; pipframefrompunk; pitpcallfrompunk; playmetafile; playmetafilerecord; pointertonthfield; postmessage; postquitmessage; ppchangepage; ppdlgproc; ppinitdialogsize; pppaint; printdlg; printredoc; processfindreplace; protectselection; queryacceptdata; querycheck; queryinsertobject; queryinterface; readredoc; rectangle; regclosekey; regcreatekeyex; registerclass; registerclipboardformat; registerhatchwindowclass; registerwindowmessage; regopenkeyex; regqueryvalueex; regsetvalueex; release; releasedc; replacecharwithnull; replacetext; resetorigdc; resizeborder; resizeredoc; restoredc; resultfromscode; revertredoc; rgb; savedc; saveredoc; saveredocas; savewindowpos; scaleviewportext; scalewindowext; screentoclient; selectcharformat; selectobject; sendmessage; setadvise; setalignment; setbkcolor; setbkmode; setcharformat; setclipboarddata; setcursor; setcursorpos; setdata; setdctoanisotropic; setdctodrawinhimetricrect; setdefaultformatetc; setdibits; setfocus; setformatetc; sethatchrect; sethatchwindowsize; sethostnames; setlimit; setmapmode; setmenu; setoffset; setparaformat; setupmenu; setupwordwrapmenu; setviewportext; setviewportextex; setviewportorg; setviewportorgex; setwindowext; setwindowextex; setwindowfont; setwindowlong; setwindoworg; setwindoworgex; setwindowplacement; setwindowpos; setwindowptr; setwindowtext; setwordwrap; showmargins; showwindow; sideassert; startdoc; startpage; stdapi_; stdmethodimp_; stgcreatedocfile; stretchblt; stringfromclsid2a; stringfromguid2a; stringfromiid2a; succeeded; switch; text; textout; togglecheck; toupper; tracecharformat; traceerror; tracestring; tracetag; tracetagstring; translateaccelerator; translatemessage; uclassfromdescription; udescriptionfromclass; uncache; uninitializemallocspy; updatebrush; updatebrushes; updateformatbar; updatewindow; utdupstringa2w; utdupstringw2a; w2a; wasansi; widechartomultibyte; winmain; winoleapi_; wndproc; wsprintf; wsprintfa; wsprintfw; xformheightinhimetrictopixels; xformheightinpixelstohimetric; xformrectinhimetrictopixels; xformrectinpixelstohimetric; xformsizeinhimetrictopixels; xformsizeinpixelstohimetric; xformwidthinhimetrictopixels; xformwidthinpixelstohimetric