<?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>WindowsAPI</anon>
  </categories>
  <description>CombineRgnは、2つのリージョンを結合する。CombineRgn function (wingdi.h) - Win32 apps | Microsoft DocsWM_CREATEで、第1引数が結合先リージョン、第2引数が1つ目、第3引数が2つ目で、大体は1つ目のリージョンに2つ目のリージョンを結合するパターンである。 というか空のリージョンハンドルみたいなものがないので、大体こうやって1つずつ結合していくしかない・・・。 (アドレス渡しもできないし・・・。) 今回は矩形リージョンと楕円リージョンを結合する。WM_PAINTで、赤いブラシで結合したリージョンを描画すると、矩形と楕円が…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbg1.hatenablog.com%2Fentry%2F2020%2F01%2F12%2F210000&quot; title=&quot;CombineRgn - 車輪の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>https://cdn-ak.f.st-hatena.com/images/fotolife/B/BG1/20191106/20191106132800.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-12 21:00:00</published>
  <title>CombineRgn</title>
  <type>rich</type>
  <url>https://bg1.hatenablog.com/entry/2020/01/12/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
