ReactOS  0.4.15-dev-1367-g07cc0b5
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:109
COLORREF * lpCustColors
Definition: commdlg.h:254
HWND hInstance
Definition: commdlg.h:252
DWORD lStructSize
Definition: commdlg.h:250
int32_t INT
Definition: typedefs.h:58
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
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 NULL
Definition: types.h:112
#define MultiByteToWideChar
Definition: compat.h:110
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 238 of file fontdlg.c.

239 {
240  LPCVOID template;
241  HRSRC hResInfo;
242  HINSTANCE hDlginst;
243  HGLOBAL hDlgTmpl;
244 
245  TRACE("(%p)\n", lpChFont);
246 
247  if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
248  {
249  template=lpChFont->hInstance;
250  } else
251  {
252  if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
253  {
254  hDlginst=lpChFont->hInstance;
255  if( !(hResInfo = FindResourceA(hDlginst, lpChFont->lpTemplateName,
256  (LPSTR)RT_DIALOG)))
257  {
259  return FALSE;
260  }
261  } else
262  {
263  hDlginst=COMDLG32_hInstance;
264  if (!(hResInfo = FindResourceW(hDlginst, chooseFontW, (LPWSTR)RT_DIALOG)))
265  {
267  return FALSE;
268  }
269  }
270  if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
271  !(template = LockResource( hDlgTmpl )))
272  {
274  return FALSE;
275  }
276  }
277  if (TRACE_ON(commdlg))
278  _dump_cf_flags(lpChFont->Flags);
279  if (lpChFont->Flags & CF_SELECTSCRIPT)
280  FIXME(": unimplemented flag (ignored)\n");
281 
283  lpChFont->hwndOwner, FormatCharDlgProcA, (LPARAM)lpChFont );
284 }
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 FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:111
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:161
INT_PTR WINAPI DialogBoxIndirectParamA(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
static const WCHAR chooseFontW[]
Definition: fontdlg.c:53
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:128
#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:75
static INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: fontdlg.c:1203

Referenced by test_ChooseFontA().

◆ ChooseFontW()

BOOL WINAPI ChooseFontW ( LPCHOOSEFONTW  )

Definition at line 184 of file fontdlg.c.

185 {
186  LPCVOID template;
187  HRSRC hResInfo;
188  HINSTANCE hDlginst;
189  HGLOBAL hDlgTmpl;
190 
191  TRACE("(%p)\n", lpChFont);
192 
193  if ( (lpChFont->Flags&CF_ENABLETEMPLATEHANDLE)!=0 )
194  {
195  template=lpChFont->hInstance;
196  } else
197  {
198  if ( (lpChFont->Flags&CF_ENABLETEMPLATE)!=0 )
199  {
200  hDlginst=lpChFont->hInstance;
201  if( !(hResInfo = FindResourceW(hDlginst, lpChFont->lpTemplateName,
202  (LPWSTR)RT_DIALOG)))
203  {
205  return FALSE;
206  }
207  } else
208  {
209  hDlginst=COMDLG32_hInstance;
210  if (!(hResInfo = FindResourceW(hDlginst, chooseFontW, (LPWSTR)RT_DIALOG)))
211  {
213  return FALSE;
214  }
215  }
216  if (!(hDlgTmpl = LoadResource(hDlginst, hResInfo )) ||
217  !(template = LockResource( hDlgTmpl )))
218  {
220  return FALSE;
221  }
222  }
223  if (TRACE_ON(commdlg))
224  _dump_cf_flags(lpChFont->Flags);
225 
226  if (lpChFont->Flags & CF_SELECTSCRIPT)
227  FIXME(": unimplemented flag (ignored)\n");
228 
230  lpChFont->hwndOwner, FormatCharDlgProcW, (LPARAM)lpChFont );
231 }
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 FALSE
Definition: types.h:117
#define FIXME(fmt,...)
Definition: debug.h:111
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:161
static const WCHAR chooseFontW[]
Definition: fontdlg.c:53
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:128
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:1269
WCHAR * LPWSTR
Definition: xmlstorage.h:184
#define CF_ENABLETEMPLATE
Definition: commdlg.h:64
#define TRACE_ON(x)
Definition: compat.h:75

Referenced by choose_font(), and dialog_choose_font().

◆ CommDlgExtendedError()

DWORD WINAPI CommDlgExtendedError ( void  )

Definition at line 148 of file cdlg32.c.

149 {
152  else
153  return 0; /* we never set an error, so there isn't one */
154 }
static DWORD COMDLG32_TlsIndex
Definition: cdlg32.c:47
#define TLS_OUT_OF_INDEXES
Definition: winbase.h:530
uint32_t DWORD_PTR
Definition: typedefs.h:65
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:109
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define FALSE
Definition: types.h:117
static PROTOCOLDATA * pdata
Definition: protocol.c:158
#define TRACE(s)
Definition: solgame.cpp:4
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302
#define NULL
Definition: types.h:112

◆ 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:109
#define WideCharToMultiByte
Definition: compat.h:111
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define CP_ACP
Definition: compat.h:109
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:39
#define FALSE
Definition: types.h:117
static PROTOCOLDATA * pdata
Definition: protocol.c:158
#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
#define NULL
Definition: types.h:112
struct FINDREPLACEA * LPFINDREPLACEA

Referenced by dialog_find().

◆ GetFileTitleA()

short WINAPI GetFileTitleA ( LPCSTR  ,
LPSTR  ,
WORD   
)

Definition at line 4761 of file filedlg.c.

4762 {
4763  int ret;
4764  UNICODE_STRING strWFile;
4765  LPWSTR lpWTitle;
4766 
4767  RtlCreateUnicodeStringFromAsciiz(&strWFile, lpFile);
4768  lpWTitle = heap_alloc(cbBuf * sizeof(WCHAR));
4769  ret = GetFileTitleW(strWFile.Buffer, lpWTitle, cbBuf);
4770  if (!ret) WideCharToMultiByte( CP_ACP, 0, lpWTitle, -1, lpTitle, cbBuf, NULL, NULL );
4771  RtlFreeUnicodeString( &strWFile );
4772  heap_free( lpWTitle );
4773  return ret;
4774 }
#define WideCharToMultiByte
Definition: compat.h:111
#define CP_ACP
Definition: compat.h:109
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf)
Definition: filedlg.c:4791
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
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
#define NULL
Definition: types.h:112
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 4791 of file filedlg.c.

4792 {
4793  int i, len;
4794  static const WCHAR brkpoint[] = {'*','[',']',0};
4795  TRACE("(%p %p %d);\n", lpFile, lpTitle, cbBuf);
4796 
4797  if(lpFile == NULL || lpTitle == NULL)
4798  return -1;
4799 
4800  len = lstrlenW(lpFile);
4801 
4802  if (len == 0)
4803  return -1;
4804 
4805  if(wcspbrk(lpFile, brkpoint))
4806  return -1;
4807 
4808  len--;
4809 
4810  if(lpFile[len] == '/' || lpFile[len] == '\\' || lpFile[len] == ':')
4811  return -1;
4812 
4813  for(i = len; i >= 0; i--)
4814  {
4815  if (lpFile[i] == '/' || lpFile[i] == '\\' || lpFile[i] == ':')
4816  {
4817  i++;
4818  break;
4819  }
4820  }
4821 
4822  if(i == -1)
4823  i++;
4824 
4825  TRACE("---> %s\n", debugstr_w(&lpFile[i]));
4826 
4827  len = lstrlenW(lpFile+i)+1;
4828  if(cbBuf < len)
4829  return len;
4830 
4831  lstrcpyW(lpTitle, &lpFile[i]);
4832  return 0;
4833 }
#define lstrlenW
Definition: compat.h:609
#define debugstr_w
Definition: kernel32.h:32
#define TRACE(s)
Definition: solgame.cpp:4
__wchar_t WCHAR
Definition: xmlstorage.h:180
GLenum GLsizei len
Definition: glext.h:6722
#define lstrcpyW
Definition: compat.h:608
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
_Check_return_ _CRTIMP _CONST_RETURN wchar_t *__cdecl wcspbrk(_In_z_ const wchar_t *_Str, _In_z_ const wchar_t *_Control)
#define NULL
Definition: types.h:112
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 4736 of file filedlg.c.

4738 {
4740  {
4742  return FALSE;
4743  }
4744 
4745  if (is_win16_looks(ofn->Flags))
4746  return GetFileName31W(ofn, SAVE_DIALOG);
4747  else
4748  {
4750 
4752  return GetFileDialog95(&info, SAVE_DIALOG);
4753  }
4754 }
static BOOL is_win16_looks(DWORD flags)
Definition: filedlg.c:4618
OPENFILENAME ofn
Definition: main.cpp:37
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
BOOL GetFileName31W(OPENFILENAMEW *lpofn, UINT dlgType) DECLSPEC_HIDDEN
Definition: filedlg31.c:1173
#define FALSE
Definition: types.h:117
static BOOL GetFileDialog95(FileOpenDlgInfos *info, UINT dlg_type)
Definition: filedlg.c:642
DWORD lStructSize
Definition: commdlg.h:329
struct _test_info info[]
Definition: SetCursorPos.c:19
#define SAVE_DIALOG
Definition: commdlg.h:12
static BOOL valid_struct_size(DWORD size)
Definition: filedlg.c:4612
void COMDLG32_SetCommDlgExtendedError(DWORD err) DECLSPEC_HIDDEN
Definition: cdlg32.c:128
static void init_filedlg_infoW(OPENFILENAMEW *ofn, FileOpenDlgInfos *info)
Definition: filedlg.c:535
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 3929 of file printdlg.c.

3930 {
3932 
3933  data.unicode = FALSE;
3934  data.u.dlga = setupdlg;
3935 
3936  return pagesetup_common(&data);
3937 }
static BOOL pagesetup_common(pagesetup_data *data)
Definition: printdlg.c:3848
#define FALSE
Definition: types.h:117
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 3944 of file printdlg.c.

3945 {
3947 
3948  data.unicode = TRUE;
3949  data.u.dlgw = setupdlg;
3950 
3951  return pagesetup_common(&data);
3952 }
#define TRUE
Definition: types.h:120
static BOOL pagesetup_common(pagesetup_data *data)
Definition: printdlg.c:3848
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 2258 of file printdlg.c.

2259 {
2260  BOOL bRet = FALSE;
2261  LPVOID ptr;
2262  HINSTANCE hInst;
2263 
2264  if (!lppd)
2265  {
2267  return FALSE;
2268  }
2269 
2270  if(TRACE_ON(commdlg)) {
2271  char flagstr[1000] = "";
2272  const struct pd_flags *pflag = pd_flags;
2273  for( ; pflag->name; pflag++) {
2274  if(lppd->Flags & pflag->flag)
2275  strcat(flagstr, pflag->name);
2276  }
2277  TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2278  "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2279  "flags %08x (%s)\n",
2280  lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2281  lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2282  lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2283  }
2284 
2285  if(lppd->lStructSize != sizeof(PRINTDLGA)) {
2286  WARN("structure size failure!!!\n");
2288  return FALSE;
2289  }
2290 
2291  if(lppd->Flags & PD_RETURNDEFAULT) {
2293  DRIVER_INFO_3A *dbuf;
2294  HANDLE hprn;
2295  DWORD needed;
2296 
2297  if(lppd->hDevMode || lppd->hDevNames) {
2298  WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2300  return FALSE;
2301  }
2302  if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2303  WARN("Can't find default printer\n");
2305  return FALSE;
2306  }
2307 
2308  GetPrinterA(hprn, 2, NULL, 0, &needed);
2309  pbuf = HeapAlloc(GetProcessHeap(), 0, needed);
2310  GetPrinterA(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2311 
2312  GetPrinterDriverA(hprn, NULL, 3, NULL, 0, &needed);
2313  dbuf = HeapAlloc(GetProcessHeap(),0,needed);
2314  if (!GetPrinterDriverA(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2315  ERR("GetPrinterDriverA failed, le %d, fix your config for printer %s!\n",
2316  GetLastError(),pbuf->pPrinterName);
2317  HeapFree(GetProcessHeap(), 0, dbuf);
2318  HeapFree(GetProcessHeap(), 0, pbuf);
2320  return FALSE;
2321  }
2322  ClosePrinter(hprn);
2323 
2324  PRINTDLG_CreateDevNames(&(lppd->hDevNames),
2325  dbuf->pDriverPath,
2326  pbuf->pPrinterName,
2327  pbuf->pPortName);
2328  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2329  pbuf->pDevMode->dmDriverExtra);
2330  ptr = GlobalLock(lppd->hDevMode);
2331  memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2332  pbuf->pDevMode->dmDriverExtra);
2333  GlobalUnlock(lppd->hDevMode);
2334  HeapFree(GetProcessHeap(), 0, pbuf);
2335  HeapFree(GetProcessHeap(), 0, dbuf);
2336  bRet = TRUE;
2337  } else {
2338  HGLOBAL hDlgTmpl;
2339  PRINT_PTRA *PrintStructures;
2340 
2341  /* load Dialog resources,
2342  * depending on Flags indicates Print32 or Print32_setup dialog
2343  */
2344  hDlgTmpl = PRINTDLG_GetDlgTemplateA(lppd);
2345  if (!hDlgTmpl) {
2347  return FALSE;
2348  }
2349  ptr = LockResource( hDlgTmpl );
2350  if (!ptr) {
2352  return FALSE;
2353  }
2354 
2355  PrintStructures = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
2356  sizeof(PRINT_PTRA));
2357  PrintStructures->lpPrintDlg = lppd;
2358 
2359  /* and create & process the dialog .
2360  * -1 is failure, 0 is broken hwnd, everything else is ok.
2361  */
2363  if (lppd->Flags & (PD_ENABLESETUPTEMPLATE | PD_ENABLEPRINTTEMPLATE)) hInst = lppd->hInstance;
2364  bRet = (0<DialogBoxIndirectParamA(hInst, ptr, lppd->hwndOwner,
2365  PrintDlgProcA,
2366  (LPARAM)PrintStructures));
2367 
2368  if(bRet) {
2369  DEVMODEA *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2370  PRINTER_INFO_2A *pi = PrintStructures->lpPrinterInfo;
2371  DRIVER_INFO_3A *di = PrintStructures->lpDriverInfo;
2372 
2373  if (lppd->hDevMode == 0) {
2374  TRACE(" No hDevMode yet... Need to create my own\n");
2375  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE,
2376  lpdm->dmSize + lpdm->dmDriverExtra);
2377  } else {
2378  lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2379  lpdm->dmSize + lpdm->dmDriverExtra,
2380  GMEM_MOVEABLE);
2381  }
2382  lpdmReturn = GlobalLock(lppd->hDevMode);
2383  memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2384 
2385  PRINTDLG_CreateDevNames(&(lppd->hDevNames),
2386  di->pDriverPath,
2387  pi->pPrinterName,
2388  pi->pPortName
2389  );
2390  GlobalUnlock(lppd->hDevMode);
2391  }
2392  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDevMode);
2393  HeapFree(GetProcessHeap(), 0, PrintStructures->lpPrinterInfo);
2394  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDriverInfo);
2395  HeapFree(GetProcessHeap(), 0, PrintStructures);
2396  }
2397  if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2398  bRet = PRINTDLG_CreateDCA(lppd);
2399 
2400  TRACE("exit! (%d)\n", bRet);
2401  return bRet;
2402 }
WINBOOL WINAPI GetPrinterDriverA(HANDLE hPrinter, LPSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
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:1567
LPCSTR name
Definition: printdlg.c:91
#define TRUE
Definition: types.h:120
WORD dmDriverExtra
Definition: wingdi.h:1568
WINBOOL WINAPI GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:2033
#define WARN(fmt,...)
Definition: debug.h:112
static BOOL PRINTDLG_CreateDevNames(HGLOBAL *hmem, const char *DeviceDriverName, const char *DeviceName, const char *OutputPort)
Definition: printdlg.c:476
LPPRINTER_INFO_2A lpPrinterInfo
Definition: printdlg.c:63
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1044
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
LPPRINTDLGA lpPrintDlg
Definition: printdlg.c:62
static BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
Definition: printdlg.c:368
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
LPDRIVER_INFO_3A lpDriverInfo
Definition: printdlg.c:64
static const struct pd_flags pd_flags[]
Definition: printdlg.c:114
unsigned char * LPBYTE
Definition: typedefs.h:53
#define PDERR_NODEFAULTPRN
Definition: cderr.h:26
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
static PVOID ptr
Definition: dispmode.c:27
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
Definition: printers.c:176
#define PD_RETURNIC
Definition: commdlg.h:156
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:90
static HGLOBAL PRINTDLG_GetDlgTemplateA(const PRINTDLGA *lppd)
Definition: printdlg.c:2124
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
Definition: pbuf.h:79
static refpint_t pi[]
Definition: server.c:96
#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:2024
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)
LPDEVMODEA lpDevMode
Definition: printdlg.c:61
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:2197
#define ERR(fmt,...)
Definition: debug.h:110
#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:128
#define NULL
Definition: types.h:112
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define PDERR_RETDEFFAILURE
Definition: cderr.h:21
#define TRACE_ON(x)
Definition: compat.h:75
#define HeapFree(x, y, z)
Definition: compat.h:594
#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 2409 of file printdlg.c.

2410 {
2411  BOOL bRet = FALSE;
2412  LPVOID ptr;
2413  HINSTANCE hInst;
2414 
2415  if (!lppd)
2416  {
2418  return FALSE;
2419  }
2420 
2421  if(TRACE_ON(commdlg)) {
2422  char flagstr[1000] = "";
2423  const struct pd_flags *pflag = pd_flags;
2424  for( ; pflag->name; pflag++) {
2425  if(lppd->Flags & pflag->flag)
2426  strcat(flagstr, pflag->name);
2427  }
2428  TRACE("(%p): hwndOwner = %p, hDevMode = %p, hDevNames = %p\n"
2429  "pp. %d-%d, min p %d, max p %d, copies %d, hinst %p\n"
2430  "flags %08x (%s)\n",
2431  lppd, lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames,
2432  lppd->nFromPage, lppd->nToPage, lppd->nMinPage, lppd->nMaxPage,
2433  lppd->nCopies, lppd->hInstance, lppd->Flags, flagstr);
2434  }
2435 
2436  if(lppd->lStructSize != sizeof(PRINTDLGW)) {
2437  WARN("structure size failure!!!\n");
2439  return FALSE;
2440  }
2441 
2442  if(lppd->Flags & PD_RETURNDEFAULT) {
2444  DRIVER_INFO_3W *dbuf;
2445  HANDLE hprn;
2446  DWORD needed;
2447 
2448  if(lppd->hDevMode || lppd->hDevNames) {
2449  WARN("hDevMode or hDevNames non-zero for PD_RETURNDEFAULT\n");
2451  return FALSE;
2452  }
2453  if(!PRINTDLG_OpenDefaultPrinter(&hprn)) {
2454  WARN("Can't find default printer\n");
2456  return FALSE;
2457  }
2458 
2459  GetPrinterW(hprn, 2, NULL, 0, &needed);
2460  pbuf = HeapAlloc(GetProcessHeap(), 0, needed);
2461  GetPrinterW(hprn, 2, (LPBYTE)pbuf, needed, &needed);
2462 
2463  GetPrinterDriverW(hprn, NULL, 3, NULL, 0, &needed);
2464  dbuf = HeapAlloc(GetProcessHeap(),0,needed);
2465  if (!GetPrinterDriverW(hprn, NULL, 3, (LPBYTE)dbuf, needed, &needed)) {
2466  ERR("GetPrinterDriverA failed, le %d, fix your config for printer %s!\n",
2467  GetLastError(),debugstr_w(pbuf->pPrinterName));
2468  HeapFree(GetProcessHeap(), 0, dbuf);
2469  HeapFree(GetProcessHeap(), 0, pbuf);
2471  return FALSE;
2472  }
2473  ClosePrinter(hprn);
2474 
2475  PRINTDLG_CreateDevNamesW(&(lppd->hDevNames),
2476  dbuf->pDriverPath,
2477  pbuf->pPrinterName,
2478  pbuf->pPortName);
2479  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE, pbuf->pDevMode->dmSize +
2480  pbuf->pDevMode->dmDriverExtra);
2481  ptr = GlobalLock(lppd->hDevMode);
2482  memcpy(ptr, pbuf->pDevMode, pbuf->pDevMode->dmSize +
2483  pbuf->pDevMode->dmDriverExtra);
2484  GlobalUnlock(lppd->hDevMode);
2485  HeapFree(GetProcessHeap(), 0, pbuf);
2486  HeapFree(GetProcessHeap(), 0, dbuf);
2487  bRet = TRUE;
2488  } else {
2489  HGLOBAL hDlgTmpl;
2490  PRINT_PTRW *PrintStructures;
2491 
2492  /* load Dialog resources,
2493  * depending on Flags indicates Print32 or Print32_setup dialog
2494  */
2495  hDlgTmpl = PRINTDLG_GetDlgTemplateW(lppd);
2496  if (!hDlgTmpl) {
2498  return FALSE;
2499  }
2500  ptr = LockResource( hDlgTmpl );
2501  if (!ptr) {
2503  return FALSE;
2504  }
2505 
2506  PrintStructures = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
2507  sizeof(PRINT_PTRW));
2508  PrintStructures->lpPrintDlg = lppd;
2509 
2510  /* and create & process the dialog .
2511  * -1 is failure, 0 is broken hwnd, everything else is ok.
2512  */
2514  if (lppd->Flags & (PD_ENABLESETUPTEMPLATE | PD_ENABLEPRINTTEMPLATE)) hInst = lppd->hInstance;
2515  bRet = (0<DialogBoxIndirectParamW(hInst, ptr, lppd->hwndOwner,
2516  PrintDlgProcW,
2517  (LPARAM)PrintStructures));
2518 
2519  if(bRet) {
2520  DEVMODEW *lpdm = PrintStructures->lpDevMode, *lpdmReturn;
2521  PRINTER_INFO_2W *pi = PrintStructures->lpPrinterInfo;
2522  DRIVER_INFO_3W *di = PrintStructures->lpDriverInfo;
2523 
2524  if (lppd->hDevMode == 0) {
2525  TRACE(" No hDevMode yet... Need to create my own\n");
2526  lppd->hDevMode = GlobalAlloc(GMEM_MOVEABLE,
2527  lpdm->dmSize + lpdm->dmDriverExtra);
2528  } else {
2529  WORD locks;
2530  if((locks = (GlobalFlags(lppd->hDevMode) & GMEM_LOCKCOUNT))) {
2531  WARN("hDevMode has %d locks on it. Unlocking it now\n", locks);
2532  while(locks--) {
2533  GlobalUnlock(lppd->hDevMode);
2534  TRACE("Now got %d locks\n", locks);
2535  }
2536  }
2537  lppd->hDevMode = GlobalReAlloc(lppd->hDevMode,
2538  lpdm->dmSize + lpdm->dmDriverExtra,
2539  GMEM_MOVEABLE);
2540  }
2541  lpdmReturn = GlobalLock(lppd->hDevMode);
2542  memcpy(lpdmReturn, lpdm, lpdm->dmSize + lpdm->dmDriverExtra);
2543 
2544  if (lppd->hDevNames != 0) {
2545  WORD locks;
2546  if((locks = (GlobalFlags(lppd->hDevNames) & GMEM_LOCKCOUNT))) {
2547  WARN("hDevNames has %d locks on it. Unlocking it now\n", locks);
2548  while(locks--)
2549  GlobalUnlock(lppd->hDevNames);
2550  }
2551  }
2552  PRINTDLG_CreateDevNamesW(&(lppd->hDevNames),
2553  di->pDriverPath,
2554  pi->pPrinterName,
2555  pi->pPortName
2556  );
2557  GlobalUnlock(lppd->hDevMode);
2558  }
2559  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDevMode);
2560  HeapFree(GetProcessHeap(), 0, PrintStructures->lpPrinterInfo);
2561  HeapFree(GetProcessHeap(), 0, PrintStructures->lpDriverInfo);
2562  HeapFree(GetProcessHeap(), 0, PrintStructures);
2563  }
2564  if(bRet && (lppd->Flags & PD_RETURNDC || lppd->Flags & PD_RETURNIC))
2565  bRet = PRINTDLG_CreateDCW(lppd);
2566 
2567  TRACE("exit! (%d)\n", bRet);
2568  return bRet;
2569 }
static BOOL PRINTDLG_CreateDevNamesW(HGLOBAL *hmem, LPCWSTR DeviceDriverName, LPCWSTR DeviceName, LPCWSTR OutputPort)
Definition: printdlg.c:530
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:91
#define TRUE
Definition: types.h:120
UINT NTAPI GlobalFlags(HGLOBAL hMem)
Definition: heapmem.c:520
#define WARN(fmt,...)
Definition: debug.h:112
WORD dmDriverExtra
Definition: wingdi.h:1620
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1044
LPVOID WINAPI LockResource(HGLOBAL handle)
Definition: res.c:550
WINBOOL WINAPI GetPrinterDriverW(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
static BOOL PRINTDLG_OpenDefaultPrinter(HANDLE *hprn)
Definition: printdlg.c:368
#define CDERR_STRUCTSIZE
Definition: cderr.h:6
LPDRIVER_INFO_3W lpDriverInfo
Definition: printdlg.c:78
static const struct pd_flags pd_flags[]
Definition: printdlg.c:114
unsigned char * LPBYTE
Definition: typedefs.h:53
#define PDERR_NODEFAULTPRN
Definition: cderr.h:26
#define FALSE
Definition: types.h:117
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:176
#define PD_RETURNIC
Definition: commdlg.h:156
static HGLOBAL PRINTDLG_GetDlgTemplateW(const PRINTDLGW *lppd)
Definition: printdlg.c:2158
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:2504
DWORD flag
Definition: printdlg.c:90
#define TRACE(s)
Definition: solgame.cpp:4
#define GetProcessHeap()
Definition: compat.h:595
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
Definition: pbuf.h:79
static refpint_t pi[]
Definition: server.c:96
LPPRINTDLGW lpPrintDlg
Definition: printdlg.c:76
#define CDERR_INITIALIZATION
Definition: cderr.h:7
LPPRINTER_INFO_2W lpPrinterInfo
Definition: printdlg.c:77
WORD dmSize
Definition: wingdi.h:1619
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
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:110
#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:128
INT_PTR WINAPI DialogBoxIndirectParamW(_In_opt_ HINSTANCE, _In_ LPCDLGTEMPLATE, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
#define NULL
Definition: types.h:112
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
Definition: heapmem.c:1190
LPDEVMODEW lpDevMode
Definition: printdlg.c:75
#define HEAP_ZERO_MEMORY
Definition: compat.h:134
#define PDERR_RETDEFFAILURE
Definition: cderr.h:21
#define TRACE_ON(x)
Definition: compat.h:75
#define GMEM_LOCKCOUNT
Definition: winbase.h:306
#define HeapFree(x, y, z)
Definition: compat.h:594
#define GMEM_MOVEABLE
Definition: winbase.h:291
static BOOL PRINTDLG_CreateDCW(LPPRINTDLGW lppd)
Definition: printdlg.c:2218
static INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: printdlg.c:2073

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:109
#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:40
static PROTOCOLDATA * pdata
Definition: protocol.c:158
#define TRACE(s)
Definition: solgame.cpp:4
static BOOL COMDLG32_FR_CheckPartial(const FINDREPLACEA *pfr, BOOL Replace)
Definition: finddlg.c:302
#define NULL
Definition: types.h:112

◆ 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:109
#define WideCharToMultiByte
Definition: compat.h:111
#define TRUE
Definition: types.h:120
static HWND COMDLG32_FR_DoFindReplace(COMDLG32_FR_Data *pdata)
Definition: finddlg.c:364
#define CP_ACP
Definition: compat.h:109
LPSTR lpstrFindWhat
Definition: commdlg.h:307
#define FR_WINE_REPLACE
Definition: cdlg.h:40
WORD wFindWhatLen
Definition: commdlg.h:309
char * LPSTR
Definition: xmlstorage.h:182
#define FR_WINE_UNICODE
Definition: cdlg.h:39
WORD wReplaceWithLen
Definition: commdlg.h:310
static PROTOCOLDATA * pdata
Definition: protocol.c:158
#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
#define NULL
Definition: types.h:112
struct FINDREPLACEA * LPFINDREPLACEA

Referenced by dialog_find().