home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / commdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  16.2 KB  |  580 lines

  1. #ifndef _COMMDLG_H
  2. #define _COMMDLG_H
  3. #if __GNUC__ >=3
  4. #pragma GCC system_header
  5. #endif
  6.  
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. #pragma pack(push,1)
  11.  
  12. #define LBSELCHSTRINGA  "commdlg_LBSelChangedNotify"
  13. #define SHAREVISTRINGA  "commdlg_ShareViolation"
  14. #define FILEOKSTRINGA   "commdlg_FileNameOK"
  15. #define COLOROKSTRINGA  "commdlg_ColorOK"
  16. #define SETRGBSTRINGA   "commdlg_SetRGBColor"
  17. #define HELPMSGSTRINGA  "commdlg_help"
  18. #define FINDMSGSTRINGA  "commdlg_FindReplace"
  19. #define LBSELCHSTRINGW  L"commdlg_LBSelChangedNotify"
  20. #define SHAREVISTRINGW  L"commdlg_ShareViolation"
  21. #define FILEOKSTRINGW   L"commdlg_FileNameOK"
  22. #define COLOROKSTRINGW  L"commdlg_ColorOK"
  23. #define SETRGBSTRINGW   L"commdlg_SetRGBColor"
  24. #define HELPMSGSTRINGW  L"commdlg_help"
  25. #define FINDMSGSTRINGW  L"commdlg_FindReplace"
  26. #ifndef CDN_FIRST
  27. #define CDN_FIRST    ((UINT)-601) /* also in commctrl.h */
  28. #define CDN_LAST    ((UINT)-699)
  29. #endif
  30. #define CDN_INITDONE    CDN_FIRST
  31. #define CDN_SELCHANGE    (CDN_FIRST-1U)
  32. #define CDN_FOLDERCHANGE    (CDN_FIRST-2U)
  33. #define CDN_SHAREVIOLATION    (CDN_FIRST-3U)
  34. #define CDN_HELP    (CDN_FIRST-4U)
  35. #define CDN_FILEOK    (CDN_FIRST-5U)
  36. #define CDN_TYPECHANGE    (CDN_FIRST-6U)
  37. #define CDM_FIRST    (WM_USER+100)
  38. #define CDM_LAST    (WM_USER+200)
  39. #define CDM_GETSPEC    CDM_FIRST
  40. #define CDM_GETFILEPATH    (CDM_FIRST+1)
  41. #define CDM_GETFOLDERPATH (CDM_FIRST+2)
  42. #define CDM_GETFOLDERIDLIST    (CDM_FIRST+3)
  43. #define CDM_SETCONTROLTEXT    (CDM_FIRST+4)
  44. #define CDM_HIDECONTROL    (CDM_FIRST+5)
  45. #define CDM_SETDEFEXT    (CDM_FIRST+6)
  46. #define CC_RGBINIT    1
  47. #define CC_FULLOPEN    2
  48. #define CC_PREVENTFULLOPEN    4
  49. #define CC_SHOWHELP    8
  50. #define CC_ENABLEHOOK    16
  51. #define CC_ENABLETEMPLATE    32
  52. #define CC_ENABLETEMPLATEHANDLE    64
  53. #define CC_SOLIDCOLOR    128
  54. #define CC_ANYCOLOR    256
  55. #define CF_SCREENFONTS    1
  56. #define CF_PRINTERFONTS    2
  57. #define CF_BOTH    3
  58. #define CF_SHOWHELP    4
  59. #define CF_ENABLEHOOK    8
  60. #define CF_ENABLETEMPLATE    16
  61. #define CF_ENABLETEMPLATEHANDLE    32
  62. #define CF_INITTOLOGFONTSTRUCT    64
  63. #define CF_USESTYLE    128
  64. #define CF_EFFECTS    256
  65. #define CF_APPLY    512
  66. #define CF_ANSIONLY    1024
  67. #define CF_SCRIPTSONLY    CF_ANSIONLY
  68. #define CF_NOVECTORFONTS    2048
  69. #define CF_NOOEMFONTS    2048
  70. #define CF_NOSIMULATIONS    4096
  71. #define CF_LIMITSIZE    8192
  72. #define CF_FIXEDPITCHONLY    16384
  73. #define CF_WYSIWYG    32768
  74. #define CF_FORCEFONTEXIST    65536
  75. #define CF_SCALABLEONLY    131072
  76. #define CF_TTONLY    262144
  77. #define CF_NOFACESEL     524288
  78. #define CF_NOSTYLESEL     1048576
  79. #define CF_NOSIZESEL     2097152
  80. #define CF_SELECTSCRIPT     4194304
  81. #define CF_NOSCRIPTSEL     8388608
  82. #define CF_NOVERTFONTS    0x1000000
  83. #define SIMULATED_FONTTYPE    0x8000
  84. #define PRINTER_FONTTYPE    0x4000
  85. #define SCREEN_FONTTYPE    0x2000
  86. #define BOLD_FONTTYPE    0x100
  87. #define ITALIC_FONTTYPE    0x0200
  88. #define REGULAR_FONTTYPE    0x0400
  89. #define WM_CHOOSEFONT_GETLOGFONT    (WM_USER+1)
  90. #define WM_CHOOSEFONT_SETLOGFONT    (WM_USER+101)
  91. #define WM_CHOOSEFONT_SETFLAGS    (WM_USER+102)
  92. #define OFN_ALLOWMULTISELECT 512
  93. #define OFN_CREATEPROMPT 0x2000
  94. #define OFN_ENABLEHOOK 32
  95. #define OFN_ENABLETEMPLATE 64
  96. #define OFN_ENABLETEMPLATEHANDLE 128
  97. #define OFN_EXPLORER 0x80000
  98. #define OFN_EXTENSIONDIFFERENT 0x400
  99. #define OFN_FILEMUSTEXIST 0x1000
  100. #define OFN_HIDEREADONLY 4
  101. #define OFN_LONGNAMES 0x200000
  102. #define OFN_NOCHANGEDIR 8
  103. #define OFN_NODEREFERENCELINKS 0x100000
  104. #define OFN_NOLONGNAMES 0x40000
  105. #define OFN_NONETWORKBUTTON 0x20000
  106. #define OFN_NOREADONLYRETURN 0x8000
  107. #define OFN_NOTESTFILECREATE 0x10000
  108. #define OFN_NOVALIDATE 256
  109. #define OFN_OVERWRITEPROMPT 2
  110. #define OFN_PATHMUSTEXIST 0x800
  111. #define OFN_READONLY 1
  112. #define OFN_SHAREAWARE 0x4000
  113. #define OFN_SHOWHELP 16
  114. #define OFN_SHAREFALLTHROUGH 2
  115. #define OFN_SHARENOWARN 1
  116. #define OFN_SHAREWARN 0
  117. #define OFN_NODEREFERENCELINKS    0x100000
  118. #define FR_DIALOGTERM 64
  119. #define FR_DOWN 1
  120. #define FR_ENABLEHOOK 256
  121. #define FR_ENABLETEMPLATE 512
  122. #define FR_ENABLETEMPLATEHANDLE 0x2000
  123. #define FR_FINDNEXT 8
  124. #define FR_HIDEUPDOWN 0x4000
  125. #define FR_HIDEMATCHCASE 0x8000
  126. #define FR_HIDEWHOLEWORD 0x10000
  127. #define FR_MATCHCASE 4
  128. #define FR_NOMATCHCASE 0x800
  129. #define FR_NOUPDOWN 0x400
  130. #define FR_NOWHOLEWORD 4096
  131. #define FR_REPLACE 16
  132. #define FR_REPLACEALL 32
  133. #define FR_SHOWHELP 128
  134. #define FR_WHOLEWORD 2
  135. #define PD_ALLPAGES    0
  136. #define PD_SELECTION    1
  137. #define PD_PAGENUMS    2
  138. #define PD_NOSELECTION    4
  139. #define PD_NOPAGENUMS    8
  140. #define PD_COLLATE    16
  141. #define PD_PRINTTOFILE    32
  142. #define PD_PRINTSETUP    64
  143. #define PD_NOWARNING    128
  144. #define PD_RETURNDC    256
  145. #define PD_RETURNIC    512
  146. #define PD_RETURNDEFAULT    1024
  147. #define PD_SHOWHELP    2048
  148. #define PD_ENABLEPRINTHOOK    4096
  149. #define PD_ENABLESETUPHOOK    8192
  150. #define PD_ENABLEPRINTTEMPLATE    16384
  151. #define PD_ENABLESETUPTEMPLATE 32768
  152. #define PD_ENABLEPRINTTEMPLATEHANDLE 65536
  153. #define PD_ENABLESETUPTEMPLATEHANDLE 0x20000
  154. #define PD_USEDEVMODECOPIES    0x40000
  155. #define PD_USEDEVMODECOPIESANDCOLLATE    0x40000
  156. #define PD_DISABLEPRINTTOFILE    0x80000
  157. #define PD_HIDEPRINTTOFILE    0x100000
  158. #define PD_NONETWORKBUTTON    0x200000
  159. #define PSD_DEFAULTMINMARGINS    0
  160. #define PSD_INWININIINTLMEASURE    0
  161. #define PSD_MINMARGINS    1
  162. #define PSD_MARGINS    2
  163. #define PSD_INTHOUSANDTHSOFINCHES    4
  164. #define PSD_INHUNDREDTHSOFMILLIMETERS    8
  165. #define PSD_DISABLEMARGINS    16
  166. #define PSD_DISABLEPRINTER    32
  167. #define PSD_NOWARNING    128
  168. #define PSD_DISABLEORIENTATION    256
  169. #define PSD_DISABLEPAPER    512
  170. #define PSD_RETURNDEFAULT    1024
  171. #define PSD_SHOWHELP    2048
  172. #define PSD_ENABLEPAGESETUPHOOK 8192
  173. #define PSD_ENABLEPAGESETUPTEMPLATE    0x8000
  174. #define PSD_ENABLEPAGESETUPTEMPLATEHANDLE    0x20000
  175. #define PSD_ENABLEPAGEPAINTHOOK    0x40000
  176. #define PSD_DISABLEPAGEPAINTING    0x80000
  177. #define WM_PSD_PAGESETUPDLG    WM_USER
  178. #define WM_PSD_FULLPAGERECT    (WM_USER+1)
  179. #define WM_PSD_MINMARGINRECT    (WM_USER+2)
  180. #define WM_PSD_MARGINRECT    (WM_USER+3)
  181. #define WM_PSD_GREEKTEXTRECT    (WM_USER+4)
  182. #define WM_PSD_ENVSTAMPRECT    (WM_USER+5)
  183. #define WM_PSD_YAFULLPAGERECT    (WM_USER+6)
  184. #define CD_LBSELNOITEMS (-1)
  185. #define CD_LBSELCHANGE   0
  186. #define CD_LBSELSUB      1
  187. #define CD_LBSELADD      2
  188. #define DN_DEFAULTPRN    1
  189.  
  190. #ifndef SNDMSG
  191. #ifdef __cplusplus
  192. #define SNDMSG ::SendMessage
  193. #else
  194. #define SNDMSG SendMessage
  195. #endif
  196. #endif /* ifndef SNDMSG */
  197.  
  198. #define CommDlg_OpenSave_GetSpec(d,s,m) (int)SNDMSG(d,CDM_GETSPEC,m,(LPARAM)s)
  199. #define CommDlg_OpenSave_GetSpecA CommDlg_OpenSave_GetSpec
  200. #define CommDlg_OpenSave_GetSpecW CommDlg_OpenSave_GetSpec
  201. #define CommDlg_OpenSave_GetFilePath(d,s,m) (int)SNDMSG(d,CDM_GETFILEPATH,m,(LPARAM)s)
  202. #define CommDlg_OpenSave_GetFilePathA CommDlg_OpenSave_GetFilePath
  203. #define CommDlg_OpenSave_GetFilePathW CommDlg_OpenSave_GetFilePath
  204. #define CommDlg_OpenSave_GetFolderPath(d,s,m) (int)SNDMSG(d,CDM_GETFOLDERPATH,m,(LPARAM)(LPSTR)s)
  205. #define CommDlg_OpenSave_GetFolderPathA CommDlg_OpenSave_GetFolderPath
  206. #define CommDlg_OpenSave_GetFolderPathW CommDlg_OpenSave_GetFolderPath
  207. #define CommDlg_OpenSave_GetFolderIDList(d,i,m) (int)SNDMSG(d,CDM_GETFOLDERIDLIST,m,(LPARAM)i)
  208. #define CommDlg_OpenSave_SetControlText(d,i,t) (void)SNDMSG(d,CDM_SETCONTROLTEXT,i,(LPARAM)t)
  209. #define CommDlg_OpenSave_HideControl(d,i) (void)SNDMSG(d,CDM_HIDECONTROL,i,0)
  210. #define CommDlg_OpenSave_SetDefExt(d,e) (void)SNDMSG(d,CDM_SETDEFEXT,0,(LPARAM)e)
  211.  
  212. typedef UINT (APIENTRY *__CDHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
  213. typedef __CDHOOKPROC LPCCHOOKPROC;
  214. typedef __CDHOOKPROC LPCFHOOKPROC;
  215. typedef __CDHOOKPROC LPFRHOOKPROC;
  216. typedef __CDHOOKPROC LPOFNHOOKPROC;
  217. typedef __CDHOOKPROC LPPAGEPAINTHOOK;
  218. typedef __CDHOOKPROC LPPAGESETUPHOOK;
  219. typedef __CDHOOKPROC LPSETUPHOOKPROC;
  220. typedef __CDHOOKPROC LPPRINTHOOKPROC;
  221. typedef struct tagCHOOSECOLORA {
  222.     DWORD    lStructSize;
  223.     HWND    hwndOwner;
  224.     HWND    hInstance;
  225.     COLORREF    rgbResult;
  226.     COLORREF*    lpCustColors;
  227.     DWORD    Flags;
  228.     LPARAM    lCustData;
  229.     LPCCHOOKPROC    lpfnHook;
  230.     LPCSTR    lpTemplateName;
  231. } CHOOSECOLORA,*LPCHOOSECOLORA;
  232. typedef struct tagCHOOSECOLORW {
  233.     DWORD    lStructSize;
  234.     HWND    hwndOwner;
  235.     HWND    hInstance;
  236.     COLORREF    rgbResult;
  237.     COLORREF*    lpCustColors;
  238.     DWORD    Flags;
  239.     LPARAM    lCustData;
  240.     LPCCHOOKPROC    lpfnHook;
  241.     LPCWSTR    lpTemplateName;
  242. } CHOOSECOLORW,*LPCHOOSECOLORW;
  243. typedef struct tagCHOOSEFONTA {
  244.     DWORD    lStructSize;
  245.     HWND    hwndOwner;
  246.     HDC    hDC;
  247.     LPLOGFONTA    lpLogFont;
  248.     INT    iPointSize;
  249.     DWORD    Flags;
  250.     DWORD    rgbColors;
  251.     LPARAM    lCustData;
  252.     LPCFHOOKPROC    lpfnHook;
  253.     LPCSTR    lpTemplateName;
  254.     HINSTANCE    hInstance;
  255.     LPSTR    lpszStyle;
  256.     WORD    nFontType;
  257.     WORD    ___MISSING_ALIGNMENT__;
  258.     INT    nSizeMin;
  259.     INT    nSizeMax;
  260. } CHOOSEFONTA,*LPCHOOSEFONTA;
  261. typedef struct tagCHOOSEFONTW {
  262.     DWORD    lStructSize;
  263.     HWND    hwndOwner;
  264.     HDC    hDC;
  265.     LPLOGFONTW    lpLogFont;
  266.     INT    iPointSize;
  267.     DWORD    Flags;
  268.     DWORD    rgbColors;
  269.     LPARAM    lCustData;
  270.     LPCFHOOKPROC    lpfnHook;
  271.     LPCWSTR    lpTemplateName;
  272.     HINSTANCE    hInstance;
  273.     LPWSTR    lpszStyle;
  274.     WORD    nFontType;
  275.     WORD    ___MISSING_ALIGNMENT__;
  276.     INT    nSizeMin;
  277.     INT    nSizeMax;
  278. } CHOOSEFONTW,*LPCHOOSEFONTW;
  279. typedef struct tagDEVNAMES {
  280.     WORD wDriverOffset;
  281.     WORD wDeviceOffset;
  282.     WORD wOutputOffset;
  283.     WORD wDefault;
  284. } DEVNAMES,*LPDEVNAMES;
  285. typedef struct {
  286.     DWORD lStructSize;
  287.     HWND hwndOwner;
  288.     HINSTANCE hInstance;
  289.     DWORD Flags;
  290.     LPSTR lpstrFindWhat;
  291.     LPSTR lpstrReplaceWith;
  292.     WORD wFindWhatLen;
  293.     WORD wReplaceWithLen;
  294.     LPARAM lCustData;
  295.     LPFRHOOKPROC lpfnHook;
  296.     LPCSTR lpTemplateName;
  297. } FINDREPLACEA,*LPFINDREPLACEA;
  298. typedef struct {
  299.     DWORD lStructSize;
  300.     HWND hwndOwner;
  301.     HINSTANCE hInstance;
  302.     DWORD Flags;
  303.     LPWSTR lpstrFindWhat;
  304.     LPWSTR lpstrReplaceWith;
  305.     WORD wFindWhatLen;
  306.     WORD wReplaceWithLen;
  307.     LPARAM lCustData;
  308.     LPFRHOOKPROC lpfnHook;
  309.     LPCWSTR lpTemplateName;
  310. } FINDREPLACEW,*LPFINDREPLACEW;
  311. typedef struct tagOFNA {
  312.     DWORD lStructSize;
  313.     HWND hwndOwner;
  314.     HINSTANCE hInstance;
  315.     LPCSTR lpstrFilter;
  316.     LPSTR lpstrCustomFilter;
  317.     DWORD nMaxCustFilter;
  318.     DWORD nFilterIndex;
  319.     LPSTR lpstrFile;
  320.     DWORD nMaxFile;
  321.     LPSTR lpstrFileTitle;
  322.     DWORD nMaxFileTitle;
  323.     LPCSTR lpstrInitialDir;
  324.     LPCSTR lpstrTitle;
  325.     DWORD Flags;
  326.     WORD nFileOffset;
  327.     WORD nFileExtension;
  328.     LPCSTR lpstrDefExt;
  329.     DWORD lCustData;
  330.     LPOFNHOOKPROC lpfnHook;
  331.     LPCSTR lpTemplateName;
  332. } OPENFILENAMEA,*LPOPENFILENAMEA;
  333. typedef struct tagOFNW {
  334.     DWORD lStructSize;
  335.     HWND hwndOwner;
  336.     HINSTANCE hInstance;
  337.     LPCWSTR lpstrFilter;
  338.     LPWSTR lpstrCustomFilter;
  339.     DWORD nMaxCustFilter;
  340.     DWORD nFilterIndex;
  341.     LPWSTR lpstrFile;
  342.     DWORD nMaxFile;
  343.     LPWSTR lpstrFileTitle;
  344.     DWORD nMaxFileTitle;
  345.     LPCWSTR lpstrInitialDir;
  346.     LPCWSTR lpstrTitle;
  347.     DWORD Flags;
  348.     WORD nFileOffset;
  349.     WORD nFileExtension;
  350.     LPCWSTR lpstrDefExt;
  351.     DWORD lCustData;
  352.     LPOFNHOOKPROC lpfnHook;
  353.     LPCWSTR lpTemplateName;
  354. } OPENFILENAMEW,*LPOPENFILENAMEW;
  355. typedef struct _OFNOTIFYA {
  356.     NMHDR hdr;
  357.     LPOPENFILENAMEA lpOFN;
  358.     LPSTR pszFile;
  359. } OFNOTIFYA,*LPOFNOTIFYA;
  360. typedef struct _OFNOTIFYW {
  361.     NMHDR hdr;
  362.     LPOPENFILENAMEW lpOFN;
  363.     LPWSTR pszFile;
  364. } OFNOTIFYW,*LPOFNOTIFYW;
  365. typedef struct tagPSDA {
  366.     DWORD lStructSize;
  367.     HWND hwndOwner;
  368.     HGLOBAL hDevMode;
  369.     HGLOBAL hDevNames;
  370.     DWORD Flags;
  371.     POINT ptPaperSize;
  372.     RECT rtMinMargin;
  373.     RECT rtMargin;
  374.     HINSTANCE hInstance;
  375.     LPARAM lCustData;
  376.     LPPAGESETUPHOOK lpfnPageSetupHook;
  377.     LPPAGEPAINTHOOK lpfnPagePaintHook;
  378.     LPCSTR lpPageSetupTemplateName;
  379.     HGLOBAL hPageSetupTemplate;
  380. } PAGESETUPDLGA,*LPPAGESETUPDLGA;
  381. typedef struct tagPSDW {
  382.     DWORD lStructSize;
  383.     HWND hwndOwner;
  384.     HGLOBAL hDevMode;
  385.     HGLOBAL hDevNames;
  386.     DWORD Flags;
  387.     POINT ptPaperSize;
  388.     RECT rtMinMargin;
  389.     RECT rtMargin;
  390.     HINSTANCE hInstance;
  391.     LPARAM lCustData;
  392.     LPPAGESETUPHOOK lpfnPageSetupHook;
  393.     LPPAGEPAINTHOOK lpfnPagePaintHook;
  394.     LPCWSTR lpPageSetupTemplateName;
  395.     HGLOBAL hPageSetupTemplate;
  396. } PAGESETUPDLGW,*LPPAGESETUPDLGW;
  397. typedef struct tagPDA {
  398.     DWORD lStructSize;
  399.     HWND hwndOwner;
  400.     HANDLE hDevMode;
  401.     HANDLE hDevNames;
  402.     HDC hDC;
  403.     DWORD Flags;
  404.     WORD nFromPage;
  405.     WORD nToPage;
  406.     WORD nMinPage;
  407.     WORD nMaxPage;
  408.     WORD nCopies;
  409.     HINSTANCE hInstance;
  410.     DWORD lCustData;
  411.     LPPRINTHOOKPROC lpfnPrintHook;
  412.     LPSETUPHOOKPROC lpfnSetupHook;
  413.     LPCSTR lpPrintTemplateName;
  414.     LPCSTR lpSetupTemplateName;
  415.     HANDLE hPrintTemplate;
  416.     HANDLE hSetupTemplate;
  417. } PRINTDLGA,*LPPRINTDLGA;
  418. typedef struct tagPDW {
  419.     DWORD lStructSize;
  420.     HWND hwndOwner;
  421.     HANDLE hDevMode;
  422.     HANDLE hDevNames;
  423.     HDC hDC;
  424.     DWORD Flags;
  425.     WORD nFromPage;
  426.     WORD nToPage;
  427.     WORD nMinPage;
  428.     WORD nMaxPage;
  429.     WORD nCopies;
  430.     HINSTANCE hInstance;
  431.     DWORD lCustData;
  432.     LPPRINTHOOKPROC lpfnPrintHook;
  433.     LPSETUPHOOKPROC lpfnSetupHook;
  434.     LPCWSTR lpPrintTemplateName;
  435.     LPCWSTR lpSetupTemplateName;
  436.     HANDLE hPrintTemplate;
  437.     HANDLE hSetupTemplate;
  438. } PRINTDLGW,*LPPRINTDLGW;
  439. #if (WINVER >= 0x0500) && !defined (__OBJC__)
  440. #include <unknwn.h>  /* for LPUNKNOWN  */ 
  441. #include <prsht.h>   /* for HPROPSHEETPAGE  */
  442. typedef struct tagPRINTPAGERANGE {
  443.    DWORD  nFromPage;
  444.    DWORD  nToPage;
  445. } PRINTPAGERANGE, *LPPRINTPAGERANGE;
  446. typedef struct tagPDEXA {
  447.    DWORD lStructSize;
  448.    HWND hwndOwner;
  449.    HGLOBAL hDevMode;
  450.    HGLOBAL hDevNames;
  451.    HDC hDC;
  452.    DWORD Flags;
  453.    DWORD Flags2;
  454.    DWORD ExclusionFlags;
  455.    DWORD nPageRanges;
  456.    DWORD nMaxPageRanges;
  457.    LPPRINTPAGERANGE lpPageRanges;
  458.    DWORD nMinPage;
  459.    DWORD nMaxPage;
  460.    DWORD nCopies;
  461.    HINSTANCE hInstance;
  462.    LPCSTR lpPrintTemplateName;
  463.    LPUNKNOWN lpCallback;
  464.    DWORD nPropertyPages;
  465.    HPROPSHEETPAGE *lphPropertyPages;
  466.    DWORD nStartPage;
  467.    DWORD dwResultAction;
  468. } PRINTDLGEXA, *LPPRINTDLGEXA;
  469. typedef struct tagPDEXW {
  470.    DWORD lStructSize;
  471.    HWND hwndOwner;
  472.    HGLOBAL hDevMode;
  473.    HGLOBAL hDevNames;
  474.    HDC hDC;
  475.    DWORD Flags;
  476.    DWORD Flags2;
  477.    DWORD ExclusionFlags;
  478.    DWORD nPageRanges;
  479.    DWORD nMaxPageRanges;
  480.    LPPRINTPAGERANGE lpPageRanges;
  481.    DWORD nMinPage;
  482.    DWORD nMaxPage;
  483.    DWORD nCopies;
  484.    HINSTANCE hInstance;
  485.    LPCWSTR lpPrintTemplateName;
  486.    LPUNKNOWN lpCallback;
  487.    DWORD nPropertyPages;
  488.    HPROPSHEETPAGE *lphPropertyPages;
  489.    DWORD nStartPage;
  490.    DWORD dwResultAction;
  491. } PRINTDLGEXW, *LPPRINTDLGEXW;
  492. #endif /* WINVER >= 0x0500 */
  493.  
  494. BOOL WINAPI ChooseColorA(LPCHOOSECOLORA);
  495. BOOL WINAPI ChooseColorW(LPCHOOSECOLORW);
  496. BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
  497. BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
  498. DWORD WINAPI CommDlgExtendedError(void);
  499. HWND WINAPI FindTextA(LPFINDREPLACEA);
  500. HWND WINAPI FindTextW(LPFINDREPLACEW);
  501. short WINAPI GetFileTitleA(LPCSTR,LPSTR,WORD);
  502. short WINAPI GetFileTitleW(LPCWSTR,LPWSTR,WORD);
  503. BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA);
  504. BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW);
  505. BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA);
  506. BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW);
  507. BOOL WINAPI PageSetupDlgA(LPPAGESETUPDLGA);
  508. BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW);
  509. BOOL WINAPI PrintDlgA(LPPRINTDLGA);
  510. BOOL WINAPI PrintDlgW(LPPRINTDLGW);
  511. HWND WINAPI ReplaceTextA(LPFINDREPLACEA);
  512. HWND WINAPI ReplaceTextW(LPFINDREPLACEW);
  513. #if (WINVER >= 0x0500) && !defined (__OBJC__)
  514. HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA);
  515. HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW);
  516. #endif /* WINVER >= 0x0500 */
  517.  
  518. #ifdef UNICODE
  519. #define LBSELCHSTRING  LBSELCHSTRINGW
  520. #define SHAREVISTRING  SHAREVISTRINGW
  521. #define FILEOKSTRING   FILEOKSTRINGW
  522. #define COLOROKSTRING  COLOROKSTRINGW
  523. #define SETRGBSTRING   SETRGBSTRINGW
  524. #define HELPMSGSTRING  HELPMSGSTRINGW
  525. #define FINDMSGSTRING  FINDMSGSTRINGW
  526. typedef CHOOSECOLORW CHOOSECOLOR,*LPCHOOSECOLOR;
  527. typedef CHOOSEFONTW CHOOSEFONT,*LPCHOOSEFONT;
  528. typedef FINDREPLACEW FINDREPLACE,*LPFINDREPLACE;
  529. typedef OPENFILENAMEW OPENFILENAME,*LPOPENFILENAME;
  530. typedef OFNOTIFYW OFNOTIFY,*LPOFNOTIFY;
  531. typedef PAGESETUPDLGW PAGESETUPDLG,*LPPAGESETUPDLG;
  532. typedef PRINTDLGW PRINTDLG,*LPPRINTDLG;
  533. #define ChooseColor ChooseColorW
  534. #define ChooseFont ChooseFontW
  535. #define FindText FindTextW
  536. #define GetFileTitle GetFileTitleW
  537. #define GetOpenFileName GetOpenFileNameW
  538. #define GetSaveFileName GetSaveFileNameW
  539. #define PageSetupDlg PageSetupDlgW
  540. #define PrintDlg PrintDlgW
  541. #define ReplaceText ReplaceTextW
  542. #if (WINVER >= 0x0500) && !defined (__OBJC__)
  543. typedef PRINTDLGEXW PRINTDLGEX, *LPPRINTDLGEX;
  544. #define PrintDlgEx PrintDlgExW
  545. #endif /* WINVER >= 0x0500 */
  546. #else /* UNICODE */
  547. #define LBSELCHSTRING  LBSELCHSTRINGA
  548. #define SHAREVISTRING  SHAREVISTRINGA
  549. #define FILEOKSTRING   FILEOKSTRINGA
  550. #define COLOROKSTRING  COLOROKSTRINGA
  551. #define SETRGBSTRING   SETRGBSTRINGA
  552. #define HELPMSGSTRING  HELPMSGSTRINGA
  553. #define FINDMSGSTRING  FINDMSGSTRINGA
  554. typedef CHOOSECOLORA CHOOSECOLOR,*LPCHOOSECOLOR;
  555. typedef CHOOSEFONTA CHOOSEFONT,*LPCHOOSEFONT;
  556. typedef FINDREPLACEA FINDREPLACE,*LPFINDREPLACE;
  557. typedef OPENFILENAMEA OPENFILENAME,*LPOPENFILENAME;
  558. typedef OFNOTIFYA OFNOTIFY,*LPOFNOTIFY;
  559. typedef PAGESETUPDLGA PAGESETUPDLG,*LPPAGESETUPDLG;
  560. typedef PRINTDLGA PRINTDLG,*LPPRINTDLG;
  561. #define ChooseColor ChooseColorA
  562. #define ChooseFont ChooseFontA
  563. #define FindText FindTextA
  564. #define GetFileTitle GetFileTitleA
  565. #define GetOpenFileName GetOpenFileNameA
  566. #define GetSaveFileName GetSaveFileNameA
  567. #define PageSetupDlg PageSetupDlgA
  568. #define PrintDlg PrintDlgA
  569. #define ReplaceText ReplaceTextA
  570. #if (WINVER >= 0x0500) && !defined (__OBJC__)
  571. typedef PRINTDLGEXA PRINTDLGEX, *LPPRINTDLGEX;
  572. #define PrintDlgEx PrintDlgExA
  573. #endif /* WINVER >= 0x0500 */
  574. #endif /* UNICODE */
  575. #pragma pack(pop)
  576. #ifdef __cplusplus
  577. }
  578. #endif
  579. #endif
  580.