<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>BG1</author_name>
  <author_url>https://blog.hatena.ne.jp/BG1/</author_url>
  <blog_title>車輪のx発明 ~B.G's Blog~</blog_title>
  <blog_url>https://bg1.hatenablog.com/</blog_url>
  <categories>
    <anon>MFC</anon>
  </categories>
  <description>CWnd::OnPaintは、ウィンドウの描画を要求された時(WM_PAINT)の処理を記述するためのメンバ関数(メッセージハンドラ)・・・。CWnd::OnPaint引数、戻り値は無く、ここにWM_PAINTに対する処理を書く・・・。今回は、OnPaintが呼ばれた時、文字列を描画する・・・。CFrameWnd_.hで、CFrameWndからOnPaintをオーバーライド・・・。CFrameWnd_.cppでは、OnPaintを使う場合は、ON_WM_PAINT()を追加する・・・。OnPaintの定義では、このように、WindowsAPIのTextOutで&quot;OnPaint&quot;と描画・・・。実…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2015%2F04%2F22%2F155851&quot; title=&quot;CWnd::OnPaint - 車輪のx発明 ~B.G&amp;#39;s Blog~&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20150422/20150422154824.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-04-22 15:58:51</published>
  <title>CWnd::OnPaint</title>
  <type>rich</type>
  <url>https://bg1.hatenablog.com/entry/2015/04/22/155851</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
