<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>haru-s</author_name>
  <author_url>https://blog.hatena.ne.jp/haru-s/</author_url>
  <blog_title>...ing logging 4.0</blog_title>
  <blog_url>https://haru-s.hatenablog.com/</blog_url>
  <categories>
    <anon>D言語</anon>
    <anon>Windows</anon>
  </categories>
  <description>dfl.notifyicon の残件だったイベント関係に対応しようとしたら、 通知領域のアイコンをキーボードで選択したときに、 そのアイコンの座標にコンテキストメニューを出す必要があって、 その座標を取得するのが大変だった。 マウスでクリックしたときは GetCursorPos() で簡単に取得できるけどその方法が使えないし、 この PC は表示スケールが 150% なのにその倍率を取得しようとしても 140% になってしまう。 ネットで検索しても、おそらく SetProcessDpiAwarenessContext() とかを使って、 DPI Aware なアプリにする前提になっているもよう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fharu-s.hatenablog.com%2Fentry%2F2025%2F04%2F30%2F004419&quot; title=&quot;通知領域アイコンの矩形座標を得る（高 DPI 対応） - ...ing logging 4.0&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/h/haru-s/20250430/20250430004315.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-04-30 00:44:19</published>
  <title>通知領域アイコンの矩形座標を得る（高 DPI 対応）</title>
  <type>rich</type>
  <url>https://haru-s.hatenablog.com/entry/2025/04/30/004419</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
