OSDN Git Service

#34026 動画再生時にレーン表示が消えていた問題を修正。
[dtxmania/dtxmania.git] / FDK17プロジェクト / コード / 01.フレームワーク / Core / GameWindow.cs
index 8db67c2..892607a 100644 (file)
@@ -418,6 +418,18 @@ namespace SampleFramework
                                        base.ClientSize = new Size(SampleFramework.GameWindowSize.Width, SampleFramework.GameWindowSize.Height);\r
                                        this.OnResizeEnd(new EventArgs());              // #23510 2010.11.20 yyagi: to set window size to Config.ini\r
                                }\r
+                               else\r
+                               if ((m.WParam.ToInt32() & 0xFFFF) == MENU_VIEW - 1)             \r
+                               {\r
+                                       base.ClientSize = new Size( 1280, 720 );\r
+                                       this.OnResizeEnd(new EventArgs());              // #23510 2010.11.20 yyagi: to set window size to Config.ini\r
+                               }\r
+                               else\r
+                               if ((m.WParam.ToInt32() & 0xFFFF) == MENU_VIEW - 2)             \r
+                               {\r
+                                       base.ClientSize = new Size( 640, 480 );\r
+                                       this.OnResizeEnd(new EventArgs());              // #23510 2010.11.20 yyagi: to set window size to Config.ini\r
+                               }\r
                                #endregion\r
                        }\r
                        #region #28821 2014.1.23 yyagi (WM_COPYDATA)\r
@@ -576,7 +588,7 @@ namespace SampleFramework
             return (Icon)Resources.sdx_icon_black.Clone();\r
                }\r
 \r
-               #region システムメニューに"640x480"を追加 #23510 2010.11.13 yyagi add: to set "640x480" menu in systemmenu. See also http://cs2ch.blog123.fc2.com/blog-entry-80.html\r
+               #region システムメニューに"1920x1080", "1280x720", "640x480" を追加 #23510 2010.11.13 yyagi add: to set "1920x1020","1280x720","640x480" menu in systemmenu. See also http://cs2ch.blog123.fc2.com/blog-entry-80.html\r
                [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]\r
                private struct MENUITEMINFO\r
                {\r
@@ -619,13 +631,29 @@ namespace SampleFramework
                        item1.fType = MFT_SEPARATOR;\r
                        InsertMenuItem(hSysMenu, 5, true, ref item1);\r
 \r
-                       //メニュー項目の挿入   \r
+                       //メニュー項目(1920x1080)の挿入   \r
                        MENUITEMINFO item2 = new MENUITEMINFO();\r
                        item2.cbSize = (uint)Marshal.SizeOf(item2);\r
                        item2.fMask = MIIM_STRING | MIIM_ID;\r
                        item2.wID = MENU_VIEW;\r
                        item2.dwTypeData = "&" + SampleFramework.GameWindowSize.Width.ToString() + "x" + SampleFramework.GameWindowSize.Height.ToString();\r
                        InsertMenuItem(hSysMenu, 6, true, ref item2);\r
+\r
+                       //メニュー項目(1280x720)の挿入   \r
+                       MENUITEMINFO item3 = new MENUITEMINFO();\r
+                       item3.cbSize = (uint) Marshal.SizeOf( item3 );\r
+                       item3.fMask = MIIM_STRING | MIIM_ID;\r
+                       item3.wID = MENU_VIEW - 1;\r
+                       item3.dwTypeData = "&1280x720";\r
+                       InsertMenuItem( hSysMenu, 6, true, ref item3 );\r
+\r
+                       //メニュー項目(640x480)の挿入   \r
+                       MENUITEMINFO item4 = new MENUITEMINFO();\r
+                       item4.cbSize = (uint) Marshal.SizeOf( item4 );\r
+                       item4.fMask = MIIM_STRING | MIIM_ID;\r
+                       item4.wID = MENU_VIEW - 2;\r
+                       item4.dwTypeData = "&640x480";\r
+                       InsertMenuItem( hSysMenu, 6, true, ref item4 );\r
                }   \r
                #endregion\r
        }\r