Implemented minimize window code in win32 port
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user