ReactOS 0.4.17-dev-966-gf06eace
commdlg.h File Reference

Go to the source code of this file.

Classes

struct  tagCHOOSECOLORA
 
struct  tagCHOOSECOLORW
 
struct  tagCHOOSEFONTA
 
struct  tagCHOOSEFONTW
 
struct  tagDEVNAMES
 
struct  FINDREPLACEA
 
struct  FINDREPLACEW
 
struct  tagOFNA
 
struct  tagOFNW
 
struct  _OFNOTIFYA
 
struct  _OFNOTIFYW
 
struct  _OFNOTIFYEXA
 
struct  _OFNOTIFYEXW
 
struct  tagPSDA
 
struct  tagPSDW
 
struct  tagPDA
 
struct  tagPDW
 

Macros

#define SAVE_DIALOG   1
 
#define OPEN_DIALOG   2
 
#define LBSELCHSTRINGA   "commdlg_LBSelChangedNotify"
 
#define SHAREVISTRINGA   "commdlg_ShareViolation"
 
#define FILEOKSTRINGA   "commdlg_FileNameOK"
 
#define COLOROKSTRINGA   "commdlg_ColorOK"
 
#define SETRGBSTRINGA   "commdlg_SetRGBColor"
 
#define HELPMSGSTRINGA   "commdlg_help"
 
#define FINDMSGSTRINGA   "commdlg_FindReplace"
 
#define LBSELCHSTRINGW   L"commdlg_LBSelChangedNotify"
 
#define SHAREVISTRINGW   L"commdlg_ShareViolation"
 
#define FILEOKSTRINGW   L"commdlg_FileNameOK"
 
#define COLOROKSTRINGW   L"commdlg_ColorOK"
 
#define SETRGBSTRINGW   L"commdlg_SetRGBColor"
 
#define HELPMSGSTRINGW   L"commdlg_help"
 
#define FINDMSGSTRINGW   L"commdlg_FindReplace"
 
#define CDN_FIRST   ((UINT)-601) /* also in commctrl.h */
 
#define CDN_LAST   ((UINT)-699)
 
#define CDN_INITDONE   CDN_FIRST
 
#define CDN_SELCHANGE   (CDN_FIRST-1U)
 
#define CDN_FOLDERCHANGE   (CDN_FIRST-2U)
 
#define CDN_SHAREVIOLATION   (CDN_FIRST-3U)
 
#define CDN_HELP   (CDN_FIRST-4U)
 
#define CDN_FILEOK   (CDN_FIRST-5U)
 
#define CDN_TYPECHANGE   (CDN_FIRST-6U)
 
#define CDN_INCLUDEITEM   (CDN_FIRST-7U)
 
#define CDM_FIRST   (WM_USER+100)
 
#define CDM_LAST   (WM_USER+200)
 
#define CDM_GETSPEC   CDM_FIRST
 
#define CDM_GETFILEPATH   (CDM_FIRST+1)
 
#define CDM_GETFOLDERPATH   (CDM_FIRST+2)
 
#define CDM_GETFOLDERIDLIST   (CDM_FIRST+3)
 
#define CDM_SETCONTROLTEXT   (CDM_FIRST+4)
 
#define CDM_HIDECONTROL   (CDM_FIRST+5)
 
#define CDM_SETDEFEXT   (CDM_FIRST+6)
 
#define CC_RGBINIT   1
 
#define CC_FULLOPEN   2
 
#define CC_PREVENTFULLOPEN   4
 
#define CC_SHOWHELP   8
 
#define CC_ENABLEHOOK   16
 
#define CC_ENABLETEMPLATE   32
 
#define CC_ENABLETEMPLATEHANDLE   64
 
#define CC_SOLIDCOLOR   128
 
#define CC_ANYCOLOR   256
 
#define CF_SCREENFONTS   1
 
#define CF_PRINTERFONTS   2
 
#define CF_BOTH   3
 
#define CF_SHOWHELP   4
 
#define CF_ENABLEHOOK   8
 
#define CF_ENABLETEMPLATE   16
 
#define CF_ENABLETEMPLATEHANDLE   32
 
#define CF_INITTOLOGFONTSTRUCT   64
 
#define CF_USESTYLE   128
 
#define CF_EFFECTS   256
 
#define CF_APPLY   512
 
#define CF_ANSIONLY   1024
 
#define CF_SCRIPTSONLY   CF_ANSIONLY
 
#define CF_NOVECTORFONTS   2048
 
#define CF_NOOEMFONTS   2048
 
#define CF_NOSIMULATIONS   4096
 
#define CF_LIMITSIZE   8192
 
#define CF_FIXEDPITCHONLY   16384
 
#define CF_WYSIWYG   32768
 
#define CF_FORCEFONTEXIST   65536
 
#define CF_SCALABLEONLY   131072
 
#define CF_TTONLY   262144
 
#define CF_NOFACESEL   524288
 
#define CF_NOSTYLESEL   1048576
 
#define CF_NOSIZESEL   2097152
 
#define CF_SELECTSCRIPT   4194304
 
#define CF_NOSCRIPTSEL   8388608
 
#define CF_NOVERTFONTS   0x1000000
 
#define SIMULATED_FONTTYPE   0x8000
 
#define PRINTER_FONTTYPE   0x4000
 
#define SCREEN_FONTTYPE   0x2000
 
#define BOLD_FONTTYPE   0x100
 
#define ITALIC_FONTTYPE   0x0200
 
#define REGULAR_FONTTYPE   0x0400
 
#define WM_CHOOSEFONT_GETLOGFONT   (WM_USER+1)
 
#define WM_CHOOSEFONT_SETLOGFONT   (WM_USER+101)
 
#define WM_CHOOSEFONT_SETFLAGS   (WM_USER+102)
 
#define OFN_ALLOWMULTISELECT   512
 
#define OFN_CREATEPROMPT   0x2000
 
#define OFN_DONTADDTORECENT   0x2000000
 
#define OFN_ENABLEHOOK   32
 
#define OFN_ENABLEINCLUDENOTIFY   0x400000
 
#define OFN_ENABLESIZING   0x800000
 
#define OFN_ENABLETEMPLATE   64
 
#define OFN_ENABLETEMPLATEHANDLE   128
 
#define OFN_EXPLORER   0x80000
 
#define OFN_EXTENSIONDIFFERENT   0x400
 
#define OFN_FILEMUSTEXIST   0x1000
 
#define OFN_HIDEREADONLY   4
 
#define OFN_LONGNAMES   0x200000
 
#define OFN_NOCHANGEDIR   8
 
#define OFN_NODEREFERENCELINKS   0x100000
 
#define OFN_NOLONGNAMES   0x40000
 
#define OFN_NONETWORKBUTTON   0x20000
 
#define OFN_NOREADONLYRETURN   0x8000
 
#define OFN_NOTESTFILECREATE   0x10000
 
#define OFN_NOVALIDATE   256
 
#define OFN_OVERWRITEPROMPT   2
 
#define OFN_PATHMUSTEXIST   0x800
 
#define OFN_READONLY   1
 
#define OFN_SHAREAWARE   0x4000
 
#define OFN_SHOWHELP   16
 
#define OFN_EX_NOPLACESBAR   0x00000001
 
#define OFN_SHAREFALLTHROUGH   2
 
#define OFN_SHARENOWARN   1
 
#define OFN_SHAREWARN   0
 
#define OFN_NODEREFERENCELINKS   0x100000
 
#define FR_DIALOGTERM   64
 
#define FR_DOWN   1
 
#define FR_ENABLEHOOK   256
 
#define FR_ENABLETEMPLATE   512
 
#define FR_ENABLETEMPLATEHANDLE   0x2000
 
#define FR_FINDNEXT   8
 
#define FR_HIDEUPDOWN   0x4000
 
#define FR_HIDEMATCHCASE   0x8000
 
#define FR_HIDEWHOLEWORD   0x10000
 
#define FR_MATCHALEFHAMZA   0x80000000
 
#define FR_MATCHCASE   4
 
#define FR_MATCHDIAC   0x20000000
 
#define FR_MATCHKASHIDA   0x40000000
 
#define FR_NOMATCHCASE   0x800
 
#define FR_NOUPDOWN   0x400
 
#define FR_NOWHOLEWORD   4096
 
#define FR_REPLACE   16
 
#define FR_REPLACEALL   32
 
#define FR_SHOWHELP   128
 
#define FR_WHOLEWORD   2
 
#define PD_ALLPAGES   0
 
#define PD_SELECTION   1
 
#define PD_PAGENUMS   2
 
#define PD_NOSELECTION   4
 
#define PD_NOPAGENUMS   8
 
#define PD_COLLATE   16
 
#define PD_PRINTTOFILE   32
 
#define PD_PRINTSETUP   64
 
#define PD_NOWARNING   128
 
#define PD_RETURNDC   256
 
#define PD_RETURNIC   512
 
#define PD_RETURNDEFAULT   1024
 
#define PD_SHOWHELP   2048
 
#define PD_ENABLEPRINTHOOK   4096
 
#define PD_ENABLESETUPHOOK   8192
 
#define PD_ENABLEPRINTTEMPLATE   16384
 
#define PD_ENABLESETUPTEMPLATE   32768
 
#define PD_ENABLEPRINTTEMPLATEHANDLE   65536
 
#define PD_ENABLESETUPTEMPLATEHANDLE   0x20000
 
#define PD_USEDEVMODECOPIES   0x40000
 
#define PD_USEDEVMODECOPIESANDCOLLATE   0x40000
 
#define PD_DISABLEPRINTTOFILE   0x80000
 
#define PD_HIDEPRINTTOFILE   0x100000
 
#define PD_NONETWORKBUTTON   0x200000
 
#define PSD_DEFAULTMINMARGINS   0
 
#define PSD_INWININIINTLMEASURE   0
 
#define PSD_MINMARGINS   1
 
#define PSD_MARGINS   2
 
#define PSD_INTHOUSANDTHSOFINCHES   4
 
#define PSD_INHUNDREDTHSOFMILLIMETERS   8
 
#define PSD_DISABLEMARGINS   16
 
#define PSD_DISABLEPRINTER   32
 
#define PSD_NOWARNING   128
 
#define PSD_DISABLEORIENTATION   256
 
#define PSD_DISABLEPAPER   512
 
#define PSD_RETURNDEFAULT   1024
 
#define PSD_SHOWHELP   2048
 
#define PSD_ENABLEPAGESETUPHOOK   8192
 
#define PSD_ENABLEPAGESETUPTEMPLATE   0x8000
 
#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE   0x20000
 
#define PSD_ENABLEPAGEPAINTHOOK   0x40000
 
#define PSD_DISABLEPAGEPAINTING   0x80000
 
#define WM_PSD_PAGESETUPDLG   WM_USER
 
#define WM_PSD_FULLPAGERECT   (WM_USER+1)
 
#define WM_PSD_MINMARGINRECT   (WM_USER+2)
 
#define WM_PSD_MARGINRECT   (WM_USER+3)
 
#define WM_PSD_GREEKTEXTRECT   (WM_USER+4)
 
#define WM_PSD_ENVSTAMPRECT   (WM_USER+5)
 
#define WM_PSD_YAFULLPAGERECT   (WM_USER+6)
 
#define CD_LBSELNOITEMS   (-1)
 
#define CD_LBSELCHANGE   0
 
#define CD_LBSELSUB   1
 
#define CD_LBSELADD   2
 
#define DN_DEFAULTPRN   1
 
#define PD_RESULT_CANCEL   0
 
#define PD_RESULT_PRINT   1
 
#define PD_RESULT_APPLY   2
 
#define START_PAGE_GENERAL   0xffffffff
 
#define SNDMSG   SendMessage
 
#define CommDlg_OpenSave_GetSpec(d, s, m)   ((int)SNDMSG((d),CDM_GETSPEC,(m),(LPARAM)(s)))
 
#define CommDlg_OpenSave_GetSpecA   CommDlg_OpenSave_GetSpec
 
#define CommDlg_OpenSave_GetSpecW   CommDlg_OpenSave_GetSpec
 
#define CommDlg_OpenSave_GetFilePath(d, s, m)   ((int)SNDMSG((d),CDM_GETFILEPATH,(m),(LPARAM)(s)))
 
#define CommDlg_OpenSave_GetFilePathA   CommDlg_OpenSave_GetFilePath
 
#define CommDlg_OpenSave_GetFilePathW   CommDlg_OpenSave_GetFilePath
 
#define CommDlg_OpenSave_GetFolderPath(d, s, m)   ((int)SNDMSG((d),CDM_GETFOLDERPATH,(m),(LPARAM)(LPSTR)(s)))
 
#define CommDlg_OpenSave_GetFolderPathA   CommDlg_OpenSave_GetFolderPath
 
#define CommDlg_OpenSave_GetFolderPathW   CommDlg_OpenSave_GetFolderPath
 
#define CommDlg_OpenSave_GetFolderIDList(d, i, m)   ((int)SNDMSG((d),CDM_GETFOLDERIDLIST,(m),(LPARAM)(i)))
 
#define CommDlg_OpenSave_SetControlText(d, i, t)   ((void)SNDMSG((d),CDM_SETCONTROLTEXT,(i),(LPARAM)(t)))
 
#define CommDlg_OpenSave_HideControl(d, i)   ((void)SNDMSG((d),CDM_HIDECONTROL,(i),0))
 
#define CommDlg_OpenSave_SetDefExt(d, e)   ((void)SNDMSG((d),CDM_SETDEFEXT,0,(LPARAM)(e)))
 
#define CDSIZEOF_STRUCT(type, field)   ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field))
 
#define OPENFILENAME_SIZE_VERSION_400A   CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)
 
#define OPENFILENAME_SIZE_VERSION_400W   CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)
 
#define OPENFILENAME_SIZE_VERSION_400   OPENFILENAME_SIZE_VERSION_400A
 
#define LBSELCHSTRING   LBSELCHSTRINGA
 
#define SHAREVISTRING   SHAREVISTRINGA
 
#define FILEOKSTRING   FILEOKSTRINGA
 
#define COLOROKSTRING   COLOROKSTRINGA
 
#define SETRGBSTRING   SETRGBSTRINGA
 
#define HELPMSGSTRING   HELPMSGSTRINGA
 
#define FINDMSGSTRING   FINDMSGSTRINGA
 
#define ChooseColor   ChooseColorA
 
#define ChooseFont   ChooseFontA
 
#define FindText   FindTextA
 
#define GetFileTitle   GetFileTitleA
 
#define GetOpenFileName   GetOpenFileNameA
 
#define GetSaveFileName   GetSaveFileNameA
 
#define PageSetupDlg   PageSetupDlgA
 
#define PrintDlg   PrintDlgA
 
#define ReplaceText   ReplaceTextA
 

Typedefs

typedef UINT_PTR(CALLBACK * __CDHOOKPROC) (HWND, UINT, WPARAM, LPARAM)
 
typedef __CDHOOKPROC LPCCHOOKPROC
 
typedef __CDHOOKPROC LPCFHOOKPROC
 
typedef __CDHOOKPROC LPFRHOOKPROC
 
typedef __CDHOOKPROC LPOFNHOOKPROC
 
typedef __CDHOOKPROC LPPAGEPAINTHOOK
 
typedef __CDHOOKPROC LPPAGESETUPHOOK
 
typedef __CDHOOKPROC LPSETUPHOOKPROC
 
typedef __CDHOOKPROC LPPRINTHOOKPROC
 
typedef struct tagCHOOSECOLORA CHOOSECOLORA
 
typedef struct tagCHOOSECOLORA * LPCHOOSECOLORA
 
typedef struct tagCHOOSECOLORW CHOOSECOLORW
 
typedef struct tagCHOOSECOLORW * LPCHOOSECOLORW
 
typedef struct tagCHOOSEFONTA CHOOSEFONTA
 
typedef struct tagCHOOSEFONTA * LPCHOOSEFONTA
 
typedef struct tagCHOOSEFONTW CHOOSEFONTW
 
typedef struct tagCHOOSEFONTW * LPCHOOSEFONTW
 
typedef struct tagDEVNAMES DEVNAMES
 
typedef struct tagDEVNAMES * LPDEVNAMES
 
typedef struct FINDREPLACEA * LPFINDREPLACEA
 
typedef struct FINDREPLACEW * LPFINDREPLACEW
 
typedef struct tagOFNA OPENFILENAMEA
 
typedef struct tagOFNA * LPOPENFILENAMEA
 
typedef struct tagOFNW OPENFILENAMEW
 
typedef struct tagOFNW * LPOPENFILENAMEW
 
typedef struct _OFNOTIFYA OFNOTIFYA
 
typedef struct _OFNOTIFYA * LPOFNOTIFYA
 
typedef struct _OFNOTIFYW OFNOTIFYW
 
typedef struct _OFNOTIFYW * LPOFNOTIFYW
 
typedef struct _OFNOTIFYEXA OFNOTIFYEXA
 
typedef struct _OFNOTIFYEXA * LPOFNOTIFYEXA
 
typedef struct _OFNOTIFYEXW OFNOTIFYEXW
 
typedef struct _OFNOTIFYEXW * LPOFNOTIFYEXW
 
typedef struct tagPSDA PAGESETUPDLGA
 
typedef struct tagPSDA * LPPAGESETUPDLGA
 
typedef struct tagPSDW PAGESETUPDLGW
 
typedef struct tagPSDW * LPPAGESETUPDLGW
 
typedef struct tagPDA PRINTDLGA
 
typedef struct tagPDA * LPPRINTDLGA
 
typedef struct tagPDW PRINTDLGW
 
typedef struct tagPDW * LPPRINTDLGW
 
typedef CHOOSECOLORA CHOOSECOLOR
 
typedef CHOOSECOLORA * LPCHOOSECOLOR
 
typedef CHOOSEFONTA CHOOSEFONT
 
typedef CHOOSEFONTA * LPCHOOSEFONT
 
typedef FINDREPLACEA FINDREPLACE
 
typedef FINDREPLACEA * LPFINDREPLACE
 
typedef OPENFILENAMEA OPENFILENAME
 
typedef OPENFILENAMEA * LPOPENFILENAME
 
typedef OFNOTIFYA OFNOTIFY
 
typedef OFNOTIFYA * LPOFNOTIFY
 
typedef PAGESETUPDLGA PAGESETUPDLG
 
typedef PAGESETUPDLGA * LPPAGESETUPDLG
 
typedef PRINTDLGA PRINTDLG
 
typedef PRINTDLGA * LPPRINTDLG
 

Functions

BOOL WINAPI ChooseColorA (LPCHOOSECOLORA)
 
BOOL WINAPI ChooseColorW (LPCHOOSECOLORW)
 
BOOL WINAPI ChooseFontA (LPCHOOSEFONTA)
 
BOOL WINAPI ChooseFontW (LPCHOOSEFONTW)
 
DWORD WINAPI CommDlgExtendedError (void)
 
HWND WINAPI FindTextA (LPFINDREPLACEA)
 
HWND WINAPI FindTextW (LPFINDREPLACEW)
 
short WINAPI GetFileTitleA (LPCSTR, LPSTR, WORD)
 
short WINAPI GetFileTitleW (LPCWSTR, LPWSTR, WORD)
 
BOOL WINAPI GetOpenFileNameA (LPOPENFILENAMEA)
 
BOOL WINAPI GetOpenFileNameW (LPOPENFILENAMEW)
 
BOOL WINAPI GetSaveFileNameA (LPOPENFILENAMEA)
 
BOOL WINAPI GetSaveFileNameW (LPOPENFILENAMEW)
 
BOOL WINAPI PageSetupDlgA (LPPAGESETUPDLGA)
 
BOOL WINAPI PageSetupDlgW (LPPAGESETUPDLGW)
 
BOOL WINAPI PrintDlgA (LPPRINTDLGA)
 
BOOL WINAPI PrintDlgW (LPPRINTDLGW)
 
HWND WINAPI ReplaceTextA (LPFINDREPLACEA)
 
HWND WINAPI ReplaceTextW (LPFINDREPLACEW)
 

Macro Definition Documentation

◆ BOLD_FONTTYPE

#define BOLD_FONTTYPE   0x100

Definition at line 90 of file commdlg.h.

◆ CC_ANYCOLOR

#define CC_ANYCOLOR   256

Definition at line 58 of file commdlg.h.

◆ CC_ENABLEHOOK

#define CC_ENABLEHOOK   16

Definition at line 54 of file commdlg.h.

◆ CC_ENABLETEMPLATE

#define CC_ENABLETEMPLATE   32

Definition at line 55 of file commdlg.h.

◆ CC_ENABLETEMPLATEHANDLE

#define CC_ENABLETEMPLATEHANDLE   64

Definition at line 56 of file commdlg.h.

◆ CC_FULLOPEN

#define CC_FULLOPEN   2

Definition at line 51 of file commdlg.h.

◆ CC_PREVENTFULLOPEN

#define CC_PREVENTFULLOPEN   4

Definition at line 52 of file commdlg.h.

◆ CC_RGBINIT

#define CC_RGBINIT   1

Definition at line 50 of file commdlg.h.

◆ CC_SHOWHELP

#define CC_SHOWHELP   8

Definition at line 53 of file commdlg.h.

◆ CC_SOLIDCOLOR

#define CC_SOLIDCOLOR   128

Definition at line 57 of file commdlg.h.

◆ CD_LBSELADD

#define CD_LBSELADD   2

Definition at line 198 of file commdlg.h.

◆ CD_LBSELCHANGE

#define CD_LBSELCHANGE   0

Definition at line 196 of file commdlg.h.

◆ CD_LBSELNOITEMS

#define CD_LBSELNOITEMS   (-1)

Definition at line 195 of file commdlg.h.

◆ CD_LBSELSUB

#define CD_LBSELSUB   1

Definition at line 197 of file commdlg.h.

◆ CDM_FIRST

#define CDM_FIRST   (WM_USER+100)

Definition at line 41 of file commdlg.h.

◆ CDM_GETFILEPATH

#define CDM_GETFILEPATH   (CDM_FIRST+1)

Definition at line 44 of file commdlg.h.

◆ CDM_GETFOLDERIDLIST

#define CDM_GETFOLDERIDLIST   (CDM_FIRST+3)

Definition at line 46 of file commdlg.h.

◆ CDM_GETFOLDERPATH

#define CDM_GETFOLDERPATH   (CDM_FIRST+2)

Definition at line 45 of file commdlg.h.

◆ CDM_GETSPEC

#define CDM_GETSPEC   CDM_FIRST

Definition at line 43 of file commdlg.h.

◆ CDM_HIDECONTROL

#define CDM_HIDECONTROL   (CDM_FIRST+5)

Definition at line 48 of file commdlg.h.

◆ CDM_LAST

#define CDM_LAST   (WM_USER+200)

Definition at line 42 of file commdlg.h.

◆ CDM_SETCONTROLTEXT

#define CDM_SETCONTROLTEXT   (CDM_FIRST+4)

Definition at line 47 of file commdlg.h.

◆ CDM_SETDEFEXT

#define CDM_SETDEFEXT   (CDM_FIRST+6)

Definition at line 49 of file commdlg.h.

◆ CDN_FILEOK

#define CDN_FILEOK   (CDN_FIRST-5U)

Definition at line 38 of file commdlg.h.

◆ CDN_FIRST

#define CDN_FIRST   ((UINT)-601) /* also in commctrl.h */

Definition at line 30 of file commdlg.h.

◆ CDN_FOLDERCHANGE

#define CDN_FOLDERCHANGE   (CDN_FIRST-2U)

Definition at line 35 of file commdlg.h.

◆ CDN_HELP

#define CDN_HELP   (CDN_FIRST-4U)

Definition at line 37 of file commdlg.h.

◆ CDN_INCLUDEITEM

#define CDN_INCLUDEITEM   (CDN_FIRST-7U)

Definition at line 40 of file commdlg.h.

◆ CDN_INITDONE

#define CDN_INITDONE   CDN_FIRST

Definition at line 33 of file commdlg.h.

◆ CDN_LAST

#define CDN_LAST   ((UINT)-699)

Definition at line 31 of file commdlg.h.

◆ CDN_SELCHANGE

#define CDN_SELCHANGE   (CDN_FIRST-1U)

Definition at line 34 of file commdlg.h.

◆ CDN_SHAREVIOLATION

#define CDN_SHAREVIOLATION   (CDN_FIRST-3U)

Definition at line 36 of file commdlg.h.

◆ CDN_TYPECHANGE

#define CDN_TYPECHANGE   (CDN_FIRST-6U)

Definition at line 39 of file commdlg.h.

◆ CDSIZEOF_STRUCT

#define CDSIZEOF_STRUCT (   type,
  field 
)    ((INT_PTR)&(((type *)0)->field) + sizeof(((type*)0)->field))

Definition at line 393 of file commdlg.h.

◆ CF_ANSIONLY

#define CF_ANSIONLY   1024

Definition at line 70 of file commdlg.h.

◆ CF_APPLY

#define CF_APPLY   512

Definition at line 69 of file commdlg.h.

◆ CF_BOTH

#define CF_BOTH   3

Definition at line 61 of file commdlg.h.

◆ CF_EFFECTS

#define CF_EFFECTS   256

Definition at line 68 of file commdlg.h.

◆ CF_ENABLEHOOK

#define CF_ENABLEHOOK   8

Definition at line 63 of file commdlg.h.

◆ CF_ENABLETEMPLATE

#define CF_ENABLETEMPLATE   16

Definition at line 64 of file commdlg.h.

◆ CF_ENABLETEMPLATEHANDLE

#define CF_ENABLETEMPLATEHANDLE   32

Definition at line 65 of file commdlg.h.

◆ CF_FIXEDPITCHONLY

#define CF_FIXEDPITCHONLY   16384

Definition at line 76 of file commdlg.h.

◆ CF_FORCEFONTEXIST

#define CF_FORCEFONTEXIST   65536

Definition at line 78 of file commdlg.h.

◆ CF_INITTOLOGFONTSTRUCT

#define CF_INITTOLOGFONTSTRUCT   64

Definition at line 66 of file commdlg.h.

◆ CF_LIMITSIZE

#define CF_LIMITSIZE   8192

Definition at line 75 of file commdlg.h.

◆ CF_NOFACESEL

#define CF_NOFACESEL   524288

Definition at line 81 of file commdlg.h.

◆ CF_NOOEMFONTS

#define CF_NOOEMFONTS   2048

Definition at line 73 of file commdlg.h.

◆ CF_NOSCRIPTSEL

#define CF_NOSCRIPTSEL   8388608

Definition at line 85 of file commdlg.h.

◆ CF_NOSIMULATIONS

#define CF_NOSIMULATIONS   4096

Definition at line 74 of file commdlg.h.

◆ CF_NOSIZESEL

#define CF_NOSIZESEL   2097152

Definition at line 83 of file commdlg.h.

◆ CF_NOSTYLESEL

#define CF_NOSTYLESEL   1048576

Definition at line 82 of file commdlg.h.

◆ CF_NOVECTORFONTS

#define CF_NOVECTORFONTS   2048

Definition at line 72 of file commdlg.h.

◆ CF_NOVERTFONTS

#define CF_NOVERTFONTS   0x1000000

Definition at line 86 of file commdlg.h.

◆ CF_PRINTERFONTS

#define CF_PRINTERFONTS   2

Definition at line 60 of file commdlg.h.

◆ CF_SCALABLEONLY

#define CF_SCALABLEONLY   131072

Definition at line 79 of file commdlg.h.

◆ CF_SCREENFONTS

#define CF_SCREENFONTS   1

Definition at line 59 of file commdlg.h.

◆ CF_SCRIPTSONLY

#define CF_SCRIPTSONLY   CF_ANSIONLY

Definition at line 71 of file commdlg.h.

◆ CF_SELECTSCRIPT

#define CF_SELECTSCRIPT   4194304

Definition at line 84 of file commdlg.h.

◆ CF_SHOWHELP

#define CF_SHOWHELP   4

Definition at line 62 of file commdlg.h.

◆ CF_TTONLY

#define CF_TTONLY   262144

Definition at line 80 of file commdlg.h.

◆ CF_USESTYLE

#define CF_USESTYLE   128

Definition at line 67 of file commdlg.h.

◆ CF_WYSIWYG

#define CF_WYSIWYG   32768

Definition at line 77 of file commdlg.h.

◆ ChooseColor

#define ChooseColor   ChooseColorA

Definition at line 661 of file commdlg.h.

◆ ChooseFont

#define ChooseFont   ChooseFontA

Definition at line 662 of file commdlg.h.

◆ COLOROKSTRING

#define COLOROKSTRING   COLOROKSTRINGA

Definition at line 650 of file commdlg.h.

◆ COLOROKSTRINGA

#define COLOROKSTRINGA   "commdlg_ColorOK"

Definition at line 18 of file commdlg.h.

◆ COLOROKSTRINGW

#define COLOROKSTRINGW   L"commdlg_ColorOK"

Definition at line 25 of file commdlg.h.

◆ CommDlg_OpenSave_GetFilePath

#define CommDlg_OpenSave_GetFilePath (   d,
  s,
  m 
)    ((int)SNDMSG((d),CDM_GETFILEPATH,(m),(LPARAM)(s)))

Definition at line 218 of file commdlg.h.

◆ CommDlg_OpenSave_GetFilePathA

#define CommDlg_OpenSave_GetFilePathA   CommDlg_OpenSave_GetFilePath

Definition at line 219 of file commdlg.h.

◆ CommDlg_OpenSave_GetFilePathW

#define CommDlg_OpenSave_GetFilePathW   CommDlg_OpenSave_GetFilePath

Definition at line 220 of file commdlg.h.

◆ CommDlg_OpenSave_GetFolderIDList

#define CommDlg_OpenSave_GetFolderIDList (   d,
  i,
  m 
)    ((int)SNDMSG((d),CDM_GETFOLDERIDLIST,(m),(LPARAM)(i)))

Definition at line 224 of file commdlg.h.

◆ CommDlg_OpenSave_GetFolderPath

#define CommDlg_OpenSave_GetFolderPath (   d,
  s,
  m 
)    ((int)SNDMSG((d),CDM_GETFOLDERPATH,(m),(LPARAM)(LPSTR)(s)))

Definition at line 221 of file commdlg.h.

◆ CommDlg_OpenSave_GetFolderPathA

#define CommDlg_OpenSave_GetFolderPathA   CommDlg_OpenSave_GetFolderPath

Definition at line 222 of file commdlg.h.

◆ CommDlg_OpenSave_GetFolderPathW

#define CommDlg_OpenSave_GetFolderPathW   CommDlg_OpenSave_GetFolderPath

Definition at line 223 of file commdlg.h.

◆ CommDlg_OpenSave_GetSpec

#define CommDlg_OpenSave_GetSpec (   d,
  s,
  m 
)    ((int)SNDMSG((d),CDM_GETSPEC,(m),(LPARAM)(s)))

Definition at line 215 of file commdlg.h.

◆ CommDlg_OpenSave_GetSpecA

#define CommDlg_OpenSave_GetSpecA   CommDlg_OpenSave_GetSpec

Definition at line 216 of file commdlg.h.

◆ CommDlg_OpenSave_GetSpecW

#define CommDlg_OpenSave_GetSpecW   CommDlg_OpenSave_GetSpec

Definition at line 217 of file commdlg.h.

◆ CommDlg_OpenSave_HideControl

#define CommDlg_OpenSave_HideControl (   d,
  i 
)    ((void)SNDMSG((d),CDM_HIDECONTROL,(i),0))

Definition at line 226 of file commdlg.h.

◆ CommDlg_OpenSave_SetControlText

#define CommDlg_OpenSave_SetControlText (   d,
  i,
  t 
)    ((void)SNDMSG((d),CDM_SETCONTROLTEXT,(i),(LPARAM)(t)))

Definition at line 225 of file commdlg.h.

◆ CommDlg_OpenSave_SetDefExt

#define CommDlg_OpenSave_SetDefExt (   d,
  e 
)    ((void)SNDMSG((d),CDM_SETDEFEXT,0,(LPARAM)(e)))

Definition at line 227 of file commdlg.h.

◆ DN_DEFAULTPRN

#define DN_DEFAULTPRN   1

Definition at line 199 of file commdlg.h.

◆ FILEOKSTRING

#define FILEOKSTRING   FILEOKSTRINGA

Definition at line 649 of file commdlg.h.

◆ FILEOKSTRINGA

#define FILEOKSTRINGA   "commdlg_FileNameOK"

Definition at line 17 of file commdlg.h.

◆ FILEOKSTRINGW

#define FILEOKSTRINGW   L"commdlg_FileNameOK"

Definition at line 24 of file commdlg.h.

◆ FINDMSGSTRING

#define FINDMSGSTRING   FINDMSGSTRINGA

Definition at line 653 of file commdlg.h.

◆ FINDMSGSTRINGA

#define FINDMSGSTRINGA   "commdlg_FindReplace"

Definition at line 21 of file commdlg.h.

◆ FINDMSGSTRINGW

#define FINDMSGSTRINGW   L"commdlg_FindReplace"

Definition at line 28 of file commdlg.h.

◆ FindText

#define FindText   FindTextA

Definition at line 663 of file commdlg.h.

◆ FR_DIALOGTERM

#define FR_DIALOGTERM   64

Definition at line 126 of file commdlg.h.

◆ FR_DOWN

#define FR_DOWN   1

Definition at line 127 of file commdlg.h.

◆ FR_ENABLEHOOK

#define FR_ENABLEHOOK   256

Definition at line 128 of file commdlg.h.

◆ FR_ENABLETEMPLATE

#define FR_ENABLETEMPLATE   512

Definition at line 129 of file commdlg.h.

◆ FR_ENABLETEMPLATEHANDLE

#define FR_ENABLETEMPLATEHANDLE   0x2000

Definition at line 130 of file commdlg.h.

◆ FR_FINDNEXT

#define FR_FINDNEXT   8

Definition at line 131 of file commdlg.h.

◆ FR_HIDEMATCHCASE

#define FR_HIDEMATCHCASE   0x8000

Definition at line 133 of file commdlg.h.

◆ FR_HIDEUPDOWN

#define FR_HIDEUPDOWN   0x4000

Definition at line 132 of file commdlg.h.

◆ FR_HIDEWHOLEWORD

#define FR_HIDEWHOLEWORD   0x10000

Definition at line 134 of file commdlg.h.

◆ FR_MATCHALEFHAMZA

#define FR_MATCHALEFHAMZA   0x80000000

Definition at line 135 of file commdlg.h.

◆ FR_MATCHCASE

#define FR_MATCHCASE   4

Definition at line 136 of file commdlg.h.

◆ FR_MATCHDIAC

#define FR_MATCHDIAC   0x20000000

Definition at line 137 of file commdlg.h.

◆ FR_MATCHKASHIDA

#define FR_MATCHKASHIDA   0x40000000

Definition at line 138 of file commdlg.h.

◆ FR_NOMATCHCASE

#define FR_NOMATCHCASE   0x800

Definition at line 139 of file commdlg.h.

◆ FR_NOUPDOWN

#define FR_NOUPDOWN   0x400

Definition at line 140 of file commdlg.h.

◆ FR_NOWHOLEWORD

#define FR_NOWHOLEWORD   4096

Definition at line 141 of file commdlg.h.

◆ FR_REPLACE

#define FR_REPLACE   16

Definition at line 142 of file commdlg.h.

◆ FR_REPLACEALL

#define FR_REPLACEALL   32

Definition at line 143 of file commdlg.h.

◆ FR_SHOWHELP

#define FR_SHOWHELP   128

Definition at line 144 of file commdlg.h.

◆ FR_WHOLEWORD

#define FR_WHOLEWORD   2

Definition at line 145 of file commdlg.h.

◆ GetFileTitle

#define GetFileTitle   GetFileTitleA

Definition at line 664 of file commdlg.h.

◆ GetOpenFileName

#define GetOpenFileName   GetOpenFileNameA

Definition at line 665 of file commdlg.h.

◆ GetSaveFileName

#define GetSaveFileName   GetSaveFileNameA

Definition at line 666 of file commdlg.h.

◆ HELPMSGSTRING

#define HELPMSGSTRING   HELPMSGSTRINGA

Definition at line 652 of file commdlg.h.

◆ HELPMSGSTRINGA

#define HELPMSGSTRINGA   "commdlg_help"

Definition at line 20 of file commdlg.h.

◆ HELPMSGSTRINGW

#define HELPMSGSTRINGW   L"commdlg_help"

Definition at line 27 of file commdlg.h.

◆ ITALIC_FONTTYPE

#define ITALIC_FONTTYPE   0x0200

Definition at line 91 of file commdlg.h.

◆ LBSELCHSTRING

#define LBSELCHSTRING   LBSELCHSTRINGA

Definition at line 647 of file commdlg.h.

◆ LBSELCHSTRINGA

#define LBSELCHSTRINGA   "commdlg_LBSelChangedNotify"

Definition at line 15 of file commdlg.h.

◆ LBSELCHSTRINGW

#define LBSELCHSTRINGW   L"commdlg_LBSelChangedNotify"

Definition at line 22 of file commdlg.h.

◆ OFN_ALLOWMULTISELECT

#define OFN_ALLOWMULTISELECT   512

Definition at line 96 of file commdlg.h.

◆ OFN_CREATEPROMPT

#define OFN_CREATEPROMPT   0x2000

Definition at line 97 of file commdlg.h.

◆ OFN_DONTADDTORECENT

#define OFN_DONTADDTORECENT   0x2000000

Definition at line 98 of file commdlg.h.

◆ OFN_ENABLEHOOK

#define OFN_ENABLEHOOK   32

Definition at line 99 of file commdlg.h.

◆ OFN_ENABLEINCLUDENOTIFY

#define OFN_ENABLEINCLUDENOTIFY   0x400000

Definition at line 100 of file commdlg.h.

◆ OFN_ENABLESIZING

#define OFN_ENABLESIZING   0x800000

Definition at line 101 of file commdlg.h.

◆ OFN_ENABLETEMPLATE

#define OFN_ENABLETEMPLATE   64

Definition at line 102 of file commdlg.h.

◆ OFN_ENABLETEMPLATEHANDLE

#define OFN_ENABLETEMPLATEHANDLE   128

Definition at line 103 of file commdlg.h.

◆ OFN_EX_NOPLACESBAR

#define OFN_EX_NOPLACESBAR   0x00000001

Definition at line 121 of file commdlg.h.

◆ OFN_EXPLORER

#define OFN_EXPLORER   0x80000

Definition at line 104 of file commdlg.h.

◆ OFN_EXTENSIONDIFFERENT

#define OFN_EXTENSIONDIFFERENT   0x400

Definition at line 105 of file commdlg.h.

◆ OFN_FILEMUSTEXIST

#define OFN_FILEMUSTEXIST   0x1000

Definition at line 106 of file commdlg.h.

◆ OFN_HIDEREADONLY

#define OFN_HIDEREADONLY   4

Definition at line 107 of file commdlg.h.

◆ OFN_LONGNAMES

#define OFN_LONGNAMES   0x200000

Definition at line 108 of file commdlg.h.

◆ OFN_NOCHANGEDIR

#define OFN_NOCHANGEDIR   8

Definition at line 109 of file commdlg.h.

◆ OFN_NODEREFERENCELINKS [1/2]

#define OFN_NODEREFERENCELINKS   0x100000

Definition at line 125 of file commdlg.h.

◆ OFN_NODEREFERENCELINKS [2/2]

#define OFN_NODEREFERENCELINKS   0x100000

Definition at line 125 of file commdlg.h.

◆ OFN_NOLONGNAMES

#define OFN_NOLONGNAMES   0x40000

Definition at line 111 of file commdlg.h.

◆ OFN_NONETWORKBUTTON

#define OFN_NONETWORKBUTTON   0x20000

Definition at line 112 of file commdlg.h.

◆ OFN_NOREADONLYRETURN

#define OFN_NOREADONLYRETURN   0x8000

Definition at line 113 of file commdlg.h.

◆ OFN_NOTESTFILECREATE

#define OFN_NOTESTFILECREATE   0x10000

Definition at line 114 of file commdlg.h.

◆ OFN_NOVALIDATE

#define OFN_NOVALIDATE   256

Definition at line 115 of file commdlg.h.

◆ OFN_OVERWRITEPROMPT

#define OFN_OVERWRITEPROMPT   2

Definition at line 116 of file commdlg.h.

◆ OFN_PATHMUSTEXIST

#define OFN_PATHMUSTEXIST   0x800

Definition at line 117 of file commdlg.h.

◆ OFN_READONLY

#define OFN_READONLY   1

Definition at line 118 of file commdlg.h.

◆ OFN_SHAREAWARE

#define OFN_SHAREAWARE   0x4000

Definition at line 119 of file commdlg.h.

◆ OFN_SHAREFALLTHROUGH

#define OFN_SHAREFALLTHROUGH   2

Definition at line 122 of file commdlg.h.

◆ OFN_SHARENOWARN

#define OFN_SHARENOWARN   1

Definition at line 123 of file commdlg.h.

◆ OFN_SHAREWARN

#define OFN_SHAREWARN   0

Definition at line 124 of file commdlg.h.

◆ OFN_SHOWHELP

#define OFN_SHOWHELP   16

Definition at line 120 of file commdlg.h.

◆ OPEN_DIALOG

#define OPEN_DIALOG   2

Definition at line 13 of file commdlg.h.

◆ OPENFILENAME_SIZE_VERSION_400

#define OPENFILENAME_SIZE_VERSION_400   OPENFILENAME_SIZE_VERSION_400A

Definition at line 402 of file commdlg.h.

◆ OPENFILENAME_SIZE_VERSION_400A

#define OPENFILENAME_SIZE_VERSION_400A   CDSIZEOF_STRUCT(OPENFILENAMEA,lpTemplateName)

Definition at line 396 of file commdlg.h.

◆ OPENFILENAME_SIZE_VERSION_400W

#define OPENFILENAME_SIZE_VERSION_400W   CDSIZEOF_STRUCT(OPENFILENAMEW,lpTemplateName)

Definition at line 397 of file commdlg.h.

◆ PageSetupDlg

#define PageSetupDlg   PageSetupDlgA

Definition at line 667 of file commdlg.h.

◆ PD_ALLPAGES

#define PD_ALLPAGES   0

Definition at line 146 of file commdlg.h.

◆ PD_COLLATE

#define PD_COLLATE   16

Definition at line 151 of file commdlg.h.

◆ PD_DISABLEPRINTTOFILE

#define PD_DISABLEPRINTTOFILE   0x80000

Definition at line 167 of file commdlg.h.

◆ PD_ENABLEPRINTHOOK

#define PD_ENABLEPRINTHOOK   4096

Definition at line 159 of file commdlg.h.

◆ PD_ENABLEPRINTTEMPLATE

#define PD_ENABLEPRINTTEMPLATE   16384

Definition at line 161 of file commdlg.h.

◆ PD_ENABLEPRINTTEMPLATEHANDLE

#define PD_ENABLEPRINTTEMPLATEHANDLE   65536

Definition at line 163 of file commdlg.h.

◆ PD_ENABLESETUPHOOK

#define PD_ENABLESETUPHOOK   8192

Definition at line 160 of file commdlg.h.

◆ PD_ENABLESETUPTEMPLATE

#define PD_ENABLESETUPTEMPLATE   32768

Definition at line 162 of file commdlg.h.

◆ PD_ENABLESETUPTEMPLATEHANDLE

#define PD_ENABLESETUPTEMPLATEHANDLE   0x20000

Definition at line 164 of file commdlg.h.

◆ PD_HIDEPRINTTOFILE

#define PD_HIDEPRINTTOFILE   0x100000

Definition at line 168 of file commdlg.h.

◆ PD_NONETWORKBUTTON

#define PD_NONETWORKBUTTON   0x200000

Definition at line 169 of file commdlg.h.

◆ PD_NOPAGENUMS

#define PD_NOPAGENUMS   8

Definition at line 150 of file commdlg.h.

◆ PD_NOSELECTION

#define PD_NOSELECTION   4

Definition at line 149 of file commdlg.h.

◆ PD_NOWARNING

#define PD_NOWARNING   128

Definition at line 154 of file commdlg.h.

◆ PD_PAGENUMS

#define PD_PAGENUMS   2

Definition at line 148 of file commdlg.h.

◆ PD_PRINTSETUP

#define PD_PRINTSETUP   64

Definition at line 153 of file commdlg.h.

◆ PD_PRINTTOFILE

#define PD_PRINTTOFILE   32

Definition at line 152 of file commdlg.h.

◆ PD_RESULT_APPLY

#define PD_RESULT_APPLY   2

Definition at line 203 of file commdlg.h.

◆ PD_RESULT_CANCEL

#define PD_RESULT_CANCEL   0

Definition at line 201 of file commdlg.h.

◆ PD_RESULT_PRINT

#define PD_RESULT_PRINT   1

Definition at line 202 of file commdlg.h.

◆ PD_RETURNDC

#define PD_RETURNDC   256

Definition at line 155 of file commdlg.h.

◆ PD_RETURNDEFAULT

#define PD_RETURNDEFAULT   1024

Definition at line 157 of file commdlg.h.

◆ PD_RETURNIC

#define PD_RETURNIC   512

Definition at line 156 of file commdlg.h.

◆ PD_SELECTION

#define PD_SELECTION   1

Definition at line 147 of file commdlg.h.

◆ PD_SHOWHELP

#define PD_SHOWHELP   2048

Definition at line 158 of file commdlg.h.

◆ PD_USEDEVMODECOPIES

#define PD_USEDEVMODECOPIES   0x40000

Definition at line 165 of file commdlg.h.

◆ PD_USEDEVMODECOPIESANDCOLLATE

#define PD_USEDEVMODECOPIESANDCOLLATE   0x40000

Definition at line 166 of file commdlg.h.

◆ PrintDlg

#define PrintDlg   PrintDlgA

Definition at line 668 of file commdlg.h.

◆ PRINTER_FONTTYPE

#define PRINTER_FONTTYPE   0x4000

Definition at line 88 of file commdlg.h.

◆ PSD_DEFAULTMINMARGINS

#define PSD_DEFAULTMINMARGINS   0

Definition at line 170 of file commdlg.h.

◆ PSD_DISABLEMARGINS

#define PSD_DISABLEMARGINS   16

Definition at line 176 of file commdlg.h.

◆ PSD_DISABLEORIENTATION

#define PSD_DISABLEORIENTATION   256

Definition at line 179 of file commdlg.h.

◆ PSD_DISABLEPAGEPAINTING

#define PSD_DISABLEPAGEPAINTING   0x80000

Definition at line 187 of file commdlg.h.

◆ PSD_DISABLEPAPER

#define PSD_DISABLEPAPER   512

Definition at line 180 of file commdlg.h.

◆ PSD_DISABLEPRINTER

#define PSD_DISABLEPRINTER   32

Definition at line 177 of file commdlg.h.

◆ PSD_ENABLEPAGEPAINTHOOK

#define PSD_ENABLEPAGEPAINTHOOK   0x40000

Definition at line 186 of file commdlg.h.

◆ PSD_ENABLEPAGESETUPHOOK

#define PSD_ENABLEPAGESETUPHOOK   8192

Definition at line 183 of file commdlg.h.

◆ PSD_ENABLEPAGESETUPTEMPLATE

#define PSD_ENABLEPAGESETUPTEMPLATE   0x8000

Definition at line 184 of file commdlg.h.

◆ PSD_ENABLEPAGESETUPTEMPLATEHANDLE

#define PSD_ENABLEPAGESETUPTEMPLATEHANDLE   0x20000

Definition at line 185 of file commdlg.h.

◆ PSD_INHUNDREDTHSOFMILLIMETERS

#define PSD_INHUNDREDTHSOFMILLIMETERS   8

Definition at line 175 of file commdlg.h.

◆ PSD_INTHOUSANDTHSOFINCHES

#define PSD_INTHOUSANDTHSOFINCHES   4

Definition at line 174 of file commdlg.h.

◆ PSD_INWININIINTLMEASURE

#define PSD_INWININIINTLMEASURE   0

Definition at line 171 of file commdlg.h.

◆ PSD_MARGINS

#define PSD_MARGINS   2

Definition at line 173 of file commdlg.h.

◆ PSD_MINMARGINS

#define PSD_MINMARGINS   1

Definition at line 172 of file commdlg.h.

◆ PSD_NOWARNING

#define PSD_NOWARNING   128

Definition at line 178 of file commdlg.h.

◆ PSD_RETURNDEFAULT

#define PSD_RETURNDEFAULT   1024

Definition at line 181 of file commdlg.h.

◆ PSD_SHOWHELP

#define PSD_SHOWHELP   2048

Definition at line 182 of file commdlg.h.

◆ REGULAR_FONTTYPE

#define REGULAR_FONTTYPE   0x0400

Definition at line 92 of file commdlg.h.

◆ ReplaceText

#define ReplaceText   ReplaceTextA

Definition at line 669 of file commdlg.h.

◆ SAVE_DIALOG

#define SAVE_DIALOG   1

Definition at line 12 of file commdlg.h.

◆ SCREEN_FONTTYPE

#define SCREEN_FONTTYPE   0x2000

Definition at line 89 of file commdlg.h.

◆ SETRGBSTRING

#define SETRGBSTRING   SETRGBSTRINGA

Definition at line 651 of file commdlg.h.

◆ SETRGBSTRINGA

#define SETRGBSTRINGA   "commdlg_SetRGBColor"

Definition at line 19 of file commdlg.h.

◆ SETRGBSTRINGW

#define SETRGBSTRINGW   L"commdlg_SetRGBColor"

Definition at line 26 of file commdlg.h.

◆ SHAREVISTRING

#define SHAREVISTRING   SHAREVISTRINGA

Definition at line 648 of file commdlg.h.

◆ SHAREVISTRINGA

#define SHAREVISTRINGA   "commdlg_ShareViolation"

Definition at line 16 of file commdlg.h.

◆ SHAREVISTRINGW

#define SHAREVISTRINGW   L"commdlg_ShareViolation"

Definition at line 23 of file commdlg.h.

◆ SIMULATED_FONTTYPE

#define SIMULATED_FONTTYPE   0x8000

Definition at line 87 of file commdlg.h.

◆ SNDMSG

#define SNDMSG   SendMessage

Definition at line 211 of file commdlg.h.

◆ START_PAGE_GENERAL

#define START_PAGE_GENERAL   0xffffffff

Definition at line 205 of file commdlg.h.

◆ WM_CHOOSEFONT_GETLOGFONT

#define WM_CHOOSEFONT_GETLOGFONT   (WM_USER+1)

Definition at line 93 of file commdlg.h.

◆ WM_CHOOSEFONT_SETFLAGS

#define WM_CHOOSEFONT_SETFLAGS   (WM_USER+102)

Definition at line 95 of file commdlg.h.

◆ WM_CHOOSEFONT_SETLOGFONT

#define WM_CHOOSEFONT_SETLOGFONT   (WM_USER+101)

Definition at line 94 of file commdlg.h.

◆ WM_PSD_ENVSTAMPRECT

#define WM_PSD_ENVSTAMPRECT   (WM_USER+5)

Definition at line 193 of file commdlg.h.

◆ WM_PSD_FULLPAGERECT

#define WM_PSD_FULLPAGERECT   (WM_USER+1)

Definition at line 189 of file commdlg.h.

◆ WM_PSD_GREEKTEXTRECT

#define WM_PSD_GREEKTEXTRECT   (WM_USER+4)

Definition at line 192 of file commdlg.h.

◆ WM_PSD_MARGINRECT

#define WM_PSD_MARGINRECT   (WM_USER+3)

Definition at line 191 of file commdlg.h.

◆ WM_PSD_MINMARGINRECT

#define WM_PSD_MINMARGINRECT   (WM_USER+2)

Definition at line 190 of file commdlg.h.

◆ WM_PSD_PAGESETUPDLG

#define WM_PSD_PAGESETUPDLG   WM_USER

Definition at line 188 of file commdlg.h.

◆ WM_PSD_YAFULLPAGERECT

#define WM_PSD_YAFULLPAGERECT   (WM_USER+6)

Definition at line 194 of file commdlg.h.

Typedef Documentation

◆ __CDHOOKPROC

typedef UINT_PTR(CALLBACK * __CDHOOKPROC) (HWND, UINT, WPARAM, LPARAM)

Definition at line 229 of file commdlg.h.

◆ CHOOSECOLOR

Definition at line 654 of file commdlg.h.

◆ CHOOSECOLORA

◆ CHOOSECOLORW

◆ CHOOSEFONT

Definition at line 655 of file commdlg.h.

◆ CHOOSEFONTA

◆ CHOOSEFONTW

◆ DEVNAMES

◆ FINDREPLACE

Definition at line 656 of file commdlg.h.

◆ LPCCHOOKPROC

Definition at line 230 of file commdlg.h.

◆ LPCFHOOKPROC

Definition at line 231 of file commdlg.h.

◆ LPCHOOSECOLOR

Definition at line 654 of file commdlg.h.

◆ LPCHOOSECOLORA

◆ LPCHOOSECOLORW

◆ LPCHOOSEFONT

Definition at line 655 of file commdlg.h.

◆ LPCHOOSEFONTA

◆ LPCHOOSEFONTW

◆ LPDEVNAMES

◆ LPFINDREPLACE

Definition at line 656 of file commdlg.h.

◆ LPFINDREPLACEA

◆ LPFINDREPLACEW

◆ LPFRHOOKPROC

Definition at line 232 of file commdlg.h.

◆ LPOFNHOOKPROC

Definition at line 233 of file commdlg.h.

◆ LPOFNOTIFY

typedef OFNOTIFYA * LPOFNOTIFY

Definition at line 658 of file commdlg.h.

◆ LPOFNOTIFYA

◆ LPOFNOTIFYEXA

◆ LPOFNOTIFYEXW

◆ LPOFNOTIFYW

◆ LPOPENFILENAME

Definition at line 657 of file commdlg.h.

◆ LPOPENFILENAMEA

◆ LPOPENFILENAMEW

◆ LPPAGEPAINTHOOK

Definition at line 234 of file commdlg.h.

◆ LPPAGESETUPDLG

Definition at line 659 of file commdlg.h.

◆ LPPAGESETUPDLGA

◆ LPPAGESETUPDLGW

◆ LPPAGESETUPHOOK

Definition at line 235 of file commdlg.h.

◆ LPPRINTDLG

typedef PRINTDLGA * LPPRINTDLG

Definition at line 660 of file commdlg.h.

◆ LPPRINTDLGA

◆ LPPRINTDLGW

◆ LPPRINTHOOKPROC

Definition at line 237 of file commdlg.h.

◆ LPSETUPHOOKPROC

Definition at line 236 of file commdlg.h.

◆ OFNOTIFY

Definition at line 658 of file commdlg.h.

◆ OFNOTIFYA

◆ OFNOTIFYEXA

◆ OFNOTIFYEXW

◆ OFNOTIFYW

◆ OPENFILENAME

Definition at line 657 of file commdlg.h.

◆ OPENFILENAMEA

◆ OPENFILENAMEW

◆ PAGESETUPDLG

Definition at line 659 of file commdlg.h.

◆ PAGESETUPDLGA

◆ PAGESETUPDLGW

◆ PRINTDLG

Definition at line 660 of file commdlg.h.

◆ PRINTDLGA

◆ PRINTDLGW

Function Documentation

◆ ChooseColorA()

BOOL WINAPI ChooseColorA ( LPCHOOSECOLORA  lpChCol)

Definition at line 1362 of file colordlg.c.

1364{
1365 LPWSTR template_name = NULL;
1366 BOOL ret;
1367
1368 CHOOSECOLORW *lpcc = heap_alloc_zero(sizeof(*lpcc));
1369 lpcc->lStructSize = sizeof(*lpcc);
1370 lpcc->hwndOwner = lpChCol->hwndOwner;
1371 lpcc->hInstance = lpChCol->hInstance;
1372 lpcc->rgbResult = lpChCol->rgbResult;
1373 lpcc->lpCustColors = lpChCol->lpCustColors;
1374 lpcc->Flags = lpChCol->Flags;
1375 lpcc->lCustData = lpChCol->lCustData;
1376 lpcc->lpfnHook = lpChCol->lpfnHook;
1377 if ((lpcc->Flags & CC_ENABLETEMPLATE) && (lpChCol->lpTemplateName)) {
1378 if (!IS_INTRESOURCE(lpChCol->lpTemplateName)) {
1379 INT len = MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, NULL, 0);
1380 template_name = heap_alloc( len * sizeof(WCHAR) );
1381 MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, template_name, len );
1382 lpcc->lpTemplateName = template_name;
1383 } else {
1384 lpcc->lpTemplateName = (LPCWSTR)lpChCol->lpTemplateName;
1385 }
1386 }
1387
1388 ret = ChooseColorW(lpcc);
1389
1390 if (ret)
1391 lpChCol->rgbResult = lpcc->rgbResult;
1392
1393 heap_free(template_name);
1394 heap_free(lpcc);
1395 return ret;
1396}
static void * heap_alloc(size_t len)
Definition: appwiz.h:66
static BOOL heap_free(void *mem)
Definition: appwiz.h:76
BOOL WINAPI ChooseColorW(CHOOSECOLORW *lpChCol)
Definition: colordlg.c:1302
#define CC_ENABLETEMPLATE
Definition: commdlg.h:55
#define NULL
Definition: types.h:112
#define CP_ACP
Definition: compat.h:109
#define MultiByteToWideChar
Definition: compat.h:110
#define IS_INTRESOURCE(x)
Definition: loader.c:613
return ret
Definition: mutex.c:147
unsigned int BOOL
Definition: ntddk_ex.h:94
GLenum GLsizei len
Definition: glext.h:6722
short WCHAR
Definition: pedump.c:58
HWND hInstance
Definition: commdlg.h:241
COLORREF rgbResult
Definition: commdlg.h:242
HWND hwndOwner
Definition: commdlg.h:240
LPARAM lCustData
Definition: commdlg.h:245
COLORREF * lpCustColors
Definition: commdlg.h:243
LPCCHOOKPROC lpfnHook
Definition: commdlg.h:246
LPCSTR lpTemplateName
Definition: commdlg.h:247
HWND hInstance
Definition: commdlg.h:252
HWND hwndOwner
Definition: commdlg.h:251
LPCCHOOKPROC lpfnHook
Definition: commdlg.h:257
LPARAM lCustData
Definition: commdlg.h:256
COLORREF * lpCustColors
Definition: commdlg.h:254
DWORD lStructSize
Definition: commdlg.h:250
COLORREF rgbResult
Definition: commdlg.h:253
LPCWSTR lpTemplateName
Definition: commdlg.h:258
const uint16_t * LPCWSTR
Definition: typedefs.h:57
uint16_t * LPWSTR
Definition: typedefs.h:56
int32_t INT
Definition: typedefs.h:58

◆ ChooseColorW()

BOOL WINAPI ChooseColorW ( LPCHOOSECOLORW  )

◆ ChooseFontA()

BOOL WINAPI ChooseFontA ( LPCHOOSEFONTA  lpChFont)

Definition at line 229 of file fontdlg.c.

230{
231 LPCVOID template;
232 HRSRC hResInfo;
233 HINSTANCE hDlginst;
234 HGLOBAL hDlgTmpl;
235
236 TRACE("(%p)\n", lpChFont);
237
238 if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
239 {
240 template=lpChFont->hInstance;
241 } else
242 {
243 if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
244 {
245 hDlginst=lpChFont->hInstance;
246 if( !(hResInfo = FindResourceA(hDlginst, lpChFont->lpTemplateName,
247 (LPSTR)RT_DIALOG)))
248 {
250 return FALSE;
251 }
252 } else
253 {
254 hDlginst=COMDLG32_hInstance;
255 if (!(hResInfo = FindResourceW(hDlginst, L"CHOOSE_FONT", (LPWSTR)RT_DIALOG)))
256 {
258 return FALSE;
259 }
260 }
261 if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
262 !(template = LockResource( hDlgTmpl )))
263 {
265 return FALSE;
266 }
267 }
268 if (TRACE_ON(commdlg))
269 _dump_cf_flags(lpChFont->Flags);
270 if (lpChFont->Flags & CF_SELECTSCRIPT)
271 FIXME(": unimplemented flag (ignored)\n");
272
274 lpChFont->hwndOwner, FormatCharDlgProcA, (LPARAM)lpChFont );
275}
#define FIXME(fmt,...)
Definition: precomp.h:53
#define CDERR_LOADRESFAILURE
Definition: cderr.h:12
#define CDERR_FINDRESFAILURE
Definition: cderr.h:11
void COMDLG32_SetCommDlgExtendedError(DWORD err)
Definition: cdlg32.c:124
HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
#define CF_ENABLETEMPLATEHANDLE
Definition: commdlg.h:65
#define CF_SELECTSCRIPT
Definition: commdlg.h:84
#define CF_ENABLETEMPLATE
Definition: commdlg.h:64
#define FALSE
Definition: types.h:117
static INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: fontdlg.c:1195
static void _dump_cf_flags(DWORD cflags)
Definition: fontdlg.c:152
#define TRACE_ON(x)
Definition: compat.h:75
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
HRSRC WINAPI FindResourceA(HMODULE hModule, LPCSTR name, LPCSTR type)
Definition: res.c:155
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
#define L(x)
Definition: resources.c:13
LONG_PTR LPARAM
Definition: minwindef.h:175
CONST void * LPCVOID
Definition: minwindef.h:164
#define RT_DIALOG
Definition: pedump.c:367
INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define TRACE(s)
Definition: solgame.cpp:4
LPCSTR lpTemplateName
Definition: commdlg.h:270
HINSTANCE hInstance
Definition: commdlg.h:271
HWND hwndOwner
Definition: commdlg.h:262
DWORD Flags
Definition: commdlg.h:266
char * LPSTR
Definition: typedefs.h:51

Referenced by test_ChooseFontA().

◆ ChooseFontW()

BOOL WINAPI ChooseFontW ( LPCHOOSEFONTW  lpChFont)

Definition at line 175 of file fontdlg.c.

176{
177 LPCVOID template;
178 HRSRC hResInfo;
179 HINSTANCE hDlginst;
180 HGLOBAL hDlgTmpl;
181
182 TRACE("(%p)\n", lpChFont);
183
184 if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
185 {
186 template=lpChFont->hInstance;
187 } else
188 {
189 if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
190 {
191 hDlginst=lpChFont->hInstance;
192 if( !(hResInfo = FindResourceW(hDlginst, lpChFont->lpTemplateName,
193 (LPWSTR)RT_DIALOG)))
194 {
196 return FALSE;
197 }
198 } else
199 {
200 hDlginst=COMDLG32_hInstance;
201 if (!(hResInfo = FindResourceW(hDlginst, L"CHOOSE_FONT", (LPWSTR)RT_DIALOG)))
202 {
204 return FALSE;
205 }
206 }
207 if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
208 !(template = LockResource( hDlgTmpl )))
209 {
211 return FALSE;
212 }
213 }
214 if (TRACE_ON(commdlg))
215 _dump_cf_flags(lpChFont->Flags);
216
217 if (lpChFont->Flags & CF_SELECTSCRIPT)
218 FIXME(": unimplemented flag (ignored)\n");
219
221 lpChFont->hwndOwner, FormatCharDlgProcW, (LPARAM)lpChFont );
222}
static INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: fontdlg.c:1261
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
HINSTANCE hInstance
Definition: commdlg.h:289
DWORD Flags
Definition: commdlg.h:284
HWND hwndOwner
Definition: commdlg.h:280
LPCWSTR lpTemplateName
Definition: commdlg.h:288

Referenced by dialog_choose_font(), and OSK_ChooseFont().

◆ CommDlgExtendedError()

DWORD WINAPI CommDlgExtendedError ( void  )

Definition at line 144 of file cdlg32.c.

145{
148 else
149 return 0; /* we never set an error, so there isn't one */
150}
static DWORD COMDLG32_TlsIndex
Definition: cdlg32.c:48
LPVOID WINAPI TlsGetValue(IN DWORD Index)
Definition: thread.c:1298
uint32_t DWORD_PTR
Definition: typedefs.h:65
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:529

Referenced by CheckCommDlgError(), DoOpenFile(), DoSaveFile(), ExportFile(), MountFloppy(), test_arrange(), test_create_view_template(), test_create_view_window2(), test_DialogCancel(), test_extension_helper(), test_getfolderpath(), test_mru(), test_null_filename(), test_ok(), test_PageSetupDlgA(), test_PrintDlgA(), test_PrintDlgExW(), test_resizable2(), and test_resize().

◆ FindTextA()

HWND WINAPI FindTextA ( LPFINDREPLACEA  pfr)

Definition at line 463 of file finddlg.c.

465 {
467
468 TRACE("LPFINDREPLACE=%p\n", pfr);
469
471 return 0;
472
473 if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data))) == NULL)
474 return 0; /* Error has been set */
475
476 pdata->user_fr.fra = pfr;
477 pdata->fr = *pfr;
479}
LPVOID COMDLG32_AllocMem(int size) __WINE_ALLOC_SIZE(1)
Definition: cdlg32.c:105
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:386
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:324
static PROTOCOLDATA * pdata
Definition: protocol.c:163

◆ FindTextW()

HWND WINAPI FindTextW ( LPFINDREPLACEW  pfr)

Definition at line 514 of file finddlg.c.

516 {
518 DWORD len;
519
520 TRACE("LPFINDREPLACE=%p\n", pfr);
521
523 return 0;
524
526 NULL, 0, NULL, NULL );
527 if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data) + len)) == NULL)
528 return 0; /* Error has been set */
529
530 pdata->user_fr.frw = pfr;
531 pdata->fr = *(LPFINDREPLACEA)pfr; /* FINDREPLACEx have same size */
532 pdata->fr.Flags |= FR_WINE_UNICODE;
533 pdata->fr.lpstrFindWhat = (LPSTR)(pdata + 1); /* Set string pointer */
535 pdata->fr.lpstrFindWhat, len, NULL, NULL );
537}
#define FR_WINE_UNICODE
Definition: cdlg.h:40
struct FINDREPLACEA * LPFINDREPLACEA
#define WideCharToMultiByte
Definition: compat.h:111
unsigned long DWORD
Definition: ntddk_ex.h:95
LPSTR lpstrFindWhat
Definition: commdlg.h:307
WORD wFindWhatLen
Definition: commdlg.h:309

Referenced by dialog_find().

◆ GetFileTitleA()

short WINAPI GetFileTitleA ( LPCSTR  lpFile,
LPSTR  lpTitle,
WORD  cbBuf 
)

Definition at line 4850 of file filedlg.c.

4851{
4852 int ret;
4853 UNICODE_STRING strWFile;
4854 LPWSTR lpWTitle;
4855
4856 RtlCreateUnicodeStringFromAsciiz(&strWFile, lpFile);
4857 lpWTitle = heap_alloc(cbBuf * sizeof(WCHAR));
4858 ret = GetFileTitleW(strWFile.Buffer, lpWTitle, cbBuf);
4859 if (!ret) WideCharToMultiByte( CP_ACP, 0, lpWTitle, -1, lpTitle, cbBuf, NULL, NULL );
4860 RtlFreeUnicodeString( &strWFile );
4861 heap_free( lpWTitle );
4862 return ret;
4863}
TCHAR lpTitle[80]
Definition: ctm.c:69
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf)
Definition: filedlg.c:4880
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)

◆ GetFileTitleW()

short WINAPI GetFileTitleW ( LPCWSTR  lpFile,
LPWSTR  lpTitle,
WORD  cbBuf 
)

Definition at line 4880 of file filedlg.c.

4881{
4882 int i, len;
4883 TRACE("(%p %p %d);\n", lpFile, lpTitle, cbBuf);
4884
4885 if(lpFile == NULL || lpTitle == NULL)
4886 return -1;
4887
4888 len = lstrlenW(lpFile);
4889
4890 if (len == 0)
4891 return -1;
4892
4893 if(wcspbrk(lpFile, L"*[]"))
4894 return -1;
4895
4896 len--;
4897
4898 if(lpFile[len] == '/' || lpFile[len] == '\\' || lpFile[len] == ':')
4899 return -1;
4900
4901 for(i = len; i >= 0; i--)
4902 {
4903 if (lpFile[i] == '/' || lpFile[i] == '\\' || lpFile[i] == ':')
4904 {
4905 i++;
4906 break;
4907 }
4908 }
4909
4910 if(i == -1)
4911 i++;
4912
4913 TRACE("---> %s\n", debugstr_w(&lpFile[i]));
4914
4915 len = lstrlenW(lpFile+i)+1;
4916 if(cbBuf < len)
4917 return len;
4918
4919 lstrcpyW(lpTitle, &lpFile[i]);
4920 return 0;
4921}
#define lstrcpyW
Definition: compat.h:749
#define lstrlenW
Definition: compat.h:750
_ACRTIMP wchar_t *__cdecl wcspbrk(const wchar_t *, const wchar_t *)
Definition: wcs.c:2021
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define debugstr_w
Definition: kernel32.h:32

Referenced by GetFileTitleA(), and QueryFileDescription().

◆ GetOpenFileNameA()

BOOL WINAPI GetOpenFileNameA ( LPOPENFILENAMEA  )

◆ GetOpenFileNameW()

BOOL WINAPI GetOpenFileNameW ( LPOPENFILENAMEW  )

◆ GetSaveFileNameA()

BOOL WINAPI GetSaveFileNameA ( LPOPENFILENAMEA  )

◆ GetSaveFileNameW()

BOOL WINAPI GetSaveFileNameW ( LPOPENFILENAMEW  ofn)

Definition at line 4825 of file filedlg.c.

4827{
4829 {
4831 return FALSE;
4832 }
4833
4834 if (is_win16_looks(ofn->Flags))
4836 else
4837 {
4839
4842 }
4843}
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
BOOL GetFileName31W(OPENFILENAMEW *lpofn, UINT dlgType)
Definition: filedlg31.c:1170
#define SAVE_DIALOG
Definition: commdlg.h:12
static BOOL valid_struct_size(DWORD size)
Definition: filedlg.c:4701
static BOOL GetFileDialog95(FileOpenDlgInfos *info, UINT dlg_type)
Definition: filedlg.c:640
static void init_filedlg_infoW(OPENFILENAMEW *ofn, FileOpenDlgInfos *info)
Definition: filedlg.c:523
static BOOL is_win16_looks(DWORD flags)
Definition: filedlg.c:4707
OPENFILENAME ofn
Definition: sndrec32.cpp:56
DWORD Flags
Definition: commdlg.h:342
DWORD lStructSize
Definition: commdlg.h:329

Referenced by BtrfsSend::Browse(), ClearEvents(), dialog_print_to_file(), DialogSaveFile(), DoSaveAs(), DoSaveFile(), export_file_dlg_proc(), GetSaveFileNameWrapW(), MainWnd_OnExport(), CMainWnd::OnFileSaveAs(), Preview_pSaveImageAs(), SaveClipboardToFile(), SaveEventLog(), and test_DialogCancel().

◆ PageSetupDlgA()

BOOL WINAPI PageSetupDlgA ( LPPAGESETUPDLGA  setupdlg)

Definition at line 3975 of file printdlg.c.

3976{
3978
3979 data.unicode = FALSE;
3980 data.u.dlga = setupdlg;
3981
3982 return pagesetup_common(&data);
3983}
static BOOL pagesetup_common(pagesetup_data *data)
Definition: printdlg.c:3894
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

Referenced by test_PageSetupDlgA().

◆ PageSetupDlgW()

BOOL WINAPI PageSetupDlgW ( LPPAGESETUPDLGW  setupdlg)

Definition at line 3990 of file printdlg.c.

3991{
3993
3994 data.unicode = TRUE;
3995 data.u.dlgw = setupdlg;
3996
3997 return pagesetup_common(&data);
3998}
#define TRUE
Definition: types.h:120

Referenced by dialog_printsetup(), and PageSetupDlgWrapW().

◆ PrintDlgA()

BOOL WINAPI PrintDlgA ( LPPRINTDLGA  lppd)

Definition at line 2310 of file printdlg.c.

2311{
2312 BOOL bRet = FALSE;
2313 LPVOID ptr;
2315
2316 if (!lppd)
2317 {
2319 return FALSE;
2320 }
2321
2322 if(TRACE_ON(commdlg)) {
2323 char flagstr[1000] = "";
2324 const struct pd_flags *pflag = pd_flags;
2325 for( ; pflag->name; pflag++) {
2326 if(lppd->Flags & pflag->flag)
2327 strcat(flagstr, pflag->name);
2328 }
2329 TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2330 "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2331 "flags %08lx (%s)\n",
2332 lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2333 lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2334 lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2335 }
2336
2337 if(lppd->lStructSize != sizeof(PRINTDLGA)) {
2338 WARN("structure size failure!!!\n");
2340 return FALSE;
2341 }
2342
2343 if(lppd->Flags & PD_RETURNDEFAULT) {
2345 DRIVER_INFO_3A *dbuf;
2346 HANDLE hprn;
2347 DWORD needed;
2348
2349 if(lppd->hDevMode || lppd->hDevNames) {
2350 WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2352 return FALSE;
2353 }
2354 if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2355 WARN("Can't find default printer\n");
2357 return FALSE;
2358 }
2359
2360 GetPrinterA(hprn, 2, NULL, 0, &needed);
2361 pbuf = malloc(needed);
2362 GetPrinterA(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2363
2364 GetPrinterDriverA(hprn, NULL, 3, NULL, 0, &needed);
2365 dbuf = malloc(needed);
2366 if (!GetPrinterDriverA(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2367 ERR("GetPrinterDriverA failed, le %ld, fix your config for printer %s!\n",
2368 GetLastError(),pbuf->pPrinterName);
2369 free(dbuf);
2370 free(pbuf);
2372 return FALSE;
2373 }
2374 ClosePrinter(hprn);
2375
2377 dbuf->pDriverPath,
2378 pbuf->pPrinterName,
2379 pbuf->pPortName);
2380 lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2381 pbuf->pDevMode->dmDriverExtra);
2382 ptr = GlobalLock(lppd->hDevMode);
2383 memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2384 pbuf->pDevMode->dmDriverExtra);
2385 GlobalUnlock(lppd->hDevMode);
2386 free(pbuf);
2387 free(dbuf);
2388 bRet = TRUE;
2389 } else {
2390 HGLOBAL hDlgTmpl;
2391 PRINT_PTRA *PrintStructures;
2392
2393 /* load Dialog resources,
2394 * depending on Flags indicates Print32 or Print32_setup dialog
2395 */
2396 hDlgTmpl = PRINTDLG_GetDlgTemplateA(lppd);
2397 if (!hDlgTmpl) {
2399 return FALSE;
2400 }
2401 ptr = LockResource( hDlgTmpl );
2402 if (!ptr) {
2404 return FALSE;
2405 }
2406
2407 PrintStructures = calloc(1, sizeof(PRINT_PTRA));
2408 PrintStructures->lpPrintDlg = lppd;
2409
2410 /* and create & process the dialog .
2411 * -1 is failure, 0 is broken hwnd, everything else is ok.
2412 */
2415 bRet = (0<DialogBoxIndirectParamA(hInst, ptr, lppd->hwndOwner,
2417 (LPARAM)PrintStructures));
2418
2419 if(bRet) {
2420 DEVMODEA *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2421 PRINTER_INFO_2A *pi = PrintStructures->lpPrinterInfo;
2422 DRIVER_INFO_3A *di = PrintStructures->lpDriverInfo;
2423
2424 if (lppd->hDevMode == 0) {
2425 TRACE(" No hDevMode yet... Need to create my own\n");
2427 lpdm->dmSize + lpdm->dmDriverExtra);
2428 } else {
2429 lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2430 lpdm->dmSize + lpdm->dmDriverExtra,
2432 }
2433 lpdmReturn = GlobalLock(lppd->hDevMode);
2434 memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2435
2437 di->pDriverPath,
2438 pi->pPrinterName,
2439 pi->pPortName
2440 );
2441 GlobalUnlock(lppd->hDevMode);
2442 }
2443 free(PrintStructures->lpDevMode);
2444 free(PrintStructures->lpPrinterInfo);
2445 free(PrintStructures->lpDriverInfo);
2446 free(PrintStructures);
2447 }
2448 if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2449 bRet = PRINTDLG_CreateDCA(lppd);
2450
2451 TRACE("exit! (%d)\n", bRet);
2452 return bRet;
2453}
#define WARN(fmt,...)
Definition: precomp.h:61
#define ERR(fmt,...)
Definition: precomp.h:57
#define PDERR_RETDEFFAILURE
Definition: cderr.h:21
#define PDERR_NODEFAULTPRN
Definition: cderr.h:26
#define CDERR_INITIALIZATION
Definition: cderr.h:7
#define PD_ENABLESETUPTEMPLATE
Definition: commdlg.h:162
#define PD_RETURNIC
Definition: commdlg.h:156
#define PD_RETURNDC
Definition: commdlg.h:155
#define PD_RETURNDEFAULT
Definition: commdlg.h:157
#define PD_ENABLEPRINTTEMPLATE
Definition: commdlg.h:161
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
static BOOL PRINTDLG_CreateDevNames(HGLOBAL *hmem, const char *DeviceDriverName, const char *DeviceName, const char *OutputPort)
Definition: printdlg.c:457
static BOOL PRINTDLG_CreateDCA(LPPRINTDLGA lppd)
Definition: printdlg.c:2249
static INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: printdlg.c:2078
static BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
Definition: printdlg.c:349
static HGLOBAL PRINTDLG_GetDlgTemplateA(const PRINTDLGA *lppd)
Definition: printdlg.c:2178
HINSTANCE hInst
Definition: dxdiag.c:13
HGLOBAL NTAPI GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:825
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:368
static ERESOURCE GlobalLock
Definition: sys_arch.c:8
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static PVOID ptr
Definition: dispmode.c:27
static PROCESS_INFORMATION pi
Definition: debugger.c:2303
#define calloc
Definition: rosglue.h:14
strcat
Definition: string.h:92
LPDEVMODEA lpDevMode
Definition: printdlg.c:59
LPDRIVER_INFO_3A lpDriverInfo
Definition: printdlg.c:62
LPPRINTER_INFO_2A lpPrinterInfo
Definition: printdlg.c:61
LPPRINTDLGA lpPrintDlg
Definition: printdlg.c:60
LPSTR pDriverPath
Definition: winspool.h:406
WORD dmDriverExtra
Definition: wingdi.h:2015
WORD dmSize
Definition: wingdi.h:2014
Definition: pbuf.h:186
DWORD flag
Definition: printdlg.c:88
LPCSTR name
Definition: printdlg.c:89
WORD nMaxPage
Definition: commdlg.h:474
DWORD Flags
Definition: commdlg.h:470
HINSTANCE hInstance
Definition: commdlg.h:476
WORD nCopies
Definition: commdlg.h:475
WORD nFromPage
Definition: commdlg.h:471
HGLOBAL hDevMode
Definition: commdlg.h:467
WORD nToPage
Definition: commdlg.h:472
WORD nMinPage
Definition: commdlg.h:473
HGLOBAL hDevNames
Definition: commdlg.h:468
HWND hwndOwner
Definition: commdlg.h:466
DWORD lStructSize
Definition: commdlg.h:465
unsigned char * LPBYTE
Definition: typedefs.h:53
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
#define GMEM_MOVEABLE
Definition: winbase.h:318
WINBOOL WINAPI GetPrinterDriverA(HANDLE hPrinter, LPSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
WINBOOL WINAPI GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:2062
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition: printers.c:176

Referenced by PrintDlgExA(), test_abort_proc(), test_DialogCancel(), test_PrintDlgA(), and test_PrintDlgExW().

◆ PrintDlgW()

BOOL WINAPI PrintDlgW ( LPPRINTDLGW  lppd)

Definition at line 2460 of file printdlg.c.

2461{
2462 BOOL bRet = FALSE;
2463 LPVOID ptr;
2465
2466 if (!lppd)
2467 {
2469 return FALSE;
2470 }
2471
2472 if(TRACE_ON(commdlg)) {
2473 char flagstr[1000] = "";
2474 const struct pd_flags *pflag = pd_flags;
2475 for( ; pflag->name; pflag++) {
2476 if(lppd->Flags & pflag->flag)
2477 strcat(flagstr, pflag->name);
2478 }
2479 TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2480 "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2481 "flags %08lx (%s)\n",
2482 lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2483 lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2484 lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2485 }
2486
2487 if(lppd->lStructSize != sizeof(PRINTDLGW)) {
2488 WARN("structure size failure!!!\n");
2490 return FALSE;
2491 }
2492
2493 if(lppd->Flags & PD_RETURNDEFAULT) {
2495 DRIVER_INFO_3W *dbuf;
2496 HANDLE hprn;
2497 DWORD needed;
2498
2499 if(lppd->hDevMode || lppd->hDevNames) {
2500 WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2502 return FALSE;
2503 }
2504 if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2505 WARN("Can't find default printer\n");
2507 return FALSE;
2508 }
2509
2510 GetPrinterW(hprn, 2, NULL, 0, &needed);
2511 pbuf = malloc(needed);
2512 GetPrinterW(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2513
2514 GetPrinterDriverW(hprn, NULL, 3, NULL, 0, &needed);
2515 dbuf = malloc(needed);
2516 if (!GetPrinterDriverW(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2517 ERR("GetPrinterDriverA failed, le %ld, fix your config for printer %s!\n",
2518 GetLastError(),debugstr_w(pbuf->pPrinterName));
2519 free(dbuf);
2520 free(pbuf);
2522 return FALSE;
2523 }
2524 ClosePrinter(hprn);
2525
2527 dbuf->pDriverPath,
2528 pbuf->pPrinterName,
2529 pbuf->pPortName);
2530 lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2531 pbuf->pDevMode->dmDriverExtra);
2532 ptr = GlobalLock(lppd->hDevMode);
2533 memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2534 pbuf->pDevMode->dmDriverExtra);
2535 GlobalUnlock(lppd->hDevMode);
2536 free(pbuf);
2537 free(dbuf);
2538 bRet = TRUE;
2539 } else {
2540 HGLOBAL hDlgTmpl;
2541 PRINT_PTRW *PrintStructures;
2542
2543 /* load Dialog resources,
2544 * depending on Flags indicates Print32 or Print32_setup dialog
2545 */
2546 hDlgTmpl = PRINTDLG_GetDlgTemplateW(lppd);
2547 if (!hDlgTmpl) {
2549 return FALSE;
2550 }
2551 ptr = LockResource( hDlgTmpl );
2552 if (!ptr) {
2554 return FALSE;
2555 }
2556
2557 PrintStructures = calloc(1, sizeof(PRINT_PTRW));
2558 PrintStructures->lpPrintDlg = lppd;
2559
2560 /* and create & process the dialog .
2561 * -1 is failure, 0 is broken hwnd, everything else is ok.
2562 */
2565 bRet = (0<DialogBoxIndirectParamW(hInst, ptr, lppd->hwndOwner,
2567 (LPARAM)PrintStructures));
2568
2569 if(bRet) {
2570 DEVMODEW *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2571 PRINTER_INFO_2W *pi = PrintStructures->lpPrinterInfo;
2572 DRIVER_INFO_3W *di = PrintStructures->lpDriverInfo;
2573
2574 if (lppd->hDevMode == 0) {
2575 TRACE(" No hDevMode yet... Need to create my own\n");
2577 lpdm->dmSize + lpdm->dmDriverExtra);
2578 } else {
2579 WORD locks;
2580 if((locks = (GlobalFlags(lppd->hDevMode) & GMEM_LOCKCOUNT))) {
2581 WARN("hDevMode has %d locks on it. Unlocking it now\n", locks);
2582 while(locks--) {
2583 GlobalUnlock(lppd->hDevMode);
2584 TRACE("Now got %d locks\n", locks);
2585 }
2586 }
2587 lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2588 lpdm->dmSize + lpdm->dmDriverExtra,
2590 }
2591 lpdmReturn = GlobalLock(lppd->hDevMode);
2592 memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2593
2594 if (lppd->hDevNames != 0) {
2595 WORD locks;
2596 if((locks = (GlobalFlags(lppd->hDevNames) & GMEM_LOCKCOUNT))) {
2597 WARN("hDevNames has %d locks on it. Unlocking it now\n", locks);
2598 while(locks--)
2599 GlobalUnlock(lppd->hDevNames);
2600 }
2601 }
2603 di->pDriverPath,
2604 pi->pPrinterName,
2605 pi->pPortName
2606 );
2607 GlobalUnlock(lppd->hDevMode);
2608 }
2609 free(PrintStructures->lpDevMode);
2610 free(PrintStructures->lpPrinterInfo);
2611 free(PrintStructures->lpDriverInfo);
2612 free(PrintStructures);
2613 }
2614 if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2615 bRet = PRINTDLG_CreateDCW(lppd);
2616
2617 TRACE("exit! (%d)\n", bRet);
2618 return bRet;
2619}
static INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: printdlg.c:2127
static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
Definition: printdlg.c:2270
static BOOL PRINTDLG_CreateDevNamesW(HGLOBAL *hmem, LPCWSTR DeviceDriverName, LPCWSTR DeviceName, LPCWSTR OutputPort)
Definition: printdlg.c:511
static HGLOBAL PRINTDLG_GetDlgTemplateW(const PRINTDLGW *lppd)
Definition: printdlg.c:2212
unsigned short WORD
Definition: ntddk_ex.h:93
UINT NTAPI GlobalFlags(HGLOBAL hMem)
Definition: heapmem.c:520
LPDEVMODEW lpDevMode
Definition: printdlg.c:73
LPPRINTER_INFO_2W lpPrinterInfo
Definition: printdlg.c:75
LPPRINTDLGW lpPrintDlg
Definition: printdlg.c:74
LPDRIVER_INFO_3W lpDriverInfo
Definition: printdlg.c:76
LPWSTR pDriverPath
Definition: winspool.h:419
WORD dmDriverExtra
Definition: wingdi.h:2067
WORD dmSize
Definition: wingdi.h:2066
HGLOBAL hDevMode
Definition: commdlg.h:488
DWORD Flags
Definition: commdlg.h:491
HWND hwndOwner
Definition: commdlg.h:487
HINSTANCE hInstance
Definition: commdlg.h:497
WORD nToPage
Definition: commdlg.h:493
HGLOBAL hDevNames
Definition: commdlg.h:489
WORD nMaxPage
Definition: commdlg.h:495
WORD nMinPage
Definition: commdlg.h:494
DWORD lStructSize
Definition: commdlg.h:486
WORD nCopies
Definition: commdlg.h:496
WORD nFromPage
Definition: commdlg.h:492
#define GMEM_LOCKCOUNT
Definition: winbase.h:333
WINBOOL WINAPI GetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:2533
WINBOOL WINAPI GetPrinterDriverW(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)

Referenced by dialog_print(), get_default_printer_opts(), MACRO_Print(), pagesetup_change_printer_dialog(), PrintDlgExW(), and PrintDlgWrapW().

◆ ReplaceTextA()

HWND WINAPI ReplaceTextA ( LPFINDREPLACEA  pfr)

Definition at line 486 of file finddlg.c.

488 {
490
491 TRACE("LPFINDREPLACE=%p\n", pfr);
492
494 return 0;
495
496 if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data))) == NULL)
497 return 0; /* Error has been set */
498
499 pdata->user_fr.fra = pfr;
500 pdata->fr = *pfr;
501 pdata->fr.Flags |= FR_WINE_REPLACE;
503}
#define FR_WINE_REPLACE
Definition: cdlg.h:41

◆ ReplaceTextW()

HWND WINAPI ReplaceTextW ( LPFINDREPLACEW  pfr)

Definition at line 548 of file finddlg.c.

550 {
552 DWORD len1, len2;
553
554 TRACE("LPFINDREPLACE=%p\n", pfr);
555
557 return 0;
558
560 NULL, 0, NULL, NULL );
562 NULL, 0, NULL, NULL );
563 if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data) + len1 + len2)) == NULL)
564 return 0; /* Error has been set */
565
566 pdata->user_fr.frw = pfr;
567 pdata->fr = *(LPFINDREPLACEA)pfr; /* FINDREPLACEx have same size */
569 pdata->fr.lpstrFindWhat = (LPSTR)(pdata + 1); /* Set string pointer */
570 pdata->fr.lpstrReplaceWith = pdata->fr.lpstrFindWhat + len1;
571
573 pdata->fr.lpstrFindWhat, len1, NULL, NULL );
575 pdata->fr.lpstrReplaceWith, len2, NULL, NULL );
577}
LPSTR lpstrReplaceWith
Definition: commdlg.h:308
WORD wReplaceWithLen
Definition: commdlg.h:310

Referenced by dialog_find().