Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションに Webbrowser を実装していますが、Webbrowser に現在読み込まれているドキュメントのタイトルを見つける方法はありますか?
私が達成しようとしているのは、ドキュメントが特定のタイトルに達するまでブラウザーが Web サイトをリロードすることです。
アプリケーションに IE ブラウザの com オブジェクトを実装しましたか? その場合、「IHTMLDocument2」インターフェイス ポインタを取得し、「get_title」を呼び出してタイトル文字列を取得できます。または、「IHTMLDocument3」インターフェイスから html ソースを取得して、自分で解析することもできます。
参照: CHtmlView から HTML ソースを取得する (Visual Studio 6)