diff options
| author | lempamo <[email protected]> | 2017-08-14 13:57:26 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-08-14 13:57:26 -0400 |
| commit | 65d251d6a605ec2f9a45e819546421c6644ab245 (patch) | |
| tree | 11e4a47a22e0fa2b85145edaa931e9f6117db2c1 | |
| parent | 1f59dd91abdfc0a320e60cfcad2ef2917af7ddcf (diff) | |
| download | histacom2-65d251d6a605ec2f9a45e819546421c6644ab245.tar.gz histacom2-65d251d6a605ec2f9a45e819546421c6644ab245.tar.bz2 histacom2-65d251d6a605ec2f9a45e819546421c6644ab245.zip | |
added proper wordpad icon
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 4 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 4 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.Designer.cs | 29 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.Designer.cs | 10 | ||||
| -rw-r--r-- | TimeHACK.Main/Properties/Resources.resx | 3 | ||||
| -rw-r--r-- | TimeHACK.Main/Resources/WinClassic/Win95WordpadIcon2.png | bin | 0 -> 142 bytes | |||
| -rw-r--r-- | TimeHACK.Main/TimeHACK.Main.csproj | 2 | ||||
| -rw-r--r-- | TimeHACK.Main/TitleScreen.cs | 19 |
8 files changed, 39 insertions, 32 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index db7b7f6..3a2f9ed 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -369,8 +369,8 @@ namespace TimeHACK.OS.Win95 private void WordPadToolStripMenuItem_Click(object sender, EventArgs e) { WinClassicWordPad wp = new WinClassicWordPad(); - WinClassic app = wm.StartWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad); + WinClassic app = wm.StartWin95(wp, "Wordpad", Properties.Resources.Win95WordpadIcon2, true, true); + AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95WordpadIcon2); nonimportantapps.Add(app); nonimportantapps[nonimportantapps.Count - 1].BringToFront(); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 5ce93f1..55413b7 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -258,8 +258,8 @@ namespace TimeHACK.OS.Win95.Win95Apps break; case "wordpad": - WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.WinClassicWordpad, true, true); - Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.WinClassicWordpad); + WinClassic appWP = wm.StartWin95(new WinClassicWordPad(), "Wordpad", Properties.Resources.Win95WordpadIcon2, true, true); + Program.AddTaskbarItem(appWP, appWP.Tag.ToString(), "Wordpad", Properties.Resources.Win95WordpadIcon2); Program.nonimportantapps.Add(appWP); Program.nonimportantapps[Program.nonimportantapps.Count - 1].BringToFront(); diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.Designer.cs index a3d3ab0..41e8f49 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicWordPad.Designer.cs @@ -114,6 +114,7 @@ this.toolStripSeparator1, this.sendToolStripMenuItem, this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; this.fileToolStripMenuItem.Padding = new System.Windows.Forms.Padding(0, 0, 1, 0); this.fileToolStripMenuItem.Size = new System.Drawing.Size(28, 18); @@ -122,24 +123,24 @@ // newToolStripMenuItem // this.newToolStripMenuItem.Name = "newToolStripMenuItem"; - this.newToolStripMenuItem.Size = new System.Drawing.Size(114, 22); + this.newToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.newToolStripMenuItem.Text = "New"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(111, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6); // // sendToolStripMenuItem // this.sendToolStripMenuItem.Name = "sendToolStripMenuItem"; - this.sendToolStripMenuItem.Size = new System.Drawing.Size(114, 22); + this.sendToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.sendToolStripMenuItem.Text = "Send..."; // // exitToolStripMenuItem // this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; - this.exitToolStripMenuItem.Size = new System.Drawing.Size(114, 22); + this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.exitToolStripMenuItem.Text = "Exit"; // // editToolStripMenuItem @@ -161,47 +162,47 @@ // undoToolStripMenuItem // this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; - this.undoToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.undoToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.undoToolStripMenuItem.Text = "Undo"; // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(126, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6); // // cutToolStripMenuItem // this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; - this.cutToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.cutToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.cutToolStripMenuItem.Text = "Cut"; // // copyToolStripMenuItem // this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; - this.copyToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.copyToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.copyToolStripMenuItem.Text = "Copy"; // // pasteToolStripMenuItem // this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; - this.pasteToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.pasteToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.pasteToolStripMenuItem.Text = "Paste"; // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(126, 6); + this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6); // // clearToolStripMenuItem // this.clearToolStripMenuItem.Name = "clearToolStripMenuItem"; - this.clearToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.clearToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.clearToolStripMenuItem.Text = "Clear"; // // selectAllToolStripMenuItem // this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; - this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(129, 22); + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(152, 22); this.selectAllToolStripMenuItem.Text = "Select All"; // // viewToolStripMenuItem @@ -562,10 +563,10 @@ // lblStatus // this.lblStatus.AutoSize = true; - this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblStatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.lblStatus.Location = new System.Drawing.Point(3, 1); this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(213, 16); + this.lblStatus.Size = new System.Drawing.Size(170, 13); this.lblStatus.TabIndex = 0; this.lblStatus.Text = "For Help, go to Help -> Help topics"; // diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index 744f5b5..f4dc1f2 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -1095,6 +1095,16 @@ namespace TimeHACK.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + internal static System.Drawing.Bitmap Win95WordpadIcon2 { + get { + object obj = ResourceManager.GetObject("Win95WordpadIcon2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> internal static System.Drawing.Bitmap Win98Computer { get { object obj = ResourceManager.GetObject("Win98Computer", resourceCulture); diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index ba878c4..09c9224 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -762,6 +762,9 @@ <data name="WinClassicMinesweeperWin" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\minsweeper win.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="Win95WordpadIcon2" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\Win95WordpadIcon2.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> <data name="wordpad_bold" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\wordpad_bold.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> diff --git a/TimeHACK.Main/Resources/WinClassic/Win95WordpadIcon2.png b/TimeHACK.Main/Resources/WinClassic/Win95WordpadIcon2.png Binary files differnew file mode 100644 index 0000000..c4da0a9 --- /dev/null +++ b/TimeHACK.Main/Resources/WinClassic/Win95WordpadIcon2.png diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index d482947..d20f26d 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -516,6 +516,7 @@ <ItemGroup> <Content Include="Icon128x.ico" /> <Content Include="Resources\12padams_EULA.txt" /> + <None Include="Resources\WinClassic\WinClassicWordpadIcon.png" /> <None Include="Resources\wordpad_find.png" /> <None Include="Resources\wordpad_printpreview.png" /> <None Include="Resources\wordpad_print.png" /> @@ -659,6 +660,7 @@ <None Include="Resources\WinClassic\Win98Stop.WAV" /> <None Include="Resources\WinClassic\WinClassicApp.png" /> <None Include="Resources\WinClassic\WinClassicCalcBig.png" /> + <None Include="Resources\WinClassic\Win95WordpadIcon2.png" /> <Content Include="Resources\WinClassic\WinClassicClock.png" /> <Content Include="Resources\WinClassic\WinClassicComputer.png" /> <None Include="Resources\WinClassic\WinClassicCopy.png" /> diff --git a/TimeHACK.Main/TitleScreen.cs b/TimeHACK.Main/TitleScreen.cs index 4523478..a41c413 100644 --- a/TimeHACK.Main/TitleScreen.cs +++ b/TimeHACK.Main/TitleScreen.cs @@ -33,17 +33,17 @@ namespace TimeHACK public const int WM_NCLBUTTONDOWN = 0xA1; public const int HT_CAPTION = 0x2; - [DllImportAttribute("user32.dll")] + [DllImport("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); - [DllImportAttribute("user32.dll")] + [DllImport("user32.dll")] public static extern bool ReleaseCapture(); public TitleScreen() { InitializeComponent(); - this.startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + this.startmenu.Paint += (sender, args) => Paintbrush.PaintClassicBorders(sender, args, 2); if (!File.Exists(Path.Combine(DataDirectory, "o.k"))) { SeizureWarning sw = new SeizureWarning(); @@ -113,10 +113,7 @@ namespace TimeHACK } // only allow one decimal point - if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) - { - e.Handled = true; - } + if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) e.Handled = true; } // When the TitleScreen Loads @@ -207,13 +204,7 @@ namespace TimeHACK try { // Time to close all the game applications - foreach (Form frm in Application.OpenForms) - { - if (frm.Tag.ToString() != "ignoreFormOnTaskbar") - { - frm.Close(); - } - } + foreach (Form frm in Application.OpenForms) if (frm.Tag.ToString() != "ignoreFormOnTaskbar") frm.Close(); } catch { } |
