include/windowsx.h: Avoid a TRUE:FALSE conditional expression.

This commit is contained in:
Michael Stefaniuc 2012-09-03 10:41:28 +02:00 committed by Alexandre Julliard
parent 792cd67bf1
commit c21000ea81
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ extern "C" {
((UINT)SendMessage((hwndCtl), BM_SETSTATE, (WPARAM)(int)(state), 0L)) ((UINT)SendMessage((hwndCtl), BM_SETSTATE, (WPARAM)(int)(state), 0L))
#define Button_SetStyle(hwndCtl, style, fRedraw) \ #define Button_SetStyle(hwndCtl, style, fRedraw) \
((void)SendMessage((hwndCtl), BM_SETSTYLE, (WPARAM)LOWORD(style), MAKELPARAM(((fRedraw) ? TRUE : FALSE), 0))) ((void)SendMessage((hwndCtl), BM_SETSTYLE, (WPARAM)LOWORD(style), MAKELPARAM((fRedraw) != 0, 0)))
#define Button_SetText(hwndCtl, lpsz) \ #define Button_SetText(hwndCtl, lpsz) \
SetWindowText((hwndCtl), (lpsz)) SetWindowText((hwndCtl), (lpsz))