Annotation of mstools/h/commdlg.h, revision 1.1.1.4

1.1.1.3   root        1: /*++
                      2: 
1.1.1.4 ! root        3: Copyright (c) 1992-1993  Microsoft Corporation
1.1.1.3   root        4: 
                      5: Module Name:
                      6: 
                      7:     commdlg.h
                      8: 
                      9: Abstract:
                     10: 
                     11:     common dialog definitions; #include <windows.h> must be precluded
                     12: 
                     13: Revision History:
                     14: 
                     15: --*/
                     16: 
                     17: #ifndef _INC_COMMDLG
                     18: #define _INC_COMMDLG
                     19: 
                     20: #ifndef RC_INVOKED
                     21: #pragma pack(1)         /* Assume byte packing throughout */
                     22: #endif /* !RC_INVOKED */
                     23: 
                     24: #ifdef __cplusplus
                     25: extern "C" {            /* Assume C declarations for C++ */
1.1.1.4 ! root       26: #endif  /* __cplusplus */
1.1.1.3   root       27: 
                     28: typedef UINT (APIENTRY *LPOFNHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
                     29: 
                     30: typedef struct tagOFNA {
                     31:    DWORD   lStructSize;
                     32:    HWND    hwndOwner;
                     33:    HINSTANCE  hInstance;
                     34:    LPCSTR   lpstrFilter;
                     35:    LPSTR   lpstrCustomFilter;
                     36:    DWORD   nMaxCustFilter;
                     37:    DWORD   nFilterIndex;
                     38:    LPSTR   lpstrFile;
                     39:    DWORD   nMaxFile;
                     40:    LPSTR   lpstrFileTitle;
                     41:    DWORD   nMaxFileTitle;
                     42:    LPCSTR   lpstrInitialDir;
                     43:    LPCSTR   lpstrTitle;
                     44:    DWORD   Flags;
                     45:    WORD    nFileOffset;
                     46:    WORD    nFileExtension;
                     47:    LPCSTR   lpstrDefExt;
1.1.1.4 ! root       48:    LPARAM   lCustData;
1.1.1.3   root       49:    LPOFNHOOKPROC lpfnHook;
                     50:    LPCSTR   lpTemplateName;
                     51: } OPENFILENAMEA;
                     52: 
                     53: typedef struct tagOFNW {
                     54:    DWORD   lStructSize;
                     55:    HWND    hwndOwner;
                     56:    HINSTANCE  hInstance;
                     57:    LPCWSTR  lpstrFilter;
                     58:    LPWSTR  lpstrCustomFilter;
                     59:    DWORD   nMaxCustFilter;
                     60:    DWORD   nFilterIndex;
                     61:    LPWSTR  lpstrFile;
                     62:    DWORD   nMaxFile;
                     63:    LPWSTR  lpstrFileTitle;
                     64:    DWORD   nMaxFileTitle;
                     65:    LPCWSTR  lpstrInitialDir;
                     66:    LPCWSTR  lpstrTitle;
                     67:    DWORD   Flags;
                     68:    WORD    nFileOffset;
                     69:    WORD    nFileExtension;
                     70:    LPCWSTR  lpstrDefExt;
1.1.1.4 ! root       71:    LPARAM   lCustData;
1.1.1.3   root       72:    LPOFNHOOKPROC lpfnHook;
                     73:    LPCWSTR   lpTemplateName;
                     74: } OPENFILENAMEW;
                     75: 
                     76: #ifdef UNICODE
                     77: #define OPENFILENAME OPENFILENAMEW
                     78: #else
                     79: #define OPENFILENAME OPENFILENAMEA
                     80: #endif // ! UNICODE
                     81: 
                     82: typedef OPENFILENAMEA * LPOPENFILENAMEA;
                     83: typedef OPENFILENAMEW * LPOPENFILENAMEW;
                     84: typedef OPENFILENAME * LPOPENFILENAME;
                     85: 
                     86: BOOL  APIENTRY     GetOpenFileNameA(LPOPENFILENAMEA);
                     87: BOOL  APIENTRY     GetOpenFileNameW(LPOPENFILENAMEW);
                     88: 
                     89: #ifdef UNICODE
                     90: #define GetOpenFileName GetOpenFileNameW
                     91: #else
                     92: #define GetOpenFileName GetOpenFileNameA
                     93: #endif // ! UNICODE
                     94: 
                     95: BOOL  APIENTRY     GetSaveFileNameA(LPOPENFILENAMEA);
                     96: BOOL  APIENTRY     GetSaveFileNameW(LPOPENFILENAMEW);
                     97: #ifdef UNICODE
                     98: #define GetSaveFileName GetSaveFileNameW
                     99: #else
                    100: #define GetSaveFileName GetSaveFileNameA
                    101: #endif // ! UNICODE
                    102: 
                    103: short APIENTRY     GetFileTitleA(LPCSTR, LPSTR, WORD);
                    104: short APIENTRY     GetFileTitleW(LPCWSTR, LPWSTR, WORD);
                    105: 
                    106: #ifdef UNICODE
                    107: #define GetFileTitle GetFileTitleW
                    108: #else
                    109: #define GetFileTitle GetFileTitleA
                    110: #endif // ! UNICODE
1.1       root      111: 
                    112: #define OFN_READONLY                 0x00000001
                    113: #define OFN_OVERWRITEPROMPT          0x00000002
                    114: #define OFN_HIDEREADONLY             0x00000004
                    115: #define OFN_NOCHANGEDIR              0x00000008
                    116: #define OFN_SHOWHELP                 0x00000010
                    117: #define OFN_ENABLEHOOK               0x00000020
                    118: #define OFN_ENABLETEMPLATE           0x00000040
                    119: #define OFN_ENABLETEMPLATEHANDLE     0x00000080
                    120: #define OFN_NOVALIDATE               0x00000100
                    121: #define OFN_ALLOWMULTISELECT         0x00000200
                    122: #define OFN_EXTENSIONDIFFERENT       0x00000400
                    123: #define OFN_PATHMUSTEXIST            0x00000800
                    124: #define OFN_FILEMUSTEXIST            0x00001000
                    125: #define OFN_CREATEPROMPT             0x00002000
                    126: #define OFN_SHAREAWARE               0x00004000
                    127: #define OFN_NOREADONLYRETURN         0x00008000
1.1.1.2   root      128: #define OFN_NOTESTFILECREATE         0x00010000
1.1.1.3   root      129: #define OFN_NONETWORKBUTTON          0x00020000
1.1.1.4 ! root      130: #define OFN_NOLONGNAMES              0x00040000
1.1       root      131: 
1.1.1.3   root      132: // Return values for the registered message sent to the hook function
                    133: // when a sharing violation occurs.  OFN_SHAREFALLTHROUGH allows the
                    134: // filename to be accepted, OFN_SHARENOWARN rejects the name but puts
                    135: // up no warning (returned when the app has already put up a warning
                    136: // message), and OFN_SHAREWARN puts up the default warning message
                    137: // for sharing violations.
                    138: //
                    139: // Note:  Undefined return values map to OFN_SHAREWARN, but are
                    140: //        reserved for future use.
1.1.1.2   root      141: 
1.1       root      142: #define OFN_SHAREFALLTHROUGH     2
                    143: #define OFN_SHARENOWARN          1
                    144: #define OFN_SHAREWARN            0
                    145: 
1.1.1.3   root      146: typedef UINT (APIENTRY *LPCCHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
1.1       root      147: 
1.1.1.4 ! root      148: typedef struct tagCHOOSECOLORA {
1.1.1.3   root      149:    DWORD   lStructSize;
                    150:    HWND    hwndOwner;
                    151:    HWND    hInstance;
1.1.1.4 ! root      152:    COLORREF  rgbResult;
        !           153:    COLORREF* lpCustColors;
1.1.1.3   root      154:    DWORD   Flags;
1.1.1.4 ! root      155:    LPARAM  lCustData;
1.1.1.3   root      156:    LPCCHOOKPROC lpfnHook;
                    157:    LPCSTR   lpTemplateName;
                    158: } CHOOSECOLORA;
                    159: 
1.1.1.4 ! root      160: typedef struct tagCHOOSECOLORW {
1.1.1.3   root      161:    DWORD   lStructSize;
                    162:    HWND    hwndOwner;
                    163:    HWND    hInstance;
1.1.1.4 ! root      164:    COLORREF  rgbResult;
        !           165:    COLORREF* lpCustColors;
1.1.1.3   root      166:    DWORD   Flags;
1.1.1.4 ! root      167:    LPARAM  lCustData;
1.1.1.3   root      168:    LPCCHOOKPROC lpfnHook;
                    169:    LPCWSTR   lpTemplateName;
                    170: } CHOOSECOLORW;
                    171: 
                    172: #ifdef UNICODE
                    173: #define CHOOSECOLOR CHOOSECOLORW
                    174: #else
                    175: #define CHOOSECOLOR CHOOSECOLORA
                    176: #endif // ! UNICODE
                    177: 
                    178: typedef CHOOSECOLORA *LPCHOOSECOLORA;
                    179: typedef CHOOSECOLORW *LPCHOOSECOLORW;
                    180: typedef CHOOSECOLOR *LPCHOOSECOLOR;
                    181: 
                    182: BOOL  APIENTRY ChooseColorA(LPCHOOSECOLORA);
                    183: BOOL  APIENTRY ChooseColorW(LPCHOOSECOLORW);
                    184: 
                    185: #ifdef UNICODE
                    186: #define ChooseColor ChooseColorW
                    187: #else
                    188: #define ChooseColor ChooseColorA
                    189: #endif // ! UNICODE
1.1       root      190: 
                    191: #define CC_RGBINIT               0x00000001
                    192: #define CC_FULLOPEN              0x00000002
                    193: #define CC_PREVENTFULLOPEN       0x00000004
                    194: #define CC_SHOWHELP              0x00000008
                    195: #define CC_ENABLEHOOK            0x00000010
                    196: #define CC_ENABLETEMPLATE        0x00000020
                    197: #define CC_ENABLETEMPLATEHANDLE  0x00000040
                    198: 
1.1.1.3   root      199: typedef UINT (APIENTRY *LPFRHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
1.1       root      200: 
1.1.1.4 ! root      201: typedef struct tagFINDREPLACEA {
1.1.1.3   root      202:    DWORD    lStructSize;        // size of this struct 0x20
                    203:    HWND     hwndOwner;          // handle to owner's window
                    204:    HINSTANCE hInstance;          // instance handle of.EXE that
                    205:                                 //   contains cust. dlg. template
                    206:    DWORD    Flags;              // one or more of the FR_??
                    207:    LPSTR    lpstrFindWhat;      // ptr. to search string
                    208:    LPSTR    lpstrReplaceWith;   // ptr. to replace string
                    209:    WORD     wFindWhatLen;       // size of find buffer
                    210:    WORD     wReplaceWithLen;    // size of replace buffer
1.1.1.4 ! root      211:    LPARAM   lCustData;          // data passed to hook fn.
1.1.1.3   root      212:    LPFRHOOKPROC lpfnHook;       // ptr. to hook fn. or NULL
                    213:    LPCSTR    lpTemplateName;     // custom template name
                    214: } FINDREPLACEA;
                    215: 
1.1.1.4 ! root      216: typedef struct tagFINDREPLACEW {
1.1.1.3   root      217:    DWORD    lStructSize;        // size of this struct 0x20
                    218:    HWND     hwndOwner;          // handle to owner's window
                    219:    HINSTANCE hInstance;          // instance handle of.EXE that
                    220:                                 //   contains cust. dlg. template
                    221:    DWORD    Flags;              // one or more of the FR_??
                    222:    LPWSTR   lpstrFindWhat;      // ptr. to search string
                    223:    LPWSTR   lpstrReplaceWith;   // ptr. to replace string
                    224:    WORD     wFindWhatLen;       // size of find buffer
                    225:    WORD     wReplaceWithLen;    // size of replace buffer
1.1.1.4 ! root      226:    LPARAM   lCustData;          // data passed to hook fn.
1.1.1.3   root      227:    LPFRHOOKPROC lpfnHook;       // ptr. to hook fn. or NULL
                    228:    LPCWSTR   lpTemplateName;     // custom template name
                    229: } FINDREPLACEW;
                    230: 
                    231: #ifdef UNICODE
                    232: #define FINDREPLACE FINDREPLACEW
                    233: #else
                    234: #define FINDREPLACE FINDREPLACEA
                    235: #endif // ! UNICODE
                    236: 
                    237: typedef FINDREPLACEA  *LPFINDREPLACEA;
                    238: typedef FINDREPLACEW *LPFINDREPLACEW;
                    239: typedef FINDREPLACE *LPFINDREPLACE;
1.1       root      240: 
1.1.1.2   root      241: #define FR_DOWN                         0x00000001
1.1.1.3   root      242: #define FR_WHOLEWORD                    0x00000002
                    243: #define FR_MATCHCASE                    0x00000004
1.1.1.2   root      244: #define FR_FINDNEXT                     0x00000008
                    245: #define FR_REPLACE                      0x00000010
1.1.1.3   root      246: #define FR_REPLACEALL                   0x00000020
                    247: #define FR_DIALOGTERM                   0x00000040
1.1.1.2   root      248: #define FR_SHOWHELP                     0x00000080
1.1.1.3   root      249: #define FR_ENABLEHOOK                   0x00000100
                    250: #define FR_ENABLETEMPLATE               0x00000200
1.1.1.2   root      251: #define FR_NOUPDOWN                     0x00000400
1.1.1.3   root      252: #define FR_NOMATCHCASE                  0x00000800
                    253: #define FR_NOWHOLEWORD                  0x00001000
1.1.1.2   root      254: #define FR_ENABLETEMPLATEHANDLE         0x00002000
1.1.1.3   root      255: #define FR_HIDEUPDOWN                   0x00004000
                    256: #define FR_HIDEMATCHCASE                0x00008000
                    257: #define FR_HIDEWHOLEWORD                0x00010000
                    258: 
                    259: HWND  APIENTRY    FindTextA(LPFINDREPLACEA);
                    260: HWND  APIENTRY    FindTextW(LPFINDREPLACEW);
                    261: 
                    262: #ifdef UNICODE
                    263: #define FindText FindTextW
                    264: #else
                    265: #define FindText FindTextA
                    266: #endif // ! UNICODE
                    267: 
                    268: HWND  APIENTRY    ReplaceTextA(LPFINDREPLACEA);
                    269: HWND  APIENTRY    ReplaceTextW(LPFINDREPLACEW);
                    270: 
                    271: #ifdef UNICODE
                    272: #define ReplaceText ReplaceTextW
                    273: #else
                    274: #define ReplaceText ReplaceTextA
                    275: #endif // ! UNICODE
                    276: 
                    277: typedef UINT (APIENTRY *LPCFHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
                    278: 
1.1.1.4 ! root      279: typedef struct tagCHOOSEFONTA {
1.1.1.3   root      280:    DWORD           lStructSize;
                    281:    HWND            hwndOwner;          // caller's window handle
                    282:    HDC             hDC;                // printer DC/IC or NULL
                    283:    LPLOGFONTA      lpLogFont;          // ptr. to a LOGFONT struct
                    284:    INT             iPointSize;         // 10 * size in points of selected font
                    285:    DWORD           Flags;              // enum. type flags
1.1.1.4 ! root      286:    COLORREF        rgbColors;          // returned text color
        !           287:    LPARAM          lCustData;          // data passed to hook fn.
1.1.1.3   root      288:    LPCFHOOKPROC    lpfnHook;           // ptr. to hook function
                    289:    LPCSTR           lpTemplateName;     // custom template name
                    290:    HINSTANCE       hInstance;          // instance handle of.EXE that
                    291:                                        //   contains cust. dlg. template
                    292:    LPSTR           lpszStyle;          // return the style field here
                    293:                                        // must be LF_FACESIZE or bigger
                    294:    WORD            nFontType;          // same value reported to the EnumFonts
                    295:                                        //   call back with the extra FONTTYPE_
                    296:                                        //   bits added
1.1.1.4 ! root      297:    WORD            ___MISSING_ALIGNMENT__;
1.1.1.3   root      298:    INT             nSizeMin;           // minimum pt size allowed &
                    299:    INT             nSizeMax;           // max pt size allowed if
                    300:                                        //   CF_LIMITSIZE is used
                    301: } CHOOSEFONTA;
                    302: 
1.1.1.4 ! root      303: typedef struct tagCHOOSEFONTW {
1.1.1.3   root      304:    DWORD           lStructSize;
                    305:    HWND            hwndOwner;          // caller's window handle
                    306:    HDC             hDC;                // printer DC/IC or NULL
                    307:    LPLOGFONTW      lpLogFont;          // ptr. to a LOGFONT struct
                    308:    INT             iPointSize;         // 10 * size in points of selected font
                    309:    DWORD           Flags;              // enum. type flags
1.1.1.4 ! root      310:    COLORREF        rgbColors;          // returned text color
        !           311:    LPARAM          lCustData;          // data passed to hook fn.
1.1.1.3   root      312:    LPCFHOOKPROC lpfnHook;              // ptr. to hook function
                    313:    LPCWSTR          lpTemplateName;     // custom template name
                    314:    HINSTANCE       hInstance;          // instance handle of.EXE that
                    315:                                        // contains cust. dlg. template
                    316:    LPWSTR          lpszStyle;          // return the style field here
                    317:                                        // must be LF_FACESIZE or bigger
                    318:    WORD            nFontType;          // same value reported to the EnumFonts
                    319:                                        //   call back with the extra FONTTYPE_
                    320:                                        //   bits added
1.1.1.4 ! root      321:    WORD            ___MISSING_ALIGNMENT__;
1.1.1.3   root      322:    INT             nSizeMin;           // minimum pt size allowed &
                    323:    INT             nSizeMax;           // max pt size allowed if
                    324:                                        //   CF_LIMITSIZE is used
                    325: } CHOOSEFONTW;
                    326: 
                    327: #ifdef UNICODE
                    328: #define CHOOSEFONT CHOOSEFONTW
                    329: #else
                    330: #define CHOOSEFONT CHOOSEFONTA
                    331: #endif // ! UNICODE
                    332: 
                    333: typedef CHOOSEFONTA *LPCHOOSEFONTA;
                    334: typedef CHOOSEFONTW *LPCHOOSEFONTW;
                    335: typedef CHOOSEFONT *LPCHOOSEFONT;
                    336: 
                    337: BOOL APIENTRY ChooseFontA(LPCHOOSEFONTA);
                    338: BOOL APIENTRY ChooseFontW(LPCHOOSEFONTW);
                    339: 
                    340: #ifdef UNICODE
                    341: #define ChooseFont ChooseFontW
                    342: #else
                    343: #define ChooseFont ChooseFontA
                    344: #endif // !UNICODE
                    345: 
                    346: #define CF_SCREENFONTS             0x00000001
                    347: #define CF_PRINTERFONTS            0x00000002
                    348: #define CF_BOTH                    (CF_SCREENFONTS | CF_PRINTERFONTS)
                    349: #define CF_SHOWHELP                0x00000004L
                    350: #define CF_ENABLEHOOK              0x00000008L
                    351: #define CF_ENABLETEMPLATE          0x00000010L
1.1       root      352: #define CF_ENABLETEMPLATEHANDLE    0x00000020L
                    353: #define CF_INITTOLOGFONTSTRUCT     0x00000040L
                    354: #define CF_USESTYLE                0x00000080L
                    355: #define CF_EFFECTS                 0x00000100L
                    356: #define CF_APPLY                   0x00000200L
                    357: #define CF_ANSIONLY                0x00000400L
                    358: #define CF_NOVECTORFONTS           0x00000800L
1.1.1.4 ! root      359: #define CF_NOOEMFONTS              CF_NOVECTORFONTS
1.1       root      360: #define CF_NOSIMULATIONS           0x00001000L
                    361: #define CF_LIMITSIZE               0x00002000L
                    362: #define CF_FIXEDPITCHONLY          0x00004000L
1.1.1.3   root      363: #define CF_WYSIWYG                 0x00008000L // must also have CF_SCREENFONTS & CF_PRINTERFONTS
1.1       root      364: #define CF_FORCEFONTEXIST          0x00010000L
                    365: #define CF_SCALABLEONLY            0x00020000L
                    366: #define CF_TTONLY                  0x00040000L
                    367: #define CF_NOFACESEL               0x00080000L
                    368: #define CF_NOSTYLESEL              0x00100000L
                    369: #define CF_NOSIZESEL               0x00200000L
                    370: 
1.1.1.3   root      371: // these are extra nFontType bits that are added to what is returned to the
                    372: // EnumFonts callback routine
1.1.1.2   root      373: 
1.1       root      374: #define SIMULATED_FONTTYPE    0x8000
                    375: #define PRINTER_FONTTYPE      0x4000
                    376: #define SCREEN_FONTTYPE       0x2000
                    377: #define BOLD_FONTTYPE         0x0100
                    378: #define ITALIC_FONTTYPE       0x0200
                    379: #define REGULAR_FONTTYPE      0x0400
                    380: 
                    381: #define WM_CHOOSEFONT_GETLOGFONT      (WM_USER + 1)
                    382: 
1.1.1.3   root      383: // strings used to obtain unique window message for communication
                    384: // between dialog and caller
1.1       root      385: 
1.1.1.3   root      386: #define LBSELCHSTRINGA  "commdlg_LBSelChangedNotify"
                    387: #define SHAREVISTRINGA  "commdlg_ShareViolation"
                    388: #define FILEOKSTRINGA   "commdlg_FileNameOK"
                    389: #define COLOROKSTRINGA  "commdlg_ColorOK"
                    390: #define SETRGBSTRINGA   "commdlg_SetRGBColor"
                    391: #define HELPMSGSTRINGA  "commdlg_help"
                    392: #define FINDMSGSTRINGA  "commdlg_FindReplace"
                    393: 
                    394: #define LBSELCHSTRINGW  L"commdlg_LBSelChangedNotify"
                    395: #define SHAREVISTRINGW  L"commdlg_ShareViolation"
                    396: #define FILEOKSTRINGW   L"commdlg_FileNameOK"
                    397: #define COLOROKSTRINGW  L"commdlg_ColorOK"
                    398: #define SETRGBSTRINGW   L"commdlg_SetRGBColor"
                    399: #define HELPMSGSTRINGW  L"commdlg_help"
                    400: #define FINDMSGSTRINGW  L"commdlg_FindReplace"
                    401: 
                    402: #ifdef UNICODE
                    403: #define LBSELCHSTRING  LBSELCHSTRINGW
                    404: #define SHAREVISTRING  SHAREVISTRINGW
                    405: #define FILEOKSTRING   FILEOKSTRINGW
                    406: #define COLOROKSTRING  COLOROKSTRINGW
                    407: #define SETRGBSTRING   SETRGBSTRINGW
                    408: #define HELPMSGSTRING  HELPMSGSTRINGW
                    409: #define FINDMSGSTRING  FINDMSGSTRINGW
                    410: #else
                    411: #define LBSELCHSTRING  LBSELCHSTRINGA
                    412: #define SHAREVISTRING  SHAREVISTRINGA
                    413: #define FILEOKSTRING   FILEOKSTRINGA
                    414: #define COLOROKSTRING  COLOROKSTRINGA
                    415: #define SETRGBSTRING   SETRGBSTRINGA
                    416: #define HELPMSGSTRING  HELPMSGSTRINGA
                    417: #define FINDMSGSTRING  FINDMSGSTRINGA
                    418: #endif
1.1       root      419: 
1.1.1.3   root      420: // HIWORD values for lParam of commdlg_LBSelChangeNotify message
1.1.1.2   root      421: #define CD_LBSELNOITEMS -1
                    422: #define CD_LBSELCHANGE   0
                    423: #define CD_LBSELSUB      1
                    424: #define CD_LBSELADD      2
1.1       root      425: 
1.1.1.3   root      426: typedef UINT (APIENTRY *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
                    427: typedef UINT (APIENTRY *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
1.1       root      428: 
1.1.1.3   root      429: typedef struct tagPDA {
                    430:    DWORD   lStructSize;
                    431:    HWND    hwndOwner;
1.1.1.4 ! root      432:    HGLOBAL hDevMode;
        !           433:    HGLOBAL hDevNames;
1.1.1.3   root      434:    HDC     hDC;
                    435:    DWORD   Flags;
                    436:    WORD    nFromPage;
                    437:    WORD    nToPage;
                    438:    WORD    nMinPage;
                    439:    WORD    nMaxPage;
                    440:    WORD    nCopies;
                    441:    HINSTANCE hInstance;
1.1.1.4 ! root      442:    LPARAM  lCustData;
1.1.1.3   root      443:    LPPRINTHOOKPROC lpfnPrintHook;
                    444:    LPSETUPHOOKPROC lpfnSetupHook;
                    445:    LPCSTR   lpPrintTemplateName;
                    446:    LPCSTR   lpSetupTemplateName;
1.1.1.4 ! root      447:    HGLOBAL  hPrintTemplate;
        !           448:    HGLOBAL  hSetupTemplate;
1.1.1.3   root      449: } PRINTDLGA;
                    450: 
                    451: typedef struct tagPDW {
                    452:    DWORD   lStructSize;
                    453:    HWND    hwndOwner;
1.1.1.4 ! root      454:    HGLOBAL hDevMode;
        !           455:    HGLOBAL  hDevNames;
1.1.1.3   root      456:    HDC     hDC;
                    457:    DWORD   Flags;
                    458:    WORD    nFromPage;
                    459:    WORD    nToPage;
                    460:    WORD    nMinPage;
                    461:    WORD    nMaxPage;
                    462:    WORD    nCopies;
                    463:    HINSTANCE hInstance;
1.1.1.4 ! root      464:    LPARAM  lCustData;
1.1.1.3   root      465:    LPPRINTHOOKPROC lpfnPrintHook;
                    466:    LPSETUPHOOKPROC lpfnSetupHook;
                    467:    LPCWSTR  lpPrintTemplateName;
                    468:    LPCWSTR  lpSetupTemplateName;
1.1.1.4 ! root      469:    HGLOBAL  hPrintTemplate;
        !           470:    HGLOBAL  hSetupTemplate;
1.1.1.3   root      471: }  PRINTDLGW;
                    472: 
                    473: #ifdef UNICODE
                    474: #define PRINTDLG PRINTDLGW
                    475: #else
                    476: #define PRINTDLG PRINTDLGA
                    477: #endif // ! UNICODE
                    478: 
                    479: typedef PRINTDLGA * LPPRINTDLGA;
                    480: typedef PRINTDLGW * LPPRINTDLGW;
                    481: typedef PRINTDLG  * LPPRINTDLG;
                    482: 
                    483: BOOL  APIENTRY     PrintDlgA(LPPRINTDLGA);
                    484: BOOL  APIENTRY     PrintDlgW(LPPRINTDLGW);
                    485: 
                    486: #ifdef UNICODE
                    487: #define PrintDlg PrintDlgW
                    488: #else
                    489: #define PrintDlg PrintDlgA
                    490: #endif // ! UNICODE
1.1       root      491: 
                    492: #define PD_ALLPAGES                  0x00000000
                    493: #define PD_SELECTION                 0x00000001
                    494: #define PD_PAGENUMS                  0x00000002
                    495: #define PD_NOSELECTION               0x00000004
                    496: #define PD_NOPAGENUMS                0x00000008
                    497: #define PD_COLLATE                   0x00000010
                    498: #define PD_PRINTTOFILE               0x00000020
                    499: #define PD_PRINTSETUP                0x00000040
                    500: #define PD_NOWARNING                 0x00000080
                    501: #define PD_RETURNDC                  0x00000100
                    502: #define PD_RETURNIC                  0x00000200
                    503: #define PD_RETURNDEFAULT             0x00000400
                    504: #define PD_SHOWHELP                  0x00000800
                    505: #define PD_ENABLEPRINTHOOK           0x00001000
                    506: #define PD_ENABLESETUPHOOK           0x00002000
                    507: #define PD_ENABLEPRINTTEMPLATE       0x00004000
                    508: #define PD_ENABLESETUPTEMPLATE       0x00008000
                    509: #define PD_ENABLEPRINTTEMPLATEHANDLE 0x00010000
                    510: #define PD_ENABLESETUPTEMPLATEHANDLE 0x00020000
                    511: #define PD_USEDEVMODECOPIES          0x00040000
                    512: #define PD_DISABLEPRINTTOFILE        0x00080000
1.1.1.2   root      513: #define PD_HIDEPRINTTOFILE           0x00100000
1.1.1.4 ! root      514: #define PD_NONETWORKBUTTON           0x00200000
1.1       root      515: 
1.1.1.3   root      516: typedef struct tagDEVNAMES {
                    517:    WORD wDriverOffset;
                    518:    WORD wDeviceOffset;
                    519:    WORD wOutputOffset;
                    520:    WORD wDefault;
1.1.1.4 ! root      521: } DEVNAMES;
1.1       root      522: 
1.1.1.3   root      523: typedef DEVNAMES * LPDEVNAMES;
1.1       root      524: 
1.1.1.3   root      525: #define DN_DEFAULTPRN      0x0001
1.1       root      526: 
                    527: DWORD APIENTRY     CommDlgExtendedError(VOID);
1.1.1.3   root      528: 
                    529: #ifdef __cplusplus
                    530: }
1.1.1.4 ! root      531: #endif  /* __cplusplus */
1.1.1.3   root      532: 
                    533: #ifndef RC_INVOKED
                    534: #pragma pack()
                    535: #endif  /* !RC_INVOKED */
                    536: 
                    537: #endif  /* !_INC_COMMDLG */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.