pub fn value(&self) -> Option<DatePickerValue> {
        use winapi::um::commctrl::{GDT_VALID, DTM_GETSYSTEMTIME};
        use winapi::um::minwinbase::SYSTEMTIME;
        use std::mem;

        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);

        let mut syst: SYSTEMTIME = unsafe{ mem::zeroed() };

        let r = unsafe{ wh::send_message(handle, DTM_GETSYSTEMTIME, 0, mem::transmute(&mut syst)) };
        match r {
            GDT_VALID => Some(DatePickerValue {
                year: syst.wYear,
                month: syst.wMonth,
                day: syst.wDay
            }),
            _ => None
        }
    }
/**
        Return the time set in the control in a `PickerDate` structure.  
        Return None if `optional` was set and the checkbox is not checked.  
        Note: use `get_text` to get the text value of the control.
    */
Return the time set in the control in a `PickerDate` structure.
Return None if `optional` was set and the checkbox is not checked.
Note: use `get_text` to get the text value of the control.
Return the time set in the control in a ` PickerDate ` structure . Return None if ` optional ` was set and the checkbox is not checked . Note : use ` get_text ` to get the text value of the control .
pub fn value(&self) -> Option<DatePickerValue> {
        use winapi::um::commctrl::{GDT_VALID, DTM_GETSYSTEMTIME};
        use winapi::um::minwinbase::SYSTEMTIME;
        use std::mem;
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        let mut syst: SYSTEMTIME = unsafe{ mem::zeroed() };
        let r = unsafe{ wh::send_message(handle, DTM_GETSYSTEMTIME, 0, mem::transmute(&mut syst)) };
        match r {
            GDT_VALID => Some(DatePickerValue {
                year: syst.wYear,
                month: syst.wMonth,
                day: syst.wDay
            }),
            _ => None
        }
    }
pub fn value ( & self ) -> Option < DatePickerValue > { use winapi :: um :: commctrl :: { GDT_VALID , DTM_GETSYSTEMTIME } ; use winapi :: um :: minwinbase :: SYSTEMTIME ; use std :: mem ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; let mut syst : SYSTEMTIME = unsafe { mem :: zeroed ( ) } ; let r = unsafe { wh :: send_message ( handle , DTM_GETSYSTEMTIME , 0 , mem :: transmute ( & mut syst ) ) } ; match r { GDT_VALID => Some ( DatePickerValue { year : syst . wYear , month : syst . wMonth , day : syst . wDay } ) , _ => None } }
Return the time set in the control in a `PickerDate` structure.
Return the time set in the control in a ` PickerDate ` structure .
&self