diff options
author | Luke Dunstan <infidel@users.sourceforge.net> | 2003-07-03 02:19:01 +0000 |
---|---|---|
committer | Luke Dunstan <infidel@users.sourceforge.net> | 2003-07-03 02:19:01 +0000 |
commit | b1868c88bc42ba23054109dd287fc9c3b9fda2c4 (patch) | |
tree | 531ebb664db49642c8bd6c80a46a0c78ad7480f3 /winsup/w32api/include/commdlg.h | |
parent | e298efab0a6c34c935a934438ec1b54c7df007ca (diff) | |
download | cygnal-b1868c88bc42ba23054109dd287fc9c3b9fda2c4.tar.gz cygnal-b1868c88bc42ba23054109dd287fc9c3b9fda2c4.tar.bz2 cygnal-b1868c88bc42ba23054109dd287fc9c3b9fda2c4.zip |
* include/commdlg.h (CommDlg_OpenSave_*): Add parentheses around
macro arguments. Thanks to Tom Bishop <tombishop@users.sf.net>.
* include/winuser.h (MONITOR_DEFAULTTONULL, MONITOR_DEFAULTTOPRIMARY,
MONITOR_DEFAULTTONEAREST, MONITORINFOF_PRIMARY): Add defines.
(TPM_RECURSE): Add guard for Win98/Win2K.
Thanks to Magnus Olsen <greatlord@users.sf.net>.
Diffstat (limited to 'winsup/w32api/include/commdlg.h')
-rw-r--r-- | winsup/w32api/include/commdlg.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/w32api/include/commdlg.h b/winsup/w32api/include/commdlg.h index 38039bb1b..465a18001 100644 --- a/winsup/w32api/include/commdlg.h +++ b/winsup/w32api/include/commdlg.h @@ -196,19 +196,19 @@ extern "C" { #endif #endif /* ifndef SNDMSG */ -#define CommDlg_OpenSave_GetSpec(d,s,m) (int)SNDMSG(d,CDM_GETSPEC,m,(LPARAM)s) +#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_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_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 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))) typedef UINT (APIENTRY *__CDHOOKPROC)(HWND,UINT,WPARAM,LPARAM); typedef __CDHOOKPROC LPCCHOOKPROC; |