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
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
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