Common Dialog Box Messages

The following constants identify strings that you can use with the RegisterWindowMessage function to get a message identifier. You can use these message identifiers to send messages to or receive messages from common dialog boxes.

COLOROKSTRING
FILEOKSTRING
FINDMSGSTRING
HELPMSGSTRING
LBSELCHSTRING
SETRGBSTRING
SHAREVISTRING

The following are messages you can send to a Font dialog box.

WM_CHOOSEFONT_GETLOGFONT
WM_CHOOSEFONT_SETFLAGS
WM_CHOOSEFONT_SETLOGFONT

The following are messages that a Page Setup dialog box sends to an application-defined PagePaintHook hook procedure.

WM_PSD_ENVSTAMPRECT
WM_PSD_FULLPAGERECT
WM_PSD_GREEKTEXTRECT
WM_PSD_MARGINRECT
WM_PSD_MINMARGINRECT
WM_PSD_PAGESETUPDLG
WM_PSD_YAFULLPAGERECT

The following are messages that a hook procedure can send to an Explorer-style Open or Save As dialog box.

CDM_GETFILEPATH
CDM_GETFOLDERIDLIST
CDM_GETFOLDERPATH
CDM_GETSPEC
CDM_HIDECONTROL
CDM_SETCONTROLTEXT
CDM_SETDEFEXT

The following are notification messages that an Explorer-style Open or Save As dialog box can send to a hook procedure.

CDN_FILEOK
CDN_FOLDERCHANGE
CDN_HELP
CDN_INITDONE
CDN_SELCHANGE
CDN_SHAREVIOLATION
CDN_TYPECHANGE