OSDN Git Service

AppliStation-GUI,Windows7において、キャンセル時にプログレスバーの状態の変更がタスクバーの進捗に反映させ忘れていたのを修正
authorttp <ttp@users.sourceforge.jp>
Sat, 18 Sep 2010 09:08:30 +0000 (18:08 +0900)
committerttp <ttp@users.sourceforge.jp>
Sat, 18 Sep 2010 09:08:30 +0000 (18:08 +0900)
AppliStation/AppliStation.Util/ExecutionProgressViewer.cs

index 42f9e43..4c56ad7 100644 (file)
@@ -265,6 +265,7 @@ namespace AppliStation.Util
                                cancelButton.Enabled = false;\r
                                \r
                                NativeMethods.ProgressBar_SetState(progressBar, NativeMethods.ProgressBarState.Paused);\r
                                cancelButton.Enabled = false;\r
                                \r
                                NativeMethods.ProgressBar_SetState(progressBar, NativeMethods.ProgressBarState.Paused);\r
+                               NativeMethods.Form_SetTaskbarProgressParams(this, progressBar.Style,NativeMethods.ProgressBarState.Paused, (ulong) progressBar.Value, (ulong) progressBar.Maximum);\r
                                \r
                                taskSet.Cancel();\r
                        }\r
                                \r
                                taskSet.Cancel();\r
                        }\r