OSDN Git Service

AppliStation-GUI,OptionDialogについてノート付きコマンドリンク形式に変更。
[applistation/AppliStation.git] / AppliStation / AppliStation.Util / NativeMethods.cs
index 2b91b08..14fc235 100644 (file)
@@ -106,8 +106,8 @@ namespace AppliStation.Util
                /// <param name="maximum">プログレスバーの最大値。</param>\r
                public static void Form_SetTaskbarProgressParams(Form form, ProgressBarStyle style, ProgressBarState state, ulong val, ulong maximum)\r
                {\r
-#if USE_VISTA_EFFECT\r
-#if USE_SEVEN_EFFECT\r
+#if USE_VISTA_EFFECTS\r
+#if USE_SEVEN_EFFECTS\r
                        ITaskList3 tasklist = null;\r
                        \r
                        try {\r
@@ -131,6 +131,7 @@ namespace AppliStation.Util
                                \r
                                tasklist.SetProgressState(form.Handle, tbpFlag);\r
                                tasklist.SetProgressValue(form.Handle, val, maximum);\r
+                       } catch (Exception) {\r
                        } finally {\r
                                if (tasklist != null) {\r
                                        Marshal.ReleaseComObject(tasklist);\r
@@ -582,7 +583,7 @@ namespace AppliStation.Util
                \r
                #endregion\r
                \r
-               [DllImport("user32.dll", CharSet = CharSet.Auto)]\r
+               [DllImport("user32.dll", CharSet=CharSet.Auto)]\r
                internal static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);\r
                \r
                [DllImport("user32.dll", CharSet=CharSet.Auto)]\r