ReactOS  0.4.14-dev-49-gfb4591c
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 tagCHOOSECOLORALPCHOOSECOLORA
 
typedef struct tagCHOOSECOLORW CHOOSECOLORW
 
typedef struct tagCHOOSECOLORWLPCHOOSECOLORW
 
typedef struct tagCHOOSEFONTA CHOOSEFONTA
 
typedef struct tagCHOOSEFONTALPCHOOSEFONTA
 
typedef struct tagCHOOSEFONTW CHOOSEFONTW
 
typedef struct tagCHOOSEFONTWLPCHOOSEFONTW
 
typedef struct tagDEVNAMES DEVNAMES
 
typedef struct tagDEVNAMESLPDEVNAMES
 
typedef struct FINDREPLACEALPFINDREPLACEA
 
typedef struct FINDREPLACEWLPFINDREPLACEW
 
typedef struct tagOFNA OPENFILENAMEA
 
typedef struct tagOFNALPOPENFILENAMEA
 
typedef struct tagOFNW OPENFILENAMEW
 
typedef struct tagOFNWLPOPENFILENAMEW
 
typedef struct _OFNOTIFYA OFNOTIFYA
 
typedef struct _OFNOTIFYALPOFNOTIFYA
 
typedef struct _OFNOTIFYW OFNOTIFYW
 
typedef struct _OFNOTIFYWLPOFNOTIFYW
 
typedef struct _OFNOTIFYEXA OFNOTIFYEXA
 
typedef struct _OFNOTIFYEXALPOFNOTIFYEXA
 
typedef struct _OFNOTIFYEXW OFNOTIFYEXW
 
typedef struct _OFNOTIFYEXWLPOFNOTIFYEXW
 
typedef struct tagPSDA PAGESETUPDLGA
 
typedef struct tagPSDALPPAGESETUPDLGA
 
typedef struct tagPSDW PAGESETUPDLGW
 
typedef struct tagPSDWLPPAGESETUPDLGW
 
typedef struct tagPDA PRINTDLGA
 
typedef struct tagPDALPPRINTDLGA
 
typedef struct tagPDW PRINTDLGW
 
typedef struct tagPDWLPPRINTDLGW
 
typedef CHOOSECOLORA CHOOSECOLOR
 
typedef CHOOSECOLORALPCHOOSECOLOR
 
typedef CHOOSEFONTA CHOOSEFONT
 
typedef CHOOSEFONTALPCHOOSEFONT
 
typedef FINDREPLACEA FINDREPLACE
 
typedef FINDREPLACEALPFINDREPLACE
 
typedef OPENFILENAMEA OPENFILENAME
 
typedef OPENFILENAMEALPOPENFILENAME
 
typedef OFNOTIFYA OFNOTIFY
 
typedef OFNOTIFYALPOFNOTIFY
 
typedef PAGESETUPDLGA PAGESETUPDLG
 
typedef PAGESETUPDLGALPPAGESETUPDLG
 
typedef PRINTDLGA PRINTDLG
 
typedef PRINTDLGALPPRINTDLG
 

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  )

Definition at line 1325 of file colordlg.c.

1327 {
1328  LPWSTR template_name = NULL;
1329  BOOL ret;
1330 
1331  CHOOSECOLORW *lpcc = heap_alloc_zero(sizeof(*lpcc));
1332  lpcc->lStructSize = sizeof(*lpcc);
1333  lpcc->hwndOwner = lpChCol->hwndOwner;
1334  lpcc->hInstance = lpChCol->hInstance;
1335  lpcc->rgbResult = lpChCol->rgbResult;
1336  lpcc->lpCustColors = lpChCol->lpCustColors;
1337  lpcc->Flags = lpChCol->Flags;
1338  lpcc->lCustData = lpChCol->lCustData;
1339  lpcc->lpfnHook = lpChCol->lpfnHook;
1340  if ((lpcc->Flags & CC_ENABLETEMPLATE) && (lpChCol->lpTemplateName)) {
1341  if (!IS_INTRESOURCE(lpChCol->lpTemplateName)) {
1342  INT len = MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, NULL, 0);
1343  template_name = heap_alloc( len * sizeof(WCHAR) );
1344  MultiByteToWideChar( CP_ACP, 0, lpChCol->lpTemplateName, -1, template_name, len );
1345  lpcc->lpTemplateName = template_name;
1346  } else {
1347  lpcc->lpTemplateName = (LPCWSTR)lpChCol->lpTemplateName;
1348  }
1349  }
1350 
1351  ret = ChooseColorW(lpcc);
1352 
1353  if (ret)
1354  lpChCol->rgbResult = lpcc->rgbResult;
1355 
1356  heap_free(template_name);
1357  heap_free(lpcc);
1358  return ret;
1359 }
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL WINAPI ChooseColorW(CHOOSECOLORW *lpChCol)
Definition: colordlg.c:1264
#define CP_ACP
Definition: compat.h:99
COLORREF * lpCustColors
Definition: commdlg.h:254
HWND hInstance
Definition: commdlg.h:252
DWORD lStructSize
Definition: commdlg.h:250
int32_t INT
Definition: typedefs.h:56
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define CC_ENABLETEMPLATE
Definition: commdlg.h:55
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
LPCWSTR lpTemplateName
Definition: commdlg.h:258
#define IS_INTRESOURCE(i)
Definition: winuser.h:580
__wchar_t WCHAR
Definition: xmlstorage.h:180
HWND hwndOwner
Definition: commdlg.h:251
int ret
GLenum GLsizei len
Definition: glext.h:6722
COLORREF rgbResult
Definition: commdlg.h:253
LPCCHOOKPROC lpfnHook
Definition: commdlg.h:257
#define MultiByteToWideChar
Definition: compat.h:100
LPARAM lCustData
Definition: commdlg.h:256
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ ChooseColorW()

BOOL WINAPI ChooseColorW ( LPCHOOSECOLORW  )

◆ ChooseFontA()

BOOL WINAPI ChooseFontA ( LPCHOOSEFONTA  )

Definition at line 239 of file fontdlg.c.

240 {
241  LPCVOID template;
242  HRSRC hResInfo;
243  HINSTANCE hDlginst;
244  HGLOBAL hDlgTmpl;
245 
246  TRACE("(%p)\n", lpChFont);
247 
248  if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
249  {
250  template=lpChFont->hInstance;
251  } else
252  {
253  if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
254  {
255  hDlginst=lpChFont->hInstance;
256  if( !(hResInfo = FindResourceA(hDlginst, lpChFont->lpTemplateName,
257  (LPSTR)RT_DIALOG)))
258  {
260  return FALSE;
261  }
262  } else
263  {
264  hDlginst=COMDLG32_hInstance;
265  if (!(hResInfo = FindResourceW(hDlginst, chooseFontW, (LPWSTR)RT_DIALOG)))
266  {
268  return FALSE;
269  }
270  }
271  if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
272  !(template = LockResource( hDlgTmpl )))
273  {
275  return FALSE;
276  }
277  }
278  if (TRACE_ON(commdlg))
279  _dump_cf_flags(lpChFont->Flags);
280  if (lpChFont->Flags & CF_SELECTSCRIPT)
281  FIXME(": unimplemented flag (ignored)\n");
282 
284  lpChFont->hwndOwner, FormatCharDlgProcA, (LPARAM)lpChFont );
285 }
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
#define CDERR_LOADRESFAILURE
Definition: cderr.h:12
HRSRC WINAPI FindResourceA(HMODULE hModule, LPCSTR name, LPCSTR type)
Definition: res.c:155
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
char * LPSTR
Definition: xmlstorage.h:182
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
#define CF_ENABLETEMPLATEHANDLE
Definition: commdlg.h:65
#define CDERR_FINDRESFAILURE
Definition: cderr.h:11
#define FIXME(fmt,...)
Definition: debug.h:110
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
LONG_PTR LPARAM
Definition: windef.h:208
#define RT_DIALOG
Definition: pedump.c:367
#define TRACE(s)
Definition: solgame.cpp:4
static void _dump_cf_flags(DWORD cflags)
Definition: fontdlg.c:162
INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
static const WCHAR chooseFontW[]
Definition: fontdlg.c:54
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:119
#define CF_SELECTSCRIPT
Definition: commdlg.h:84
CONST void * LPCVOID
Definition: windef.h:191
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define CF_ENABLETEMPLATE
Definition: commdlg.h:64
#define TRACE_ON(x)
Definition: compat.h:65
static INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: fontdlg.c:1204

Referenced by test_ChooseFontA().

◆ ChooseFontW()

BOOL WINAPI ChooseFontW ( LPCHOOSEFONTW  )

Definition at line 185 of file fontdlg.c.

186 {
187  LPCVOID template;
188  HRSRC hResInfo;
189  HINSTANCE hDlginst;
190  HGLOBAL hDlgTmpl;
191 
192  TRACE("(%p)\n", lpChFont);
193 
194  if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
195  {
196  template=lpChFont->hInstance;
197  } else
198  {
199  if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
200  {
201  hDlginst=lpChFont->hInstance;
202  if( !(hResInfo = FindResourceW(hDlginst, lpChFont->lpTemplateName,
203  (LPWSTR)RT_DIALOG)))
204  {
206  return FALSE;
207  }
208  } else
209  {
210  hDlginst=COMDLG32_hInstance;
211  if (!(hResInfo = FindResourceW(hDlginst, chooseFontW, (LPWSTR)RT_DIALOG)))
212  {
214  return FALSE;
215  }
216  }
217  if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
218  !(template = LockResource( hDlgTmpl )))
219  {
221  return FALSE;
222  }
223  }
224  if (TRACE_ON(commdlg))
225  _dump_cf_flags(lpChFont->Flags);
226 
227  if (lpChFont->Flags & CF_SELECTSCRIPT)
228  FIXME(": unimplemented flag (ignored)\n");
229 
231  lpChFont->hwndOwner, FormatCharDlgProcW, (LPARAM)lpChFont );
232 }
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
#define CDERR_LOADRESFAILURE
Definition: cderr.h:12
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
Definition: res.c:176
#define CF_ENABLETEMPLATEHANDLE
Definition: commdlg.h:65
#define CDERR_FINDRESFAILURE
Definition: cderr.h:11
#define FIXME(fmt,...)
Definition: debug.h:110
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
Definition: res.c:532
LONG_PTR LPARAM
Definition: windef.h:208
#define RT_DIALOG
Definition: pedump.c:367
#define TRACE(s)
Definition: solgame.cpp:4
static void _dump_cf_flags(DWORD cflags)
Definition: fontdlg.c:162
static const WCHAR chooseFontW[]
Definition: fontdlg.c:54
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:119
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define CF_SELECTSCRIPT
Definition: commdlg.h:84
CONST void * LPCVOID
Definition: windef.h:191
static INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: fontdlg.c:1270
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define CF_ENABLETEMPLATE
Definition: commdlg.h:64
#define TRACE_ON(x)
Definition: compat.h:65

Referenced by choose_font(), and dialog_choose_font().

◆ CommDlgExtendedError()

DWORD WINAPI CommDlgExtendedError ( void  )

Definition at line 139 of file cdlg32.c.

140 {
143  else
144  return 0; /* we never set an error, so there isn't one */
145 }
static DWORD COMDLG32_TlsIndex
Definition: cdlg32.c:44
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:530
uint32_t DWORD_PTR
Definition: typedefs.h:63
LPVOID WINAPI TlsGetValue(IN DWORD Index)
Definition: thread.c:1228

Referenced by CheckCommDlgError(), choose_font(), 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  )

Definition at line 441 of file finddlg.c.

443  {
445 
446  TRACE("LPFINDREPLACE=%p\n", pfr);
447 
449  return 0;
450 
451  if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data))) == NULL)
452  return 0; /* Error has been set */
453 
454  pdata->user_fr.fra = pfr;
455  pdata->fr = *pfr;
457 }
LPVOID COMDLG32_AllocMem(int size) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
Definition: cdlg32.c:100
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
smooth NULL
Definition: ftsmooth.c:416
static PROTOCOLDATA * pdata
Definition: protocol.c:157
#define TRACE(s)
Definition: solgame.cpp:4
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302

◆ FindTextW()

HWND WINAPI FindTextW ( LPFINDREPLACEW  )

Definition at line 492 of file finddlg.c.

494  {
496  DWORD len;
497 
498  TRACE("LPFINDREPLACE=%p\n", pfr);
499 
501  return 0;
502 
504  NULL, 0, NULL, NULL );
505  if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data) + len)) == NULL)
506  return 0; /* Error has been set */
507 
508  pdata->user_fr.frw = pfr;
509  pdata->fr = *(LPFINDREPLACEA)pfr; /* FINDREPLACEx have same size */
510  pdata->fr.Flags |= FR_WINE_UNICODE;
511  pdata->fr.lpstrFindWhat = (LPSTR)(pdata + 1); /* Set string pointer */
513  pdata->fr.lpstrFindWhat, len, NULL, NULL );
515 }
LPVOID COMDLG32_AllocMem(int size) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
Definition: cdlg32.c:100
#define WideCharToMultiByte
Definition: compat.h:101
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define CP_ACP
Definition: compat.h:99
LPSTR lpstrFindWhat
Definition: commdlg.h:307
WORD wFindWhatLen
Definition: commdlg.h:309
char * LPSTR
Definition: xmlstorage.h:182
#define FR_WINE_UNICODE
Definition: cdlg.h:36
smooth NULL
Definition: ftsmooth.c:416
static PROTOCOLDATA * pdata
Definition: protocol.c:157
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long DWORD
Definition: ntddk_ex.h:95
GLenum GLsizei len
Definition: glext.h:6722
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302
struct FINDREPLACEA * LPFINDREPLACEA

Referenced by dialog_find().

◆ GetFileTitleA()

short WINAPI GetFileTitleA ( LPCSTR  ,
LPSTR  ,
WORD   
)

Definition at line 4654 of file filedlg.c.

4655 {
4656  int ret;
4657  UNICODE_STRING strWFile;
4658  LPWSTR lpWTitle;
4659 
4660  RtlCreateUnicodeStringFromAsciiz(&strWFile, lpFile);
4661  lpWTitle = heap_alloc(cbBuf * sizeof(WCHAR));
4662  ret = GetFileTitleW(strWFile.Buffer, lpWTitle, cbBuf);
4663  if (!ret) WideCharToMultiByte( CP_ACP, 0, lpWTitle, -1, lpTitle, cbBuf, NULL, NULL );
4664  RtlFreeUnicodeString( &strWFile );
4665  heap_free( lpWTitle );
4666  return ret;
4667 }
#define WideCharToMultiByte
Definition: compat.h:101
#define CP_ACP
Definition: compat.h:99
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf)
Definition: filedlg.c:4684
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
smooth NULL
Definition: ftsmooth.c:416
NTSYSAPI BOOLEAN NTAPI RtlCreateUnicodeStringFromAsciiz(_Out_ PUNICODE_STRING Destination, _In_ PCSZ Source)
__wchar_t WCHAR
Definition: xmlstorage.h:180
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
int ret
TCHAR lpTitle[80]
Definition: ctm.c:69
WCHAR * LPWSTR
Definition: xmlstorage.h:184
static BOOL heap_free(void *mem)
Definition: appwiz.h:75

◆ GetFileTitleW()

short WINAPI GetFileTitleW ( LPCWSTR  ,
LPWSTR  ,
WORD   
)

Definition at line 4684 of file filedlg.c.

4685 {
4686  int i, len;
4687  static const WCHAR brkpoint[] = {'*','[',']',0};
4688  TRACE("(%p %p %d);\n", lpFile, lpTitle, cbBuf);
4689 
4690  if(lpFile == NULL || lpTitle == NULL)
4691  return -1;
4692 
4693  len = lstrlenW(lpFile);
4694 
4695  if (len == 0)
4696  return -1;
4697 
4698  if(strpbrkW(lpFile, brkpoint))
4699  return -1;
4700 
4701  len--;
4702 
4703  if(lpFile[len] == '/' || lpFile[len] == '\\' || lpFile[len] == ':')
4704  return -1;
4705 
4706  for(i = len; i >= 0; i--)
4707  {
4708  if (lpFile[i] == '/' || lpFile[i] == '\\' || lpFile[i] == ':')
4709  {
4710  i++;
4711  break;
4712  }
4713  }
4714 
4715  if(i == -1)
4716  i++;
4717 
4718  TRACE("---> %s\n", debugstr_w(&lpFile[i]));
4719 
4720  len = lstrlenW(lpFile+i)+1;
4721  if(cbBuf < len)
4722  return len;
4723 
4724  lstrcpyW(lpTitle, &lpFile[i]);
4725  return 0;
4726 }
#define lstrlenW
Definition: compat.h:407
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
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
WINE_UNICODE_INLINE WCHAR * strpbrkW(const WCHAR *str, const WCHAR *accept)
Definition: unicode.h:261
GLenum GLsizei len
Definition: glext.h:6722
#define lstrcpyW
Definition: compat.h:406
TCHAR lpTitle[80]
Definition: ctm.c:69

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  )

Definition at line 4629 of file filedlg.c.

4631 {
4633  {
4635  return FALSE;
4636  }
4637 
4638  if (is_win16_looks(ofn->Flags))
4639  return GetFileName31W(ofn, SAVE_DIALOG);
4640  else
4641  {
4643 
4645  return GetFileDialog95(&info, SAVE_DIALOG);
4646  }
4647 }
static BOOL is_win16_looks(DWORD flags)
Definition: filedlg.c:4511
OPENFILENAME ofn
Definition: main.cpp:37
struct _test_info info[]
Definition: SetCursorPos.c:19
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
BOOL GetFileName31W(OPENFILENAMEW *lpofn, UINT dlgType) DECLSPEC_HIDDEN
Definition: filedlg31.c:1174
static BOOL GetFileDialog95(FileOpenDlgInfos *info, UINT dlg_type)
Definition: filedlg.c:563
DWORD lStructSize
Definition: commdlg.h:329
#define SAVE_DIALOG
Definition: commdlg.h:12
static BOOL valid_struct_size(DWORD size)
Definition: filedlg.c:4505
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:119
static void init_filedlg_infoW(OPENFILENAMEW *ofn, FileOpenDlgInfos *info)
Definition: filedlg.c:456
DWORD Flags
Definition: commdlg.h:342

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

◆ PageSetupDlgA()

BOOL WINAPI PageSetupDlgA ( LPPAGESETUPDLGA  )

Definition at line 3911 of file printdlg.c.

3912 {
3914 
3915  data.unicode = FALSE;
3916  data.u.dlga = setupdlg;
3917 
3918  return pagesetup_common(&data);
3919 }
static BOOL pagesetup_common(pagesetup_data *data)
Definition: printdlg.c:3830
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

Referenced by test_PageSetupDlgA().

◆ PageSetupDlgW()

BOOL WINAPI PageSetupDlgW ( LPPAGESETUPDLGW  )

Definition at line 3926 of file printdlg.c.

3927 {
3929 
3930  data.unicode = TRUE;
3931  data.u.dlgw = setupdlg;
3932 
3933  return pagesetup_common(&data);
3934 }
#define TRUE
Definition: types.h:120
static BOOL pagesetup_common(pagesetup_data *data)
Definition: printdlg.c:3830
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

Referenced by dialog_printsetup(), and PageSetupDlgWrapW().

◆ PrintDlgA()

BOOL WINAPI PrintDlgA ( LPPRINTDLGA  )

Definition at line 2240 of file printdlg.c.

2241 {
2242  BOOL bRet = FALSE;
2243  LPVOID ptr;
2244  HINSTANCE hInst;
2245 
2246  if (!lppd)
2247  {
2249  return FALSE;
2250  }
2251 
2252  if(TRACE_ON(commdlg)) {
2253  char flagstr[1000] = "";
2254  const struct pd_flags *pflag = pd_flags;
2255  for( ; pflag->name; pflag++) {
2256  if(lppd->Flags & pflag->flag)
2257  strcat(flagstr, pflag->name);
2258  }
2259  TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2260  "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2261  "flags %08x (%s)\n",
2262  lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2263  lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2264  lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2265  }
2266 
2267  if(lppd->lStructSize != sizeof(PRINTDLGA)) {
2268  WARN("structure size failure!!!\n");
2270  return FALSE;
2271  }
2272 
2273  if(lppd->Flags & PD_RETURNDEFAULT) {
2275  DRIVER_INFO_3A *dbuf;
2276  HANDLE hprn;
2277  DWORD needed;
2278 
2279  if(lppd->hDevMode || lppd->hDevNames) {
2280  WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2282  return FALSE;
2283  }
2284  if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2285  WARN("Can't find default printer\n");
2287  return FALSE;
2288  }
2289 
2290  GetPrinterA(hprn, 2, NULL, 0, &needed);
2291  pbuf = HeapAlloc(GetProcessHeap(), 0, needed);
2292  GetPrinterA(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2293 
2294  GetPrinterDriverA(hprn, NULL, 3, NULL, 0, &needed);
2295  dbuf = HeapAlloc(GetProcessHeap(),0,needed);
2296  if (!GetPrinterDriverA(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2297  ERR("GetPrinterDriverA failed, le %d, fix your config for printer %s!\n",
2298  GetLastError(),pbuf->pPrinterName);
2299  HeapFree(GetProcessHeap(), 0, dbuf);
2300  HeapFree(GetProcessHeap(), 0, pbuf);
2302  return FALSE;
2303  }
2304  ClosePrinter(hprn);
2305 
2306  PRINTDLG_CreateDevNames(&(lppd->hDevNames),
2307  dbuf->pDriverPath,
2308  pbuf->pPrinterName,
2309  pbuf->pPortName);
2310  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2311  pbuf->pDevMode->dmDriverExtra);
2312  ptr = GlobalLock(lppd->hDevMode);
2313  memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2314  pbuf->pDevMode->dmDriverExtra);
2315  GlobalUnlock(lppd->hDevMode);
2316  HeapFree(GetProcessHeap(), 0, pbuf);
2317  HeapFree(GetProcessHeap(), 0, dbuf);
2318  bRet = TRUE;
2319  } else {
2320  HGLOBAL hDlgTmpl;
2321  PRINT_PTRA *PrintStructures;
2322 
2323  /* load Dialog resources,
2324  * depending on Flags indicates Print32 or Print32_setup dialog
2325  */
2326  hDlgTmpl = PRINTDLG_GetDlgTemplateA(lppd);
2327  if (!hDlgTmpl) {
2329  return FALSE;
2330  }
2331  ptr = LockResource( hDlgTmpl );
2332  if (!ptr) {
2334  return FALSE;
2335  }
2336 
2337  PrintStructures = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
2338  sizeof(PRINT_PTRA));
2339  PrintStructures->lpPrintDlg = lppd;
2340 
2341  /* and create & process the dialog .
2342  * -1 is failure, 0 is broken hwnd, everything else is ok.
2343  */
2345  if (lppd->Flags & (PD_ENABLESETUPTEMPLATE | PD_ENABLEPRINTTEMPLATE)) hInst = lppd->hInstance;
2346  bRet = (0<DialogBoxIndirectParamA(hInst, ptr, lppd->hwndOwner,
2347  PrintDlgProcA,
2348  (LPARAM)PrintStructures));
2349 
2350  if(bRet) {
2351  DEVMODEA *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2352  PRINTER_INFO_2A *pi = PrintStructures->lpPrinterInfo;
2353  DRIVER_INFO_3A *di = PrintStructures->lpDriverInfo;
2354 
2355  if (lppd->hDevMode == 0) {
2356  TRACE(" No hDevMode yet... Need to create my own\n");
2357  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE,
2358  lpdm->dmSize + lpdm->dmDriverExtra);
2359  } else {
2360  lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2361  lpdm->dmSize + lpdm->dmDriverExtra,
2362  GMEM_MOVEABLE);
2363  }
2364  lpdmReturn = GlobalLock(lppd->hDevMode);
2365  memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2366 
2367  PRINTDLG_CreateDevNames(&(lppd->hDevNames),
2368  di->pDriverPath,
2369  pi->pPrinterName,
2370  pi->pPortName
2371  );
2372  GlobalUnlock(lppd->hDevMode);
2373  }
2374  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDevMode);
2375  HeapFree(GetProcessHeap(), 0, PrintStructures->lpPrinterInfo);
2376  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDriverInfo);
2377  HeapFree(GetProcessHeap(), 0, PrintStructures);
2378  }
2379  if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2380  bRet = PRINTDLG_CreateDCA(lppd);
2381 
2382  TRACE("exit! (%d)\n", bRet);
2383  return bRet;
2384 }
WINBOOL WINAPI GetPrinterDriverA(HANDLE hPrinter, LPSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:587
#define TRUE
Definition: types.h:120
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:368
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
#define CDERR_LOADRESFAILURE
Definition: cderr.h:12
char * strcat(char *DstString, const char *SrcString)
Definition: utclib.c:568
HGLOBAL NTAPI GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:825
WORD dmSize
Definition: wingdi.h:1563
LPCSTR name
Definition: printdlg.c:92
WORD dmDriverExtra
Definition: wingdi.h:1564
WINBOOL WINAPI GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:580
#define WARN(fmt,...)
Definition: debug.h:111
static BOOL PRINTDLG_CreateDevNames(HGLOBAL *hmem, const char *DeviceDriverName, const char *DeviceName, const char *OutputPort)
Definition: printdlg.c:472
LPPRINTER_INFO_2A lpPrinterInfo
Definition: printdlg.c:64
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
LPPRINTDLGA lpPrintDlg
Definition: printdlg.c:63
static BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
Definition: printdlg.c:369
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
LPDRIVER_INFO_3A lpDriverInfo
Definition: printdlg.c:65
static const struct pd_flags pd_flags[]
Definition: printdlg.c:115
unsigned char * LPBYTE
Definition: typedefs.h:52
#define PDERR_NODEFAULTPRN
Definition: cderr.h:26
unsigned int BOOL
Definition: ntddk_ex.h:94
static PVOID ptr
Definition: dispmode.c:27
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition: printers.c:12
#define PD_RETURNIC
Definition: commdlg.h:156
smooth NULL
Definition: ftsmooth.c:416
LONG_PTR LPARAM
Definition: windef.h:208
#define PD_RETURNDC
Definition: commdlg.h:155
#define PD_ENABLEPRINTTEMPLATE
Definition: commdlg.h:161
DWORD flag
Definition: printdlg.c:91
static HGLOBAL PRINTDLG_GetDlgTemplateA(const PRINTDLGA *lppd)
Definition: printdlg.c:2106
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
Definition: pbuf.h:79
#define CDERR_INITIALIZATION
Definition: cderr.h:7
LPSTR pDriverPath
Definition: winspool.h:406
static INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: printdlg.c:2006
unsigned long DWORD
Definition: ntddk_ex.h:95
INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
static DWORD pi
Definition: protocol.c:150
LPDEVMODEA lpDevMode
Definition: printdlg.c:62
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
Definition: heapmem.c:755
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
static BOOL PRINTDLG_CreateDCA(LPPRINTDLGA lppd)
Definition: printdlg.c:2179
#define ERR(fmt,...)
Definition: debug.h:109
#define PD_ENABLESETUPTEMPLATE
Definition: commdlg.h:162
HINSTANCE hInst
Definition: dxdiag.c:13
#define PD_RETURNDEFAULT
Definition: commdlg.h:157
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:119
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
#define PDERR_RETDEFFAILURE
Definition: cderr.h:21
#define TRACE_ON(x)
Definition: compat.h:65
#define HeapFree(x, y, z)
Definition: compat.h:394
#define GMEM_MOVEABLE
Definition: winbase.h:291

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

◆ PrintDlgW()

BOOL WINAPI PrintDlgW ( LPPRINTDLGW  )

Definition at line 2391 of file printdlg.c.

2392 {
2393  BOOL bRet = FALSE;
2394  LPVOID ptr;
2395  HINSTANCE hInst;
2396 
2397  if (!lppd)
2398  {
2400  return FALSE;
2401  }
2402 
2403  if(TRACE_ON(commdlg)) {
2404  char flagstr[1000] = "";
2405  const struct pd_flags *pflag = pd_flags;
2406  for( ; pflag->name; pflag++) {
2407  if(lppd->Flags & pflag->flag)
2408  strcat(flagstr, pflag->name);
2409  }
2410  TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2411  "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2412  "flags %08x (%s)\n",
2413  lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2414  lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2415  lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2416  }
2417 
2418  if(lppd->lStructSize != sizeof(PRINTDLGW)) {
2419  WARN("structure size failure!!!\n");
2421  return FALSE;
2422  }
2423 
2424  if(lppd->Flags & PD_RETURNDEFAULT) {
2426  DRIVER_INFO_3W *dbuf;
2427  HANDLE hprn;
2428  DWORD needed;
2429 
2430  if(lppd->hDevMode || lppd->hDevNames) {
2431  WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2433  return FALSE;
2434  }
2435  if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2436  WARN("Can't find default printer\n");
2438  return FALSE;
2439  }
2440 
2441  GetPrinterW(hprn, 2, NULL, 0, &needed);
2442  pbuf = HeapAlloc(GetProcessHeap(), 0, needed);
2443  GetPrinterW(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2444 
2445  GetPrinterDriverW(hprn, NULL, 3, NULL, 0, &needed);
2446  dbuf = HeapAlloc(GetProcessHeap(),0,needed);
2447  if (!GetPrinterDriverW(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2448  ERR("GetPrinterDriverA failed, le %d, fix your config for printer %s!\n",
2449  GetLastError(),debugstr_w(pbuf->pPrinterName));
2450  HeapFree(GetProcessHeap(), 0, dbuf);
2451  HeapFree(GetProcessHeap(), 0, pbuf);
2453  return FALSE;
2454  }
2455  ClosePrinter(hprn);
2456 
2457  PRINTDLG_CreateDevNamesW(&(lppd->hDevNames),
2458  dbuf->pDriverPath,
2459  pbuf->pPrinterName,
2460  pbuf->pPortName);
2461  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2462  pbuf->pDevMode->dmDriverExtra);
2463  ptr = GlobalLock(lppd->hDevMode);
2464  memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2465  pbuf->pDevMode->dmDriverExtra);
2466  GlobalUnlock(lppd->hDevMode);
2467  HeapFree(GetProcessHeap(), 0, pbuf);
2468  HeapFree(GetProcessHeap(), 0, dbuf);
2469  bRet = TRUE;
2470  } else {
2471  HGLOBAL hDlgTmpl;
2472  PRINT_PTRW *PrintStructures;
2473 
2474  /* load Dialog resources,
2475  * depending on Flags indicates Print32 or Print32_setup dialog
2476  */
2477  hDlgTmpl = PRINTDLG_GetDlgTemplateW(lppd);
2478  if (!hDlgTmpl) {
2480  return FALSE;
2481  }
2482  ptr = LockResource( hDlgTmpl );
2483  if (!ptr) {
2485  return FALSE;
2486  }
2487 
2488  PrintStructures = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
2489  sizeof(PRINT_PTRW));
2490  PrintStructures->lpPrintDlg = lppd;
2491 
2492  /* and create & process the dialog .
2493  * -1 is failure, 0 is broken hwnd, everything else is ok.
2494  */
2496  if (lppd->Flags & (PD_ENABLESETUPTEMPLATE | PD_ENABLEPRINTTEMPLATE)) hInst = lppd->hInstance;
2497  bRet = (0<DialogBoxIndirectParamW(hInst, ptr, lppd->hwndOwner,
2498  PrintDlgProcW,
2499  (LPARAM)PrintStructures));
2500 
2501  if(bRet) {
2502  DEVMODEW *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2503  PRINTER_INFO_2W *pi = PrintStructures->lpPrinterInfo;
2504  DRIVER_INFO_3W *di = PrintStructures->lpDriverInfo;
2505 
2506  if (lppd->hDevMode == 0) {
2507  TRACE(" No hDevMode yet... Need to create my own\n");
2508  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE,
2509  lpdm->dmSize + lpdm->dmDriverExtra);
2510  } else {
2511  WORD locks;
2512  if((locks = (GlobalFlags(lppd->hDevMode) & GMEM_LOCKCOUNT))) {
2513  WARN("hDevMode has %d locks on it. Unlocking it now\n", locks);
2514  while(locks--) {
2515  GlobalUnlock(lppd->hDevMode);
2516  TRACE("Now got %d locks\n", locks);
2517  }
2518  }
2519  lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2520  lpdm->dmSize + lpdm->dmDriverExtra,
2521  GMEM_MOVEABLE);
2522  }
2523  lpdmReturn = GlobalLock(lppd->hDevMode);
2524  memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2525 
2526  if (lppd->hDevNames != 0) {
2527  WORD locks;
2528  if((locks = (GlobalFlags(lppd->hDevNames) & GMEM_LOCKCOUNT))) {
2529  WARN("hDevNames has %d locks on it. Unlocking it now\n", locks);
2530  while(locks--)
2531  GlobalUnlock(lppd->hDevNames);
2532  }
2533  }
2534  PRINTDLG_CreateDevNamesW(&(lppd->hDevNames),
2535  di->pDriverPath,
2536  pi->pPrinterName,
2537  pi->pPortName
2538  );
2539  GlobalUnlock(lppd->hDevMode);
2540  }
2541  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDevMode);
2542  HeapFree(GetProcessHeap(), 0, PrintStructures->lpPrinterInfo);
2543  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDriverInfo);
2544  HeapFree(GetProcessHeap(), 0, PrintStructures);
2545  }
2546  if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2547  bRet = PRINTDLG_CreateDCW(lppd);
2548 
2549  TRACE("exit! (%d)\n", bRet);
2550  return bRet;
2551 }
static BOOL PRINTDLG_CreateDevNamesW(HGLOBAL *hmem, LPCWSTR DeviceDriverName, LPCWSTR DeviceName, LPCWSTR OutputPort)
Definition: printdlg.c:519
#define TRUE
Definition: types.h:120
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:368
DECLSPEC_HIDDEN HINSTANCE COMDLG32_hInstance
Definition: cdlg32.c:42
#define CDERR_LOADRESFAILURE
Definition: cderr.h:12
char * strcat(char *DstString, const char *SrcString)
Definition: utclib.c:568
HGLOBAL NTAPI GlobalReAlloc(HGLOBAL hMem, SIZE_T dwBytes, UINT uFlags)
Definition: heapmem.c:825
LPCSTR name
Definition: printdlg.c:92
UINT NTAPI GlobalFlags(HGLOBAL hMem)
Definition: heapmem.c:520
#define WARN(fmt,...)
Definition: debug.h:111
WORD dmDriverExtra
Definition: wingdi.h:1616
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
WINBOOL WINAPI GetPrinterDriverW(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:594
static BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
Definition: printdlg.c:369
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
LPDRIVER_INFO_3W lpDriverInfo
Definition: printdlg.c:79
static const struct pd_flags pd_flags[]
Definition: printdlg.c:115
unsigned char * LPBYTE
Definition: typedefs.h:52
#define PDERR_NODEFAULTPRN
Definition: cderr.h:26
unsigned int BOOL
Definition: ntddk_ex.h:94
#define debugstr_w
Definition: kernel32.h:32
static PVOID ptr
Definition: dispmode.c:27
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition: printers.c:12
#define PD_RETURNIC
Definition: commdlg.h:156
smooth NULL
Definition: ftsmooth.c:416
static HGLOBAL PRINTDLG_GetDlgTemplateW(const PRINTDLGW *lppd)
Definition: printdlg.c:2140
LONG_PTR LPARAM
Definition: windef.h:208
#define PD_RETURNDC
Definition: commdlg.h:155
#define PD_ENABLEPRINTTEMPLATE
Definition: commdlg.h:161
WINBOOL WINAPI GetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:643
DWORD flag
Definition: printdlg.c:91
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:395
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
Definition: pbuf.h:79
LPPRINTDLGW lpPrintDlg
Definition: printdlg.c:77
#define CDERR_INITIALIZATION
Definition: cderr.h:7
LPPRINTER_INFO_2W lpPrinterInfo
Definition: printdlg.c:78
WORD dmSize
Definition: wingdi.h:1615
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
static DWORD pi
Definition: protocol.c:150
LPWSTR pDriverPath
Definition: winspool.h:419
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
Definition: heapmem.c:755
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define ERR(fmt,...)
Definition: debug.h:109
#define PD_ENABLESETUPTEMPLATE
Definition: commdlg.h:162
HINSTANCE hInst
Definition: dxdiag.c:13
#define PD_RETURNDEFAULT
Definition: commdlg.h:157
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:119
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190
LPDEVMODEW lpDevMode
Definition: printdlg.c:76
#define HEAP_ZERO_MEMORY
Definition: compat.h:123
#define PDERR_RETDEFFAILURE
Definition: cderr.h:21
#define TRACE_ON(x)
Definition: compat.h:65
#define GMEM_LOCKCOUNT
Definition: winbase.h:306
#define HeapFree(x, y, z)
Definition: compat.h:394
#define GMEM_MOVEABLE
Definition: winbase.h:291
static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
Definition: printdlg.c:2200
static INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: printdlg.c:2055

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

◆ ReplaceTextA()

HWND WINAPI ReplaceTextA ( LPFINDREPLACEA  )

Definition at line 464 of file finddlg.c.

466  {
468 
469  TRACE("LPFINDREPLACE=%p\n", pfr);
470 
471  if(!COMDLG32_FR_CheckPartial(pfr, TRUE))
472  return 0;
473 
474  if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data))) == NULL)
475  return 0; /* Error has been set */
476 
477  pdata->user_fr.fra = pfr;
478  pdata->fr = *pfr;
479  pdata->fr.Flags |= FR_WINE_REPLACE;
481 }
LPVOID COMDLG32_AllocMem(int size) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
Definition: cdlg32.c:100
#define TRUE
Definition: types.h:120
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define FR_WINE_REPLACE
Definition: cdlg.h:37
smooth NULL
Definition: ftsmooth.c:416
static PROTOCOLDATA * pdata
Definition: protocol.c:157
#define TRACE(s)
Definition: solgame.cpp:4
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302

◆ ReplaceTextW()

HWND WINAPI ReplaceTextW ( LPFINDREPLACEW  )

Definition at line 526 of file finddlg.c.

528  {
530  DWORD len1, len2;
531 
532  TRACE("LPFINDREPLACE=%p\n", pfr);
533 
535  return 0;
536 
537  len1 = WideCharToMultiByte( CP_ACP, 0, pfr->lpstrFindWhat, pfr->wFindWhatLen,
538  NULL, 0, NULL, NULL );
540  NULL, 0, NULL, NULL );
541  if((pdata = COMDLG32_AllocMem(sizeof(COMDLG32_FR_Data) + len1 + len2)) == NULL)
542  return 0; /* Error has been set */
543 
544  pdata->user_fr.frw = pfr;
545  pdata->fr = *(LPFINDREPLACEA)pfr; /* FINDREPLACEx have same size */
546  pdata->fr.Flags |= FR_WINE_REPLACE | FR_WINE_UNICODE;
547  pdata->fr.lpstrFindWhat = (LPSTR)(pdata + 1); /* Set string pointer */
548  pdata->fr.lpstrReplaceWith = pdata->fr.lpstrFindWhat + len1;
549 
551  pdata->fr.lpstrFindWhat, len1, NULL, NULL );
553  pdata->fr.lpstrReplaceWith, len2, NULL, NULL );
555 }
LPVOID COMDLG32_AllocMem(int size) __WINE_ALLOC_SIZE(1) DECLSPEC_HIDDEN
Definition: cdlg32.c:100
#define TRUE
Definition: types.h:120
#define WideCharToMultiByte
Definition: compat.h:101
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define CP_ACP
Definition: compat.h:99
LPSTR lpstrFindWhat
Definition: commdlg.h:307
#define FR_WINE_REPLACE
Definition: cdlg.h:37
WORD wFindWhatLen
Definition: commdlg.h:309
char * LPSTR
Definition: xmlstorage.h:182
#define FR_WINE_UNICODE
Definition: cdlg.h:36
WORD wReplaceWithLen
Definition: commdlg.h:310
smooth NULL
Definition: ftsmooth.c:416
static PROTOCOLDATA * pdata
Definition: protocol.c:157
#define TRACE(s)
Definition: solgame.cpp:4
unsigned long DWORD
Definition: ntddk_ex.h:95
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302
LPSTR lpstrReplaceWith
Definition: commdlg.h:308
struct FINDREPLACEA * LPFINDREPLACEA

Referenced by dialog_find().