Implemented minimize window code in win32 port

This commit is contained in:
pagefault
2001-05-07 01:18:57 +00:00
parent 807162caa6
commit ceb339e628
2 changed files with 10 additions and 2 deletions

View File

@@ -15,7 +15,9 @@
;along with this program; if not, write to the Free Software ;along with this program; if not, write to the Free Software
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
%ifdef __WIN32__
EXTSYM MinimizeWindow
%endif
lastmouseholded db 0 lastmouseholded db 0
mousebuttonstat dw 0 mousebuttonstat dw 0
@@ -505,7 +507,7 @@ ProcessMouseButtons:
jb .notwinpressc jb .notwinpressc
cmp word[GUImouseposx],242 cmp word[GUImouseposx],242
ja .notwinpressc ja .notwinpressc
; call MinimizeWindow call MinimizeWindow
ret ret
.notwinpressc .notwinpressc

View File

@@ -207,6 +207,12 @@ extern "C" void CheckAlwaysOnTop()
else SetWindowPos(hMainWindow, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); else SetWindowPos(hMainWindow, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
} }
extern "C" void MinimizeWindow()
{
MoveWindow(hMainWindow, 0, 0, 0, 0, TRUE);
InputDeAcquire();
}
BOOL InputRead(void) BOOL InputRead(void)
{ {
static PrevZ=0; static PrevZ=0;