Skip to content

Commit e71cbf8

Browse files
committed
Correct NCLBUTTONUP
1 parent d5bd694 commit e71cbf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SkinFramWorkCore/NonClientTheme.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,11 @@ protected override void WndProc(ref Message m)
336336
{
337337

338338
case NCHITTEST.HTMINBUTTON:
339+
if(this.IsDrawMinimizeBox())
339340
WindowState = WindowState == FormWindowState.Minimized ? FormWindowState.Normal : FormWindowState.Minimized;
340341
break;
341342
case NCHITTEST.HTMAXBUTTON:
343+
if(this.IsDrawMaximizeBox())
342344
WindowState = WindowState == FormWindowState.Maximized ? FormWindowState.Normal : FormWindowState.Maximized;
343345
break;
344346

0 commit comments

Comments
 (0)