OSDN Git Service

AppliStation-GUI,インスコ・アンインスコ時かつ「管理者として実行時」に親フレームの表示がフリーズする問題を修正
[applistation/AppliStation.git] / AppliStation / AppliStation.Util / NativeMethods.cs
index f739712..8f091db 100644 (file)
@@ -157,6 +157,35 @@ namespace AppliStation.Util
                \r
                #endregion\r
                \r
+               #region EnableWindow(\83R\83\81\83\93\83g\83A\83E\83g)\r
+//             /// <summary>\r
+//             /// \8ew\92è\82³\82ê\82½\83R\83\93\83g\83\8d\81[\83\8b(\83E\83B\83\93\83h\83E)\82Ö\82Ì\81A\r
+//             /// \83L\81[\83{\81[\83h\93ü\97Í\82¨\82æ\82Ñ\83}\83E\83X\93ü\97Í\82ð\97L\8cø\89»\82Ü\82½\82Í\96³\8cø\89»\r
+//             /// </summary>\r
+//             /// <param name="control">\91Î\8fÛ\82Ì\83R\83\93\83g\83\8d\81[\83\8b\82Ì\83n\83\93\83h\83\89</param>\r
+//             /// <param name="bEnable">\97L\8cø\82É\82·\82é\82©\96³\8cø\82É\82·\82é\82©\82ð\8ew\92è</param>\r
+//             /// <returns>\92¼\91O\82É\83E\83B\83\93\83h\83E\82ª\96³\8cø\8fó\91Ô\82¾\82Á\82½\8fê\8d\87\82Ítrue\82ð\95Ô\82·</returns>\r
+//             public static bool Control_EnableWindow(Control ctrl, bool bEnable)\r
+//             {\r
+//                     try {\r
+//                             return EnableWindow(ctrl.Handle, bEnable);\r
+//                     } catch {\r
+//                             ctrl.Enabled = bEnable;\r
+//                             return true;\r
+//                     }\r
+//             }\r
+//             \r
+//             /// <summary>\r
+//             /// \8ew\92è\82³\82ê\82½\83R\83\93\83g\83\8d\81[\83\8b(\83E\83B\83\93\83h\83E)\82Ö\82Ì\81A\r
+//             /// \83L\81[\83{\81[\83h\93ü\97Í\82¨\82æ\82Ñ\83}\83E\83X\93ü\97Í\82ð\97L\8cø\89»\82Ü\82½\82Í\96³\8cø\89»\r
+//             /// </summary>\r
+//             /// <param name="control">\91Î\8fÛ\82Ì\83R\83\93\83g\83\8d\81[\83\8b\82Ì\83n\83\93\83h\83\89</param>\r
+//             /// <param name="bEnable">\97L\8cø\82É\82·\82é\82©\96³\8cø\82É\82·\82é\82©\82ð\8ew\92è</param>\r
+//             /// <returns>\92¼\91O\82É\83E\83B\83\93\83h\83E\82ª\96³\8cø\8fó\91Ô\82¾\82Á\82½\8fê\8d\87\82Ítrue\82ð\95Ô\82·</returns>\r
+//             [DllImport("user32.dll")]\r
+//             public static extern bool EnableWindow(IntPtr hWnd, bool bEnable);\r
+               #endregion\r
+                               \r
                [DllImport("user32.dll", CharSet=CharSet.Auto)]\r
                internal static extern IntPtr SendMessage( IntPtr hWnd, UInt32 Msg, UInt32 wParam, UInt32 lParam);\r
                \r