{"id":19960,"date":"2015-10-10T20:38:00","date_gmt":"2015-10-10T11:38:00","guid":{"rendered":"http:\/\/www.tyosuke20xx.com\/blog\/?p=19960"},"modified":"2015-10-10T20:38:00","modified_gmt":"2015-10-10T11:38:00","slug":"window%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%9f%e3%83%b3%e3%82%b0%e6%96%87%e5%ad%97%e3%82%92%e8%a1%a8%e7%a4%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.tyosuke20xx.com\/blog\/?p=19960","title":{"rendered":"[Window\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0]\u6587\u5b57\u3092\u8868\u793a\u3059\u308b"},"content":{"rendered":"<p><span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\">#include &lt;Windows.h&gt;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\">LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\">ATOM InitApp(HINSTANCE);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\">BOOL InitInstance(HINSTANCE, int)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\">{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>char szClassName[] = &#8220;text01&#8221;;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>int WINAPI WinMain(HINSTANCE hCurInst, HINSTANCE hPrevInst,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>LPSTR lpsCmdLine, int nCmdShow);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>MSG msg;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>BOOL bRet;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>if (!InitApp(hCurInst))<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>return FALSE;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>if (!InitInstance, nCmdShow)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>return FALSE;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>while (bRet = GetMessage(&amp;msg, NULL, 0, 0)) != 0){<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">    <\/span>if (bRet == -1){<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">     <\/span>break;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">    <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>else{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>TranslateMessage(&amp;mag);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>DispatchMessage(&amp;msg);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>return (int)msg.wParam;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>ATOM InitApp(HINSTANCE hInst)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>WNDCLASSEX wc;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.cbSize = sizeof(WNDCLASSEX);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.style = CS_HREDRAW | CS_VREDRAW;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.lpfnWndProc = WndProc;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.cbClsExtra = 0;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.cbWndExtra = 0;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.hInstance = hInst;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.hIcon = (HICON)LoadImage(NULL,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>MAKEINTRESOURCE(IDI_APPLICATION),<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>IMAGE_ICON, 0, 0,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>LR_DEFAULTSIZE | LR_SHARED);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.lpszMenuName = NULL; wc.lpszClassName = NULL;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.lpszClassName = (LPCSTR)szClassName;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>wc.hIconSm = (HICON)LoadImage(NULL,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>MAKEINTRESOURCE(IDI_APPLICATION),<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>IMAGE_ICON, 0, 0,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>LR_DEFAULTSIZE | LR_SHARED);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>return (RegisterClassEx)hInst, nCmdShow);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>HWND nWnd;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>hWnd = CreateWindow(szClassName,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>&#8220;\u732b\u3067\u3082\u308f\u304b\u308b\u30c6\u30ad\u30b9\u30c8\u8868\u793a&#8221;,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>WS_OVERLAPPEDWINDOW,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>CW_USEDEFAULT,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>CW_USEDEFAULT,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>CW_USEDEFAULT,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>CW_USEDEFAULT,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>NULL,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>NULL,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>hInst,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>NULL);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>if (!hWnd)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>return FALSE;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>ShowWindow(hWnd, nCmdShow);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>UpdateWindow(hWnd);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>return TRUE;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>int id, u = 0, i;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>PAINTSTRUCT ps;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>HDC hdc;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>char * lpszStr = &#8220;\u732b\u3067\u3082\u308f\u304b\u308b\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0&#8221;;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><br \/><\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>switch (msg)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>{<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>case WM_PAINT:<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>hdc = BeginPaint(hWnd, &amp;ps);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>for (i = 0; i &lt; 20; i++){<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">    <\/span>TextOut(hdc, 0, y + 20 * i,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">     <\/span>lpszStr, (int)strlen(lpszStr));<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>EndPaint(hWnd, &amp;ps);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>break;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>case WM_CLOSE:<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>id = MassageBox(nWnd, &#8220;\u7d42\u4e86\u3057\u3066\u3082\u3088\u308d\u3057\u3044\u3067\u3059\u304b&#8221;,<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">    <\/span>&#8220;\u7d42\u4e86\u78ba\u8a8d&#8221;, MB_YESNO);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>if (id == IDYES)<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">    <\/span>DestroyWindow(hWnd);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>break;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>case WM_DESTROY:<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>PostQuitMessage(0);<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>break;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>default:<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">   <\/span>return (DefWindowProc(hWnd, msg, wp, lp));<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>}<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\">  <\/span>return 0;<\/span><\/span><br \/>\n<span style=\"color: #292f33; font-family: Arial, \u30d2\u30e9\u30ae\u30ce\u89d2\u30b4 Pro W3, Hiragino Kaku Gothic Pro, Osaka, \u30e1\u30a4\u30ea\u30aa, Meiryo, \uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af, MS PGothic, sans-serif;\"><span style=\"font-size: 13px; line-height: 20px;\"><span style=\"white-space: pre;\"> <\/span>}<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#include &lt;Windows.h&gt; LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); ATOM InitApp(HINSTANCE); BOOL &hellip; <a href=\"http:\/\/www.tyosuke20xx.com\/blog\/?p=19960\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;[Window\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0]\u6587\u5b57\u3092\u8868\u793a\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[94],"tags":[],"class_list":["post-19960","post","type-post","status-publish","format-standard","hentry","category-94"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19960"}],"version-history":[{"count":0,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/19960\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19960"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tyosuke20xx.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}