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
|
||||
;Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
|
||||
%ifdef __WIN32__
|
||||
EXTSYM MinimizeWindow
|
||||
%endif
|
||||
|
||||
lastmouseholded db 0
|
||||
mousebuttonstat dw 0
|
||||
@@ -505,7 +507,7 @@ ProcessMouseButtons:
|
||||
jb .notwinpressc
|
||||
cmp word[GUImouseposx],242
|
||||
ja .notwinpressc
|
||||
; call MinimizeWindow
|
||||
call MinimizeWindow
|
||||
ret
|
||||
.notwinpressc
|
||||
|
||||
|
||||
@@ -207,6 +207,12 @@ extern "C" void CheckAlwaysOnTop()
|
||||
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)
|
||||
{
|
||||
static PrevZ=0;
|
||||
|
||||
Reference in New Issue
Block a user