pub fn state(&self) -> ProgressBarState {
        use winapi::um::commctrl::{PBM_GETSTATE, PBST_NORMAL, PBST_ERROR, PBST_PAUSED};
        
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);

        match wh::send_message(handle, PBM_GETSTATE, 0, 0) as i32 {
            PBST_NORMAL => ProgressBarState::Normal,
            PBST_ERROR => ProgressBarState::Error,
            PBST_PAUSED => ProgressBarState::Paused,
            _ => panic!("Unkown progress bar state")
        }
    }
/// Return the current state of the progress bar
Return the current state of the progress bar
Return the current state of the progress bar
pub fn state(&self) -> ProgressBarState {
        use winapi::um::commctrl::{PBM_GETSTATE, PBST_NORMAL, PBST_ERROR, PBST_PAUSED};
        let handle = check_hwnd(&self.handle, NOT_BOUND, BAD_HANDLE);
        match wh::send_message(handle, PBM_GETSTATE, 0, 0) as i32 {
            PBST_NORMAL => ProgressBarState::Normal,
            PBST_ERROR => ProgressBarState::Error,
            PBST_PAUSED => ProgressBarState::Paused,
            _ => panic!("Unkown progress bar state")
        }
    }
pub fn state ( & self ) -> ProgressBarState { use winapi :: um :: commctrl :: { PBM_GETSTATE , PBST_NORMAL , PBST_ERROR , PBST_PAUSED } ; let handle = check_hwnd ( & self . handle , NOT_BOUND , BAD_HANDLE ) ; match wh :: send_message ( handle , PBM_GETSTATE , 0 , 0 ) as i32 { PBST_NORMAL => ProgressBarState :: Normal , PBST_ERROR => ProgressBarState :: Error , PBST_PAUSED => ProgressBarState :: Paused , _ => panic ! ( " " ) } }
Return the current state of the progress bar
Return the current state of the progress bar
&self