[Win] No need to manually to control the visibility of maximize button.
This commit is contained in:
parent
739465582f
commit
528e6d2679
1 changed files with 0 additions and 8 deletions
|
@ -144,14 +144,6 @@ gfx::Size NativeWindowWin::GetMaximumSize() {
|
||||||
|
|
||||||
void NativeWindowWin::SetResizable(bool resizable) {
|
void NativeWindowWin::SetResizable(bool resizable) {
|
||||||
resizable_ = resizable;
|
resizable_ = resizable;
|
||||||
|
|
||||||
// Show/Hide the maximize button.
|
|
||||||
DWORD style = ::GetWindowLong(window_->GetNativeView(), GWL_STYLE);
|
|
||||||
if (resizable)
|
|
||||||
style |= WS_MAXIMIZEBOX;
|
|
||||||
else
|
|
||||||
style &= ~WS_MAXIMIZEBOX;
|
|
||||||
::SetWindowLong(window_->GetNativeView(), GWL_STYLE, style);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NativeWindowWin::IsResizable() {
|
bool NativeWindowWin::IsResizable() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue