Click to open or copy the files for the DlgEdit sample.
The DlgEdit tool allows you to design and test a dialog box on a display screen instead of defining dialog box statements in a resource script. You can use DlgEdit to create new dialog boxes and to add or remove controls from an existing dialog box. You can then compile this resource file using the resource compiler. The binary output from the resource compiler can then be linked into your application's executable file.
DlgEdit demonstrates the following techniques:
This sample uses the following keywords:
_lread; _lwrite; _setjmp; _wcsnicmp; aboutdlgproc; abs; addcontrol; addcustomlink; additemtoinclb; addlabel; addnewdialog; addtopointsizecombo; adjustdefaultsizes; adjustwindowrect; adjustwindowrectex; aligncontrols; alloccustlink; allocdialogresource; allocreslink; applynewid; applynewname; applynewtext; arrangepushbuttons; arrangesettingsdialog; arrangesettingsdlgproc; arrangesize; arrangespacing; atfirsttabcolumn; atoi; atorabove; atorbelow; awtoi; axtoi; begindeferwindowpos; beginpaint; bitblt; builddefsavename; buildfilterstring; calccursoroffset; calcselectedrect; callcustominfoa; callcustomsizetotext; callcustomstyle; callnexthookex; callwindowproc; cancelselection; canceltracking; centerwindow; charnext; checkboxstylesdlgproc; checkdlgbutton; checkmenuitem; checkstyleboxes; childwndproc; clienttoscreen; clienttoscreenrect; closeclipboard; closehandle; comboboxstylesdlgproc; comma; copylabels; copytoclipboard; createcompatiblebitmap; createcompatibledc; createcontrol; createdc; createdialog; createdialogindirect; createdibitmap; createdlgfont; createfile; createfontindirect; createpen; createtestdialog; createwindow; createwindowex; ctrlbuttondown; ctrlbuttonup; ctrlhittest; ctrlmousemove; ctrlwndproc; customstylesdlgproc; customwndproc; deferwindowpos; defined; defwindowproc; deletecontrol; deletecontrol2; deletedc; deletedialog; deletedialogresource; deletefile; deletelabel; deleteobject; destroytestdialog; destroywindow; dialogbox; dialogctrlwndproc; dialogmenu; dialogstylesdlgproc; dialogterminate; differentdirs; dispatchmessage; dlgbox; dlginclipboard; dowesave; dragbegin; dragbegin2; dragcancel; dragend; dragnewbegin; dragwndproc; drawfocusrect; drawhandles; drawmenubar; drawownerdrawbutton; drawtext; drawtrackrect; dropcontrol; duplicate; dutowinpoint; dutowinrect; dwordalign; dwordpad; editstylesdlgproc; emptyclipboard; enablecomboboxstyles; enabledialogstyles; enableeditstyles; enablelistboxstyles; enablemenuitem; enablewindow; enddeferwindowpos; enddialog; endpaint; enteringdialog; enumfonts; equalrect; exttextout; filecat; fileinpath; filleditsfromlb; fillfontnamecombo; fillincludelb; filllanguagecombo; fillpointsizecombo; fillsublanguagecombo; finddefine; finddialog; findid; findidinres; findlabel; findresource; fitrecttobounds; fitrecttoscreen; fontnameenumfunc; formtempfilename; freectype; freecustlink; freeinclude; freelabels; freelibrary; freemenubitmaps; freeprocinstance; freeres; freereslink; freereslist; freeresource; genericstylesdlgproc; getacp; getbvalue; getcapture; getchar; getchildproc; getchildrect; getclasslong; getclassname; getclientrect; getclipboarddata; getcontrolkeyword; getcustomstylesfield; getdc; getdesktopwindow; getdevicecaps; getdialogbaseunits; getdlgitem; getdlgitemint; getdlgitemtext; getfileattributes; getfilesize; getfocus; getfontcharset; getfontcharsetenumfunc; getfullpathname; getgvalue; gethelpcontext; geticlass; getkeystate; getlabel; getmenu; getmessage; getmessagepos; getmodulefilename; getnextinc; getnextwindow; getobject; getopenfilename; getoverhang; getparent; getprivateprofileint; getprivateprofilestring; getprocaddress; getprop; getrvalue; getsavefilename; getstockobject; getsubmenu; getsyscolor; getsystemmenu; getsystemmetrics; getsystemvalues; gettempfilename; gettextextentpoint; gettextface; gettextmetrics; gettopwindow; getupdaterect; getvalue; getwindow; getwindowdc; getwindowlong; getwindowrect; getwindowtext; getword; globalalloc; globalfree; globallock; globalunlock; gridizerect; handlehittest; hasblanks; haspath; hidetrackrect; ids; idtolabel; idusedbyctrl; inflaterect; initapplication; initinstance; initmenu; inittracking; intersectrect; invalidatedlghandles; invalidaterect; ischild; isclipboardformatavailable; iscsym; isdbcsleadbyte; isdialogmessage; isdlgbuttonchecked; isiconic; islistchanged; isord; issymbol; isuniqueid; isvalidresfile; isvalue; iswdigit; iswindowvisible; iswxdigit; iszoomed; itoa; itoaw; itoax; kdexpandcopy; killtimer; kkexpandcopy; labeltoid; lineto; listboxstylesdlgproc; loadaccelerators; loadalterbitmap; loadbitmap; loadcursor; loadicon; loadincludefile; loadlibrary; loadmenubitmaps; loadresfile; loadresource; loadstring; loadsyscolorbitmaps; localalloc; localfree; localrealloc; lockresource; longjmp; lstrcat; lstrcmp; lstrcmpi; lstrcpy; lstrlen; lstrlena; mainwndproc; makecopyfromres; makeintresource; makelangid; makelong; makeprocinstance; mapdlgclientpoint; mapwindowpoint; max; memcmp; memcpy; memset; message; messagebeep; messagebox; min; modifymenu; mousetodragrect; mousetodu; movecontrol; movefile; movetoex; movewindow; msgfilterhookfunc; muldiv; multibytetowidechar; myalloc; mycheckmenuitem; myenablemenuitem; myenablemenuitembypos; myframerect; myfree; mygetchardimensions; myitoa; mymapwindowrect; myrealloc; nameordcmp; nameordcpy; nameorddup; nameordlen; newcustdlgproc; newcustinit; newcustok; newline; nextid; offsetrect; open; openclipboard; opencmdlinefile; opencustomdialog; opendllfile; openincludefile; openresfile; orderdlgcleartabs; orderdlgdrawitem; orderdlgenablecontrols; orderdlgfilllist; orderdlginit; orderdlginserthittest; orderdlglbwndproc; orderdlgmakegroup; orderdlgmarkgroupends; orderdlgproc; orderdlgreorder; orderdlgselchange; orderdlgsettabs; orderdlgtoggletab; ordergroupdialog; orderwindows; ordid; orsymbol; outlineselectbegin; outlineselectcancel; outlineselectdraw; outlineselectend; outlineselecthide; outlineselectsetrect; paintunderdrag; parsecontroldata; parsedialogboxheader; pastefromclipboard; patblt; pcfromhwnd; penwinregister; pixelstopointsize; point2long; pointsizeenumfunc; pointsizetopixels; positioncontrol; positioncontrol2; postmessage; postquitmessage; predragtimeout; primarylangid; ptinrect; pushbuttonstylesdlgproc; querycheckedstyles; querytextextent; quote; radiobuttonstylesdlgproc; readchar; readcustomprofile; readenv; readwindowpos; rectangle; redrawselection; registerclass; registerclipboardformat; registerwindowmessage; releasecapture; releasedc; remcustdlgproc; remcustinit; remcustok; removecustomlink; removemenu; removeprop; repositiondialog; reslinktodialog; resourcename; resourcepart2; resourcesize; resourcetype; restodialog; restoredialog; rgb; rgbinvertrgb; roundrect; rwtooffset; safedwordalign; safenameordlen; safeparseresheader; save; savedlgclientrect; screentoclient; screentoclientrect; searchpath; selcustdialog; selcustdlgproc; selcustinit; selcustok; selcustselect; selectcontrol; selectcontrol2; selectdefitem; selectdialogdialog; selectdialogdlgproc; selectdialogfilllanglist; selectdialoginit; selectdialogok; selectnext; selectobject; selectprevious; senddlgitemmessage; sendmessage; setactivewindow; setanchortofirstsel; setbitmapdimensionex; setbkcolor; setbkmode; setcapture; setchildproc; setclasslong; setclipboarddata; setcursor; setcursorpos; setcustomstylesfield; setdlgitemint; setdlgitemtext; setfocus; setincbuttonenable; setparent; setpcintohwnd; setprop; setrect; setrop2; settab; settextcolor; settimer; setwindowlong; setwindowpos; setwindowshook; setwindowtext; showfilestatus; showhelp; showtrackrect; showwindow; sizectrltotext; sizedragtocontrol; sizeribbons; sizetotext; skipcontroldata; skipdialogboxheader; skipresheader; skipsz; space; statusapplychanges; statusclear; statusclearid; statusclearname; statusdlgproc; statusfillsymbollist; statusinit; statusprocesscommand; statussetcoords; statussetenable; statussetid; statussetname; statussetnameid; statussettext; statussettextlabels; statusshowfields; statusupdate; strtok; strtonameord; stylesdialog; styleshelp; sublangid; synchdialogresource; tab; testdlgproc; testinitdlg; text; toolboxcreate; toolboxdrawbitmap; toolboxontop; toolboxselecttool; toolboxshow; toolboxwndproc; toolbtnwndproc; translateaccelerator; translatecharsetinfo; translatemessage; typefromclassstyle; unhookwindowshookex; unlockresource; unselectcontrol; unsetchildproc; unsetpcintohwnd; updatewindow; va_end; va_start; validatenewid; validatenewname; valtoi; viewincadd; viewinccancel; viewincchange; viewincdelete; viewincinit; viewinclude; viewincludedlgproc; wcsncmp; widechartomultibyte; winhelp; winmain; wintodupoint; wintodurect; writeaddedinc; writechangedinc; writeclass; writeclassstyle; writecontrol; writecoords; writecustomprofile; writecustomstyle; writedeletedinc; writedialogheader; writedialogheaderlanguage; writedlg; writedlgchar; writedlgflush; writedlginclude; writedlgincluderes; writedwordpad; writeenv; writeescapedstring; writehexdword; writehexword; writeiddlg; writeidinc; writeinc; writeincchar; writeincflush; writenameord; writeord; writeprivateprofilestring; writequotedstring; writeres; writeresheader; writestring; writestyles; writesymbol; writesz; writetext; writethefile; writevalue; writewindowpos; wsprintf; wvsprintf