Skip to content

Commit

Permalink
Preparing 1.45
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonUnch authored Jul 1, 2021
1 parent de8ab41 commit a8f67e2
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 19 deletions.
Binary file modified AltDrag.ini
Binary file not shown.
24 changes: 23 additions & 1 deletion AltDrag.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*=========================================================================*
* ALTDRAG for NT4 to Win10 *
* Modified by Raymond Gillibert from original source by Stefan Sundin *
* release 1.44 (June 23, 2021) *
* release 1.45 (Jully 2, 2021) *
*-------------------------------------------------------------------------*
* Download MEGA: https://mega.nz/folder/mW5ExCCT#gI8DQICICk-y4FIjxaqtGg *
* Download GitHub: https://github.com/RamonUnch/AltDrag/releases/ *
Expand Down Expand Up @@ -183,6 +183,28 @@ Note that this version has some more feature.
===========================================================================
== CHANGELOG ==

== AltDrag 1.45 ==

+ New: Now the `ScrollLockState` option in the [Input] section of the ini
file can be set to 3 to enable AltDrag only when Scroll Lock is off.

* Fixed: Now the `SWP_NOSIZE` and flag is used when simply moving a window.
This prevents rolled windows from partially unrolling. Also the
SWP_ASYNCWINDOWPOS flag was added where applicable and this fixes
an ugly Win 10 bug that would changes the borders of some moved window.

* Fixed: When using maximizing a window by snapping to the top,
it would sometime prevemt further movement when FullWin=0.

* Fixed a last minute bug introduced in 1.44 that would restore rolled
windows as soon as you moved them.

* Fixed: Now whe AltDrag is suspended with the Scroll lock state option,
The notification icon will change.

* Fixed some stuck alt bugs thanks to **scx**.


== AltDrag 1.44 ==

+ **Smart aero dimensions** was added in the General Tab of the config.
Expand Down
2 changes: 1 addition & 1 deletion altdrag.nsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# define the name of the installer
!define APP_NAME "AltDrag"
!define APP_VERSION "1.44"
!define APP_VERSION "1.45"

# define the name of the installer
OutFile "${APP_NAME}${APP_VERSION}-inst.exe"
Expand Down
12 changes: 6 additions & 6 deletions altdrag.rc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
app_icon ICON "media/icon.ico"
tray_disabled ICON "media/tray-disabled.ico"
tray_enabled ICON "media/tray-enabled.ico"
tray_suspended ICON "media/tray-suspended.ico"
tray_off ICON "media/tray-disabled.ico"
tray_on ICON "media/tray-enabled.ico"
tray_sus ICON "media/tray-suspended.ico"
#include "window.rc"

CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "AltDrag.exe.manifest"

#define VS_VERSION_INFO 1
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,4,4,0
PRODUCTVERSION 1,4,4,0
FILEVERSION 1,4,5,0
PRODUCTVERSION 1,4,5,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
Expand All @@ -21,7 +21,7 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "AltDrag"
VALUE "FileVersion", "1.43"
VALUE "FileVersion", "1.45"
VALUE "InternalName", "altdrag"
VALUE "OriginalFilename", "AltDrag.exe"
VALUE "CompanyName", "Gillibert Software"
Expand Down
5 changes: 2 additions & 3 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,13 +938,12 @@ LRESULT CALLBACK TestWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
static int centerfrac=24;
switch (msg) {
case WM_PAINT:;
RECT cRect, wRect;
RECT wRect;
HPEN pen = (HPEN) CreatePen(PS_SOLID, 2, RGB(0, 0, 0));
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hwnd, &ps);

GetWindowRect(hwnd, &wRect);
GetClientRect(hwnd, &cRect);
POINT Offset = { wRect.left, wRect.top };
ScreenToClient(hwnd, &Offset);

Expand All @@ -954,7 +953,7 @@ LRESULT CALLBACK TestWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
int width = wRect.right - wRect.left;
int height = wRect.bottom - wRect.top;

FillRect(hdc, &cRect, GetStockObject(WHITE_BRUSH));
FillRect(hdc, &ps.rcPaint, GetStockObject(WHITE_BRUSH));
Rectangle(hdc
, Offset.x+(width-width*centerfrac/100)/2
, Offset.y
Expand Down
6 changes: 3 additions & 3 deletions hooks.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 1,4,4,0
PRODUCTVERSION 1,4,4,0
FILEVERSION 1,4,5,0
PRODUCTVERSION 1,4,5,0
FILEFLAGSMASK 0x3fL
FILEFLAGS 0x0L
FILEOS 0x40004L
Expand All @@ -14,7 +14,7 @@ BEGIN
VALUE "FileDescription", "Hooks for AltDrag"
VALUE "InternalName", "hooks"
VALUE "OriginalFilename", "hooks.dll"
VALUE "FileVersion", "1.44"
VALUE "FileVersion", "1.45"
VALUE "CompanyName", "Gillibert Software"
VALUE "LegalCopyright", "Stefan Sundin"
END
Expand Down
3 changes: 1 addition & 2 deletions unfuck.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static void FixDWMRect(HWND hwnd, RECT *bbb)
CopyRect(bbb, &frame);
return;
}
// bbb->left = bbb->right = bbb->top = bbb->bottom = 0;
// bbb->left = bbb->right = bbb->top = bbb->bottom = -10;
SetRectEmpty(bbb);
}

Expand Down Expand Up @@ -460,7 +460,6 @@ static void MaximizeWindow(HWND hwnd)
{
PostMessage(hwnd, WM_SYSCOMMAND, SC_MAXIMIZE, 0);
}
/* #define MinimizeWindow(x) CloseWindow(x) */
static void MinimizeWindow(HWND hwnd)
{
PostMessage(hwnd, WM_SYSCOMMAND, SC_MINIMIZE, 0);
Expand Down
6 changes: 3 additions & 3 deletions window.rc
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ BEGIN
EDITTEXT IDC_NEWRULE, 30,150,180,12,ES_AUTOHSCROLL
EDITTEXT IDC_NEWPROGNAME, 30,165,180,12,ES_AUTOHSCROLL
RTEXT "WM_NCHITTEST:", 0, 10,182,60,8
EDITTEXT IDC_NCHITTEST, 72,180,25,12,ES_AUTOHSCROLL
RTEXT "GWL_STYLE:",0 , 100,182,53,8
EDITTEXT IDC_GWLSTYLE, 155,180,55,12,ES_AUTOHSCROLL
EDITTEXT IDC_NCHITTEST, 72,180,20,12,ES_AUTOHSCROLL
RTEXT "GWL_STYLE:",0 , 105,182,53,8
EDITTEXT IDC_GWLSTYLE, 160,180,50,12,ES_AUTOHSCROLL
END

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit a8f67e2

Please sign in to comment.