Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SMOOTH, SMOOTHREVERSE style to progress bar #307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion native-windows-gui/src/controls/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ that indicates what the button does when the user selects it.
*/

use winapi::um::winuser::{WS_VISIBLE, WS_DISABLED};
use winapi::um::commctrl::{PBS_MARQUEE, PBS_VERTICAL};
use winapi::um::commctrl::{PBS_MARQUEE, PBS_VERTICAL, PBS_SMOOTH, PBS_SMOOTHREVERSE};
use crate::win32::window_helper as wh;
use crate::win32::base_helper::check_hwnd;
use crate::NwgError;
Expand All @@ -21,6 +21,8 @@ bitflags! {
const DISABLED = WS_DISABLED;
const VERTICAL = PBS_VERTICAL;
const MARQUEE = PBS_MARQUEE;
const SMOOTH = PBS_SMOOTH;
const SMOOTHREVERSE = PBS_SMOOTHREVERSE;
}
}

Expand Down