Permalink
Browse files

changes to Move and Resize for 4.01, fixes to installer

  • Loading branch information...
1 parent dee079d commit 3cd307c93f005d91c10ecb8b53adcc084067013d @headius committed with headius Jan 10, 2002
Showing with 43 additions and 30 deletions.
  1. +11 −4 AutoEntry.cpp
  2. +11 −11 HackIt.rc
  3. +5 −1 HackItDlg.cpp
  4. +5 −5 install/Pro.iss
  5. +3 −3 install/Release.iss
  6. +8 −6 install/Site.iss
View
15 AutoEntry.cpp
@@ -75,8 +75,8 @@ void AutoEntryDlg::OnOK()
function->setResizeH(GetDlgItemInt(m_hWnd, IDC_RESIZEHEIGHT, NULL, FALSE));
function->setResizeW(GetDlgItemInt(m_hWnd, IDC_RESIZEWIDTH, NULL, FALSE));
function->setMove(IsDlgButtonChecked(m_hWnd, IDC_MOVECHECK));
- function->setMoveX(GetDlgItemInt(m_hWnd, IDC_MOVEX, NULL, FALSE));
- function->setMoveY(GetDlgItemInt(m_hWnd, IDC_MOVEY, NULL, FALSE));
+ function->setMoveX(GetDlgItemInt(m_hWnd, IDC_MOVEX, NULL, TRUE));
+ function->setMoveY(GetDlgItemInt(m_hWnd, IDC_MOVEY, NULL, TRUE));
function->setWindowAction(SendDlgItemMessage(m_hWnd, IDC_WINDOWCOMBO, CB_GETCURSEL, 0, 0));
function->setTopmostAction(SendDlgItemMessage(m_hWnd, IDC_TOPMOSTCOMBO, CB_GETCURSEL, 0, 0));
@@ -154,6 +154,13 @@ BOOL AutoEntryDlg::OnInitDialog(WPARAM wParam, LPARAM lParam)
SendDlgItemMessage(m_hWnd, IDC_ALTERNATECOMBO, CB_ADDSTRING, 0, (LONG)"Act on Child");
SendDlgItemMessage(m_hWnd, IDC_ALTERNATECOMBO, CB_ADDSTRING, 0, (LONG)"Act on Parent");
SendDlgItemMessage(m_hWnd, IDC_ALTERNATECOMBO, CB_SETCURSEL, 0, 0);
+
+ int max = UD_MAXVAL / 2;
+ SendDlgItemMessage(m_hWnd, IDC_XSPIN, UDM_SETRANGE, 0, MAKELPARAM(max, -max));
+ SendDlgItemMessage(m_hWnd, IDC_YSPIN, UDM_SETRANGE, 0, MAKELPARAM(max, -max));
+ SendDlgItemMessage(m_hWnd, IDC_WIDTHSPIN, UDM_SETRANGE, 0, MAKELPARAM(UD_MAXVAL, 0));
+ SendDlgItemMessage(m_hWnd, IDC_HEIGHTSPIN, UDM_SETRANGE, 0, MAKELPARAM(UD_MAXVAL, 0));
+
CheckDlgButton(m_hWnd, IDC_CASESENSITIVE, FALSE);
CheckDlgButton(m_hWnd, IDC_TOPCHECK, TRUE);
@@ -175,8 +182,8 @@ BOOL AutoEntryDlg::OnInitDialog(WPARAM wParam, LPARAM lParam)
SetDlgItemText(m_hWnd, IDC_ALTERNATETEXT, af->getAlternateData().c_str());
SetDlgItemInt(m_hWnd, IDC_RESIZEHEIGHT, af->getResizeH(), FALSE);
SetDlgItemInt(m_hWnd, IDC_RESIZEWIDTH, af->getResizeW(), FALSE);
- SetDlgItemInt(m_hWnd, IDC_MOVEX, af->getMoveX(), FALSE);
- SetDlgItemInt(m_hWnd, IDC_MOVEY, af->getMoveY(), FALSE);
+ SetDlgItemInt(m_hWnd, IDC_MOVEX, af->getMoveX(), TRUE);
+ SetDlgItemInt(m_hWnd, IDC_MOVEY, af->getMoveY(), TRUE);
SendDlgItemMessage(m_hWnd, IDC_WINDOWCOMBO, CB_SETCURSEL, af->getWindowAction(), 0);
SendDlgItemMessage(m_hWnd, IDC_TOPMOSTCOMBO, CB_SETCURSEL, af->getTopmostAction(), 0);
View
22 HackIt.rc
@@ -145,21 +145,21 @@ BEGIN
EDITTEXT IDC_RESIZEWIDTH,185,89,36,12,ES_AUTOHSCROLL | ES_NUMBER
CONTROL "Spin1",IDC_WIDTHSPIN,"msctls_updown32",UDS_SETBUDDYINT |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
- UDS_HOTTRACK,214,89,9,12
+ UDS_NOTHOUSANDS | UDS_HOTTRACK,214,89,9,12
EDITTEXT IDC_RESIZEHEIGHT,229,89,36,12,ES_AUTOHSCROLL | ES_NUMBER
CONTROL "Spin2",IDC_HEIGHTSPIN,"msctls_updown32",UDS_SETBUDDYINT |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
- UDS_HOTTRACK,258,89,9,12
+ UDS_NOTHOUSANDS | UDS_HOTTRACK,258,89,9,12
CONTROL "Move:",IDC_MOVECHECK,"Button",BS_AUTOCHECKBOX |
BS_VCENTER | WS_TABSTOP,114,102,41,12
- EDITTEXT IDC_MOVEX,185,102,36,12,ES_AUTOHSCROLL | ES_NUMBER
+ EDITTEXT IDC_MOVEX,185,102,36,12,ES_AUTOHSCROLL
CONTROL "Spin3",IDC_XSPIN,"msctls_updown32",UDS_SETBUDDYINT |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
- UDS_HOTTRACK,214,102,9,12
- EDITTEXT IDC_MOVEY,229,102,36,12,ES_AUTOHSCROLL | ES_NUMBER
+ UDS_NOTHOUSANDS | UDS_HOTTRACK,214,102,9,12
+ EDITTEXT IDC_MOVEY,229,102,36,12,ES_AUTOHSCROLL
CONTROL "Spin5",IDC_YSPIN,"msctls_updown32",UDS_SETBUDDYINT |
UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
- UDS_HOTTRACK,258,102,9,12
+ UDS_NOTHOUSANDS | UDS_HOTTRACK,258,102,9,12
COMBOBOX IDC_SPECIALCOMBO,185,113,80,62,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_SPECIALTEXT,185,126,80,12,ES_AUTOHSCROLL
@@ -359,7 +359,7 @@ END
IDD_ABOUTBOX DIALOGEX 0, 0, 195, 222
STYLE DS_SYSMODAL | DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP |
WS_VISIBLE
-FONT 8, "MS Sans Serif", 0, 0, 0x1
+FONT 8, "MS Sans Serif"
BEGIN
CONTROL 203,IDC_STATIC,"Static",SS_BITMAP,19,10,157,62
CTEXT "Hack-It �1997-2001",IDC_STATIC,10,76,175,8
@@ -368,7 +368,7 @@ BEGIN
175,18
CTEXT "Many thanks to Kirk MacManus for beta testing, bug tracking, and moral support!",
IDC_STATIC,10,117,175,17
- CTEXT "This is v4.0 of Hack-It. Bug reports are requested. Hack-It v4.0 PRO is now available for purchase. $15 makes you a PRO user for life.",
+ CTEXT "This is v4.01 of Hack-It. Bug reports are requested. Hack-It v4.01 Pro is now available for purchase. $15 makes you a Pro user for life.",
IDC_STATIC,10,138,175,33
CTEXT "Please refer to the help file or web page for information on registering Hack-It.",
IDC_STATIC,10,174,175,18
@@ -437,15 +437,15 @@ BEGIN
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", "\0"
- VALUE "FileDescription", "Hack-It v4.0\0"
+ VALUE "FileDescription", "Hack-It v4.01\0"
VALUE "FileVersion", "5, 0, 0, 0\0"
- VALUE "InternalName", "Hack-It v4.0\0"
+ VALUE "InternalName", "Hack-It v4.01\0"
VALUE "LegalCopyright", "Copyright � 1996-1998 Charles Oliver Nutter\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "HackIt.EXE\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "Hack-It v4.0\0"
- VALUE "ProductVersion", "4, 0, 0, 0\0"
+ VALUE "ProductVersion", "4, 0, 1, 0\0"
VALUE "SpecialBuild", "\0"
END
END
View
6 HackItDlg.cpp
@@ -216,7 +216,11 @@ HackItDlg::HackItDlg(HINSTANCE hInstance)
m_hWnd = CreateWindowEx(
WS_EX_CONTEXTHELP | WS_EX_WINDOWEDGE | (m_Settings.m_AlwaysOnTop ? WS_EX_TOPMOST : 0),
"HackIt",
- "Hack-It v4.0",
+#ifdef FULLVERSION
+ "Hack-It v4.01 Pro",
+#else
+ "Hack-It v4.01",
+#endif
WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | m_Settings.m_PlacementShow,
m_Settings.m_PlacementLeft,
m_Settings.m_PlacementTop,
View
10 install/Pro.iss
@@ -5,12 +5,12 @@
[Setup]
AppName=Hack-It Pro
-AppVerName=Hack-It v4.0 Pro
+AppVerName=Hack-It v4.01 Pro
AppPublisher=Headius, Inc
AppPublisherURL=http://www.headius.com
AppSupportURL=http://www.headius.com/support.html
AppUpdatesURL=http://www.headius.com/hackit.html
-AppVersion=4.0
+AppVersion=4.01
AppCopyright=Copyright � 1997-2002 Headius, Inc.
DefaultDirName={pf}\Hack-It
DefaultGroupName=Hack-It
@@ -30,13 +30,13 @@ Source: "C:\HackIt\Help\HackIt.chm"; DestDir: "{app}"; CopyMode: alwaysoverwrite
Source: "C:\HackIt\Install\Pro.txt"; DestDir: "{app}"; CopyMode: alwaysoverwrite; Flags: restartreplace
[Icons]
-Name: "Startup\Hack-It Pro"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
+Name: "{userstartup}\Hack-It Pro"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
Name: "{group}\Hack-It Pro"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
Name: "{group}\Hack-It Help File"; Filename: "{app}\HackIt.chm"; WorkingDir: "{app}"
Name: "{group}\Hack-It Pro License"; Filename: "{app}\Pro.txt"; WorkingDir: "{app}"
[Registry]
Root: HKCU; SubKey: "Software\Headius"; Flags: uninsdeletekeyifempty
-Root: HKCU; SubKey: "Software\Headius\Hack-It"; Flags: uninsdeletekey
+Root: HKCU; SubKey: "Software\Headius\HackIt"; Flags: uninsdeletekey
Root: HKLM; SubKey: "Software\Headius"; Flags: uninsdeletekeyifempty
-Root: HKLM; SubKey: "Software\Headius\Hack-It"; Flags: uninsdeletekey
+Root: HKLM; SubKey: "Software\Headius\HackIt"; Flags: uninsdeletekey
View
6 install/Release.iss
@@ -5,12 +5,12 @@
[Setup]
AppName=Hack-It
-AppVerName=Hack-It v4.0
+AppVerName=Hack-It v4.01
AppPublisher=Headius, Inc
AppPublisherURL=http://www.headius.com
AppSupportURL=http://www.headius.com/support.html
AppUpdatesURL=http://www.headius.com/hackit.html
-AppVersion=4.0
+AppVersion=4.01
AppCopyright=Copyright � 1997-2002 Headius, Inc.
DefaultDirName={pf}\Hack-It
DefaultGroupName=Hack-It
@@ -33,4 +33,4 @@ Source: "C:\HackIt\Install\License.txt"; DestDir: "{app}"; CopyMode: alwaysoverw
Name: "{group}\Hack-It"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
Name: "{group}\Hack-It Help File"; Filename: "{app}\HackIt.chm"; WorkingDir: "{app}"
Name: "{group}\Hack-It License"; Filename: "{app}\License.txt"; WorkingDir: "{app}"
-Name: "Startup\Hack-It"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
+Name: "{userstartup}\Hack-It"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
View
14 install/Site.iss
@@ -5,8 +5,8 @@
[Setup]
Bits=32
-AppName=Hack-It 50-Seat License
-AppVerName=Hack-It v4.0 50-Seat Site License
+AppName=Hack-It 25-Seat License
+AppVerName=Hack-It v4.01 25-Seat Site License
AppCopyright=Copyright � 1997-2000 Headius, Inc.
DefaultDirName={pf}\Hack-It
DefaultGroupName=Startup
@@ -22,10 +22,12 @@ Source: "C:\My Projects\HackItHelp\HackIt.chm"; DestDir: "{app}"
Source: "C:\My Projects\HackIt\Site.txt"; DestDir: "{app}"
[Icons]
-Name: "{group}\Hack-It"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
-
+Name: "{userstartup}\Hack-It Pro"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
+Name: "{group}\Hack-It Pro"; Filename: "{app}\HackIt.exe"; WorkingDir: "{app}"
+Name: "{group}\Hack-It Help File"; Filename: "{app}\HackIt.chm"; WorkingDir: "{app}"
+Name: "{group}\Hack-It Pro Site License"; Filename: "{app}\Site.txt"; WorkingDir: "{app}"
[Registry]
Root: HKCU; SubKey: "Software\Headius"; Flags: uninsdeletekeyifempty
-Root: HKCU; SubKey: "Software\Headius\Hack-It"; Flags: uninsdeletekey
+Root: HKCU; SubKey: "Software\Headius\HackIt"; Flags: uninsdeletekey
Root: HKLM; SubKey: "Software\Headius"; Flags: uninsdeletekeyifempty
-Root: HKLM; SubKey: "Software\Headius\Hack-It"; Flags: uninsdeletekey
+Root: HKLM; SubKey: "Software\Headius\HackIt"; Flags: uninsdeletekey

0 comments on commit 3cd307c

Please sign in to comment.