{"id":1592,"date":"2025-06-14T04:44:18","date_gmt":"2025-06-13T19:44:18","guid":{"rendered":"https:\/\/www.dogrow.net\/dtp\/?p=1592"},"modified":"2025-06-14T12:37:57","modified_gmt":"2025-06-14T03:37:57","slug":"blog87%e3%80%90windows%e3%80%91windows%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%921920x1080%ef%bc%88fullhd%ef%bc%89%e3%81%ab%e5%bc%b7%e5%88%b6%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.dogrow.net\/dtp\/blog87%e3%80%90windows%e3%80%91windows%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%921920x1080%ef%bc%88fullhd%ef%bc%89%e3%81%ab%e5%bc%b7%e5%88%b6%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b%e3%80%82\/","title":{"rendered":"(87)\u3010Windows11\u3011\u6307\u5b9a\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b5\u30a4\u30ba\u30921920&#215;1080\u306b\u81ea\u52d5\u5909\u66f4\u3059\u308b\u3002"},"content":{"rendered":"<h1 class=\"my_h\">\u30101\u3011\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p><span class='my_fc_deeppinkBBig'>Windows11\u4e0a\u3067\u3001\u6307\u5b9a\u3057\u305fWindow\u306e\u30b5\u30a4\u30ba\u3092 1920&#215;1080\u306b\u5909\u66f4\u3057\u305f\u3044\u3002<\/span><\/p>\n<p><a href=\"https:\/\/obsproject.com\/ja\" target=\"_blank\">OBS Studio<\/a> \u3067\u30a2\u30d7\u30ea\u64cd\u4f5c\u306e\u69d8\u5b50\u3092\u9332\u753b\u3057\u305f\u3044\u3068\u304d\u306b\u3001\u5bfe\u8c61\u30a2\u30d7\u30ea\u306e Window\u30b5\u30a4\u30ba\u3092 1920&#215;1080\u306b\u5909\u66f4\u3057\u305f\u304b\u3063\u305f\u3002<\/p>\n<h1 class=\"my_h\">\u30102\u3011\u3084\u3063\u3066\u307f\u305f<\/h1>\n<h2 class=\"my_h\">1) \u65b9\u91dd\u691c\u8a0e<\/h2>\n<p>Microsoft\u7d14\u6b63\u306e IDE\uff08\uff1d\u7d71\u5408\u958b\u767a\u74b0\u5883\uff09\u3067\u3042\u308b Visual Studio\u3092\u4f7f\u3063\u3066\u3001\u7c21\u5358\u306a\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3092\u4f5c\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30a2\u30d7\u30ea\u304c\u5177\u5099\u3059\u308b\u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n1) \u753b\u9762\u4e0a\u306e Window\u3092\u4e00\u89a7\u8868\u793a\u3059\u308b\u3002<br \/>\n2) \u305d\u306e\u4e2d\u304b\u3089\u4e00\u3064\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u305d\u306e Windows\u30b5\u30a4\u30ba\u3092 1920&#215;1080[pixel]\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u4ee5\u4e0a<\/p>\n<h2 class=\"my_h\">2) Visual Studio\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>2025\u5e746\u670814\u65e5\u6642\u70b9\u306e\u6700\u65b0\u7248\u3001<span class='my_fc_deeppinkBBig'>Visual Studio Community 2022<\/span> \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\n\u3053\u3061\u3089\u306e\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3002\uff08\u500b\u4eba\u4f7f\u7528\u306f\u7121\u6599\uff09<br \/>\n<a href=\"https:\/\/visualstudio.microsoft.com\/ja\/\" target=\"_blank\">https:\/\/visualstudio.microsoft.com\/ja\/<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image8.jpg\" alt=\"\" class='my_add_bs1' \/><\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u8d77\u52d5\u3057\u3001\u6307\u793a\u3055\u308c\u305f\u901a\u308a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\u308c\u3070\u3088\u3044\u3002<\/p>\n<h2 class=\"my_h\">3) \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u65b0\u898f\u4f5c\u6210<\/h2>\n<p><span class='my_fc_blueBBig'>\u4eca\u56de\u306f C++\u3067\u5b9f\u88c5\u3059\u308b\u3002<\/span><br \/>\n\u500b\u4eba\u7684\u306b 30\u5e74\u4ee5\u4e0a\u524d\u306e Windows3.0\u6642\u4ee3\u3001<span class='my_fs_big1B'>Visual C++ ver.1.0 FDD 26\u679a\u7d44\uff08install\u304c\u5927\u5909\u3060\u3063\u305f&#8230;\uff09<\/span> \u306e\u9803\u304b\u3089\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001VC++\u304c\u4f7f\u3044\u6613\u304f\u611f\u3058\u308b\u3002<\/p>\n<p>C#\u3084 VB\u306a\u3069\u3082\u9078\u629e\u3067\u304d\u308b\u306e\u3067\u3001\u597d\u304d\u306a\u958b\u767a\u8a00\u8a9e\u3092\u9078\u3079\u3070\u3088\u3044\u3002<br \/>\n\u521d\u7d1a\u8005\u306e\u65b9\u306b\u306f VB\u304c\u7c21\u5358\u304b\u3082\u3057\u308c\u306a\u3044\u3002<\/p>\n<p>[\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u65b0\u898f\u4f5c\u6210]\uff0d[C++]\u30fc[\u7a7a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8]<br \/>\n\u3092\u9078\u629e\u3057\u3001\u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<h2 class=\"my_h\">4) \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<\/h2>\n<p>ChatGPT\u5927\u5148\u751f\u306e\u3054\u52a9\u8a00\u306b\u5f93\u3044\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u305f\u3002<br \/>\n10\u5206\u307b\u3069\u3067\u52d5\u304f\u7269\u304c\u51fa\u6765\u4e0a\u304c\u308b\u306e\u3060\u304b\u3089\u3001\u5927\u5148\u751f\u69d8\u69d8\u3067\u3059\u3002<\/p>\n<p>Solution Explorer \u4e0a\u3067\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u3001main.cpp \u3068\u540d\u4ed8\u3051\u308b\u3002\uff08\u540d\u524d\u306f\u81ea\u7531\uff09<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image9.jpg\" alt=\"\" class='my_add_bs1' \/><\/p>\n<p>\u4e0b\u8a18\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3002<\/p>\n<pre class=\"brush: cpp; title: main.cpp; notranslate\" title=\"main.cpp\">\r\n#include &lt;windows.h&gt;\r\n#include &lt;iostream&gt;\r\n#include &lt;string&gt;\r\n#include &lt;vector&gt;\r\n#include &lt;locale&gt;\r\n#include &lt;io.h&gt;\r\n#include &lt;fcntl.h&gt;\r\n\r\nusing namespace std;\r\n\r\nvector&lt;pair&lt;HWND, wstring&gt;&gt; windows;\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\nBOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam) {\r\n    \/\/ \u4e0d\u53ef\u8996Window\u306f\u9664\u5916\r\n    if (!IsWindowVisible(hWnd)) return TRUE;\r\n\r\n    \/\/ \u30a6\u30a3\u30f3\u30c9\u30a6\u30bf\u30a4\u30c8\u30eb\u53d6\u5f97\r\n    WCHAR title&#x5B;256];\r\n    GetWindowTextW(hWnd, title, 256);\r\n    size_t titleLength = wcslen(title);\r\n\r\n    \/\/ \u30bf\u30a4\u30c8\u30eb\u306a\u3057\u30a6\u30a3\u30f3\u30c9\u30a6\u306f\u7121\u8996\uff08\u96a0\u3057\u30a6\u30a3\u30f3\u30c9\u30a6\uff09\r\n    if (titleLength == 0) return TRUE;\r\n\r\n    \/\/ \u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3001\u30c4\u30fc\u30eb\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3069\u3092\u9664\u5916\r\n    LONG style = GetWindowLongW(hWnd, GWL_STYLE);\r\n    if (!(style &amp; WS_OVERLAPPEDWINDOW)) return TRUE;  \/\/ \u901a\u5e38\u306e\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u306f\u306a\u3044\r\n\r\n    \/\/ \u4eca\u56de\u51e6\u7406\u3057\u305fWindow\u3092\u8a18\u61b6\r\n    windows.emplace_back(hWnd, title);\r\n\r\n    return TRUE;\r\n}\r\n\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\nint wmain(int argc, wchar_t* argv&#x5B;]) {\r\n    _wsetlocale(LC_ALL, L&quot;&quot;);\r\n    (void)_setmode(_fileno(stdout), _O_U16TEXT);\r\n    (void)_setmode(_fileno(stdin),  _O_U16TEXT);\r\n\r\n    \/\/ \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570\u306e\u89e3\u6790\r\n    int win_width  = 1920;\r\n    int win_height = 1080;\r\n    for (int i = 1; i &lt; argc; ++i) {\r\n        wstring arg = argv&#x5B;i];\r\n        if (arg.rfind(L&quot;w=&quot;, 0) == 0) {\r\n            try { win_width = stoi(arg.substr(2)); }\r\n            catch (...) { wcerr &lt;&lt; L&quot;&#x5B;!] w\u306e\u5024\u304c\u4e0d\u6b63\u3067\u3059: &quot; &lt;&lt; arg &lt;&lt; endl; }\r\n        }\r\n        else if (arg.rfind(L&quot;h=&quot;, 0) == 0) {\r\n            try { win_height = stoi(arg.substr(2)); }\r\n            catch (...) { wcerr &lt;&lt; L&quot;&#x5B;!] h\u306e\u5024\u304c\u4e0d\u6b63\u3067\u3059: &quot; &lt;&lt; arg &lt;&lt; endl; }\r\n        }\r\n    }\r\n    \/\/ \u753b\u9762\u4e0a\u306eWindow\u60c5\u5831\u3092\u53ce\u96c6\r\n    EnumWindows(EnumWindowsProc, 0);\r\n    wcout &lt;&lt; L&quot;\u30a6\u30a3\u30f3\u30c9\u30a6\u6570: &quot; &lt;&lt; windows.size() &lt;&lt; L&quot; \u500b&quot; &lt;&lt; endl;\r\n\r\n    \/\/ \u5168Window\u3092\u4e00\u89a7\u8868\u793a\u3057\u3001\u9078\u3070\u305b\u308b\u3002\r\n    size_t index = 0;\r\n    for (const auto&amp; &#x5B;hWnd, title] : windows) {\r\n        wcout &lt;&lt; L&quot;&#x5B;&quot; &lt;&lt; index++ &lt;&lt; L&quot;] &quot; &lt;&lt; title &lt;&lt; endl;\r\n        if (wcout.fail()) {\r\n            wcerr &lt;&lt; L&quot;&#x5B;!] \u8868\u793a\u3067\u304d\u306a\u3044\u6587\u5b57\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u305f\u3081\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059&quot; &lt;&lt; endl;\r\n            wcout.clear();  \/\/ \u30a8\u30e9\u30fc\u72b6\u614b\u3092\u30ea\u30bb\u30c3\u30c8\r\n        }\r\n    }\r\n    wcout &lt;&lt; L&quot;\u756a\u53f7\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044: &quot;;\r\n    wcout.flush();\r\n    size_t sel;\r\n    wcin &gt;&gt; sel;\r\n\r\n    \/\/ \u6307\u5b9aWindow\u306e\u30b5\u30a4\u30ba\u5909\u66f4\u3092\u5b9f\u884c\r\n    if (sel &gt;= 0 &amp;&amp; sel &lt; windows.size()) {\r\n        HWND target = windows&#x5B;sel].first;\r\n        MoveWindow(target, 0, 0, win_width, win_height, TRUE);\r\n    }\r\n\r\n    return 0;\r\n}\r\n<\/pre>\n<h2 class=\"my_h\">5) \u30d3\u30eb\u30c9<\/h2>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u958b\u304f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image12.jpg\" alt=\"\" class='my_add_bs1' \/><\/p>\n<p>[C\/C++]\uff0d[\u8a00\u8a9e] \u3092\u958b\u304d\u3001[C++\u8a00\u8a9e\u6a19\u6e96] \u9805\u76ee\u3067 [ISO C++17\u6a19\u6e96] \u4ee5\u964d\u3092\u9078\u629e\u3059\u308b\u3002<br \/>\n<span class='my_fc_crimson'>\u203bmain.cpp\u3067\u3053\u306e\u4ed5\u69d8\u306b\u5f93\u3063\u305f\u66f8\u304d\u65b9\u3092\u3057\u3066\u3044\u308b\u305f\u3081\u3002<\/span><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image14.jpg\" alt=\"\" class='my_add_bs1' \/><\/p>\n<p>[\u30d3\u30eb\u30c9]\uff0d[\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u30ea\u30d3\u30eb\u30c9] \u3067 exe\u3092\u751f\u6210\u3059\u308b\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image10.jpg\" alt=\"\" class='my_add_bs1' \/><\/p>\n<h2 class=\"my_h\">6) \u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>Debug\u7248\u3067 exe\u3092\u751f\u6210\u3059\u308b\u3002<br \/>\n\u52d5\u4f5c\u78ba\u8a8d\u3057\u3001\u4e0d\u5177\u5408\u304c\u3042\u308c\u3070\u4fee\u6b63\u3059\u308b\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u73fe\u5728\u753b\u9762\u4e0a\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b Window\u4e00\u89a7\uff08Window\u30bf\u30a4\u30c8\u30eb\uff09\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n\u3053\u306e\u4e2d\u304b\u3089\u4e00\u3064\u3092\u9078\u3073\u3001\u5404\u884c\u5de6\u7aef\u306e\u756a\u53f7\u3092\u30ad\u30fc\u5165\u529b\u3059\u308b\u3002<\/p>\n<p>\u3059\u308b\u3068&#8230;<br \/>\n\u6307\u5b9a\u3057\u305f Windows\u306e\u30b5\u30a4\u30ba\u304c\u5909\u308f\u308b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.dogrow.net\/dtp\/wp-content\/uploads\/2025\/06\/Image15.jpg\" alt=\"\" class='my_add_bs1' \/><\/p>\n<h2 class=\"my_h\">7) \u30ea\u30ea\u30fc\u30b9<\/h2>\n<p>Release\u7248\u3067 exe\u3092\u751f\u6210\u3059\u308b\u3002<br \/>\n\u4f7f\u3044\u305f\u3044\u74b0\u5883\u3078\u6301\u3063\u3066\u3044\u304d\uff08.exe\u3060\u3051\u3067\u3088\u3044\uff09\u3001\u4f7f\u3063\u3066\u307f\u308b and \u4f7f\u3063\u3066\u3082\u3089\u3046\u3002<\/p>\n<h1 class=\"my_h\">\u30103\u3011\u6b8b\u4ef6<\/h1>\n<p>\u30b5\u30a4\u30ba\u5909\u66f4\u5f8c\u306e Window\u3092 Screen capture\u3057\u3066\u30b5\u30a4\u30ba\u3092\u78ba\u8a8d\u3059\u308b\u3068\u3001<br \/>\n<span class='my_fc_redBBig'>1920 x 1080 \u3067\u306f\u306a\u304f 1906 x 1073 \u306b\u306a\u3063\u3066\u3044\u305f&#8230;<\/span><\/p>\n<p><span class='my_fc_redBBig'>X\u65b9\u5411\u306b -14[pixel], Y\u65b9\u5411\u306b -7[pixel] \u3082\u7e2e\u3093\u3067\u3057\u307e\u3063\u305f\u3002\u306a\u305c\uff1f<\/span><br \/>\n\u67a0\u306b 7[pixel]\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u304b\uff1f<\/p>\n<p>\u5f8c\u65e5\u8abf\u67fb\u3057\u3088\u3046\u3002<br \/>\n\u73fe\u6642\u70b9\u3067\u306f OBS Studio \u3078\u306e\u5165\u529b\u30b5\u30a4\u30ba\u3092\u8abf\u6574\u3057\u305f\u3044\u3068\u3044\u3046\u76ee\u7684\u3092\u6e80\u305f\u305b\u308c\u3070 OK\u3060\u304b\u3089\u30fb\u30fb\u30fb<\/p>\n<hr class=\"my_hr_bottom\">\n","protected":false},"excerpt":{"rendered":"<p>\u30101\u3011\u3084\u308a\u305f\u3044\u3053\u3068 Windows11\u4e0a\u3067\u3001\u6307\u5b9a\u3057\u305fWindow\u306e\u30b5\u30a4\u30ba\u3092 1920&#215;1080\u306b\u5909\u66f4\u3057\u305f\u3044\u3002 OBS Studio \u3067\u30a2\u30d7\u30ea\u64cd\u4f5c\u306e\u69d8\u5b50\u3092\u9332\u753b\u3057\u305f\u3044\u3068\u304d\u306b\u3001\u5bfe\u8c61\u30a2\u30d7\u30ea\u306e Window\u30b5\u30a4\u30ba\u3092 19\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.dogrow.net\/dtp\/blog87%e3%80%90windows%e3%80%91windows%e3%82%b5%e3%82%a4%e3%82%ba%e3%82%921920x1080%ef%bc%88fullhd%ef%bc%89%e3%81%ab%e5%bc%b7%e5%88%b6%e5%a4%89%e6%9b%b4%e3%81%99%e3%82%8b%e3%80%82\/\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,28],"tags":[],"class_list":["post-1592","post","type-post","status-publish","format-standard","hentry","category-windows","category-28"],"views":699,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/posts\/1592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/comments?post=1592"}],"version-history":[{"count":27,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/posts\/1592\/revisions"}],"predecessor-version":[{"id":1627,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/posts\/1592\/revisions\/1627"}],"wp:attachment":[{"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/categories?post=1592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dogrow.net\/dtp\/wp-json\/wp\/v2\/tags?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}