CdTest: Common Dialogs Sample

Click to open or copy the files for the CdTest sample.

The CdTest sample demonstrates how to use the common dialog boxes provided in the Win32® API. In addition to displaying each default dialog box, the sample also allows you to modify the parameters passed to the functions to create variations of the common dialog boxes.

Building SDK Samples

This sample uses the following keywords:

aboutproc; callnexthookex; checkmenuitem; checkradiobutton; choosecolor; choosefont; colorshookproc; colorsproc; colorthreadproc1; colorthreadproc2; commdlgextendederror; createthread; createwindow; defwindowproc; devmodeproc; devnamesproc; dialogbox; dialogboxparam; dispatchmessage; dochoosecolorstuff; dochoosefontstuff; docolorsdialog; dofinddialog; dofindrepstuff; dofontdialog; doopendialog; doopensavestuff; doprintdialog; doprintdlgstuff; doreplacedialog; dosavedialog; dotitledialog; enablecolorbuttons; enablefontbuttons; enableprintcontrols; enablewindow; enddialog; enumfontfamilies; enumfontsproc; fillcolordlg; filldevmodedlg; filldevnamesdlg; fillfinddlg; fillfontdlg; fillfontsbox; filllogfontdlg; fillopendlg; fillprintdlg; findproc; findreplacehookproc; findresource; findtext; fonthookproc; fontproc; fontthreadproc1; fontthreadproc2; freeresource; getcolordlg; getcolorsreshandle; getcorrectresourcehandle; getcurrentthreadid; getdc; getdevmodedlg; getdevnamesdlg; getdlgitem; getdlgitemtext; getfiletitle; getfinddlg; getfinddlghandle; getfontdlg; getfontdlghandle; getforegroundwindow; gethdc; getlogfontdlg; getmenu; getmessage; getopendlg; getopenfilename; getparent; getprintdlg; getprintdlghandle; getreplacedlghandle; getsavefilename; getsetupdlghandle; getstockobject; globalalloc; globalfree; globallock; globalunlock; handlefontcheckbox; handlethecommand; initapplication; initcolorstruct; initcustfilterstring; initfilterstring; initfindstruct; initfontstruct; initglobals; initinstance; initlogfontstruct; initopenstruct; initprintstruct; interpretcustomfilterstring; invalidaterect; isdialogmessage; isdlgbuttonchecked; loadcursor; loadicon; loadresource; logfontproc; lpfnfilterproc; lstrcat; lstrcpy; lstrlen; mainwndproc; makeintresource; messagebox; multithreadcolordlg; multithreadfontdlg; multithreadopensave; multithreadprintdlg; myatol; openfunc; openmultithreadenablebuttons; opensavehookproc; opensavethread1proc; opensavethread2proc; postmessage; postquitmessage; printdlg; printhookproc; printmultiproc1; printmultiproc2; printproc; registerclass; registerwindowmessage; releasedc; replacetext; resetcheckboxes; resumethread; rgb; senddlgitemmessage; sendmessage; setbkmode; setdlgitemint; setdlgitemtext; setfocus; settextcolor; setwindowshookex; setwindowtext; showwindow; switch; text; titleproc; translatemessage; unhookwindowshookex; unreferenced_parameter; updatewindow; winmain; wsprintf