Windows: implement with_resizable (#540) (#541)

* Windows: implement with_resizable (#540)

* Fixed typo
This commit is contained in:
Danny Fritz 2018-06-02 08:51:24 -06:00 committed by Francesca Frangipane
parent bbfe57400d
commit 58a00bffbb
5 changed files with 46 additions and 0 deletions

View file

@ -843,6 +843,10 @@ unsafe fn init(
style | winuser::WS_VISIBLE
};
if !window.resizable {
style &= !winuser::WS_SIZEBOX;
}
if pl_attribs.parent.is_some() {
style |= winuser::WS_CHILD;
}