Owen Rudge : comctl32/datetime: Don't check box if no valid date set.

Alexandre Julliard julliard at winehq.org
Mon Mar 12 11:59:57 CDT 2012


Module: wine
Branch: master
Commit: 9147e7fd2246da9ec8e698f00458d429e90ab573
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9147e7fd2246da9ec8e698f00458d429e90ab573

Author: Owen Rudge <orudge at codeweavers.com>
Date:   Thu Mar  8 11:34:28 2012 +0000

comctl32/datetime: Don't check box if no valid date set.

---

 dlls/comctl32/datetime.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c
index d67e6e3..f29b2d2 100644
--- a/dlls/comctl32/datetime.c
+++ b/dlls/comctl32/datetime.c
@@ -1402,7 +1402,7 @@ DATETIME_StyleChanged(DATETIME_INFO *infoPtr, WPARAM wStyleType, const STYLESTRU
         infoPtr->hwndCheckbut = CreateWindowExW (0, WC_BUTTONW, 0, WS_CHILD | WS_VISIBLE | BS_AUTOCHECKBOX,
          					 2, 2, 13, 13, infoPtr->hwndSelf, 0, 
 						(HINSTANCE)GetWindowLongPtrW (infoPtr->hwndSelf, GWLP_HINSTANCE), 0);
-        SendMessageW (infoPtr->hwndCheckbut, BM_SETCHECK, 1, 0);
+        SendMessageW (infoPtr->hwndCheckbut, BM_SETCHECK, infoPtr->dateValid ? 1 : 0, 0);
     }
     if ( (lpss->styleOld & DTS_SHOWNONE) && !(lpss->styleNew & DTS_SHOWNONE) ) {
         DestroyWindow(infoPtr->hwndCheckbut);




More information about the wine-cvs mailing list