C言語によるWindowsプログラミングの解説サイトです。 書籍Windows Internalsの解説はこちらをご確認ください。
通常のアプリケーションは、メインウィンドウが開かれるとタスクバーに表示されます。 これをタスクバーではなく、タスクバーの右端についているタスクトレイの中へ表示させるにはどうすればいいのでしょうか? ここでは、タスクトレイに格納されるアプリケーションを、順を追って作成していきたいと思います。 その1 タスクバーに表示されないようにする 第一段階として、タスクバーにアプリケーションが表示されないようにしてみましょう。 タスクバーに何も表示されないようにするには、メインウィンドウを非表示(つまり見えなくする)にする必要があります。 しかし、メインウィンドウが見えなくてはまともに作業もできず、困ってしまいますね。 そこで、メインウィンドウの中で子ウィンドウを作成し(これは見えるようにする)、こちらをメインウィンドウの代わりに使います。 では、実際にどうすればタスクバーに表示さ
= VC++ まめ知識 = VC++に関するメモを気づいた時点で随時メモしておく私的なものです。 (以下は.NET+MFCアプリケーションが前提です。SDKな人には参考にはならないでしょう。) ◇ダウンロード [ツール類] デバッグ用のランタイムは再配布不可だそうなので リリースコンパイルしてあります。ランタイムは別で探してください。 プログラムファイルもつけていますのでVC7プラットホームをお持ちの方ならば改良もできます。 ・最終更新 IP通信テスター(TCPIPサーバ、クライアント、UDPが可) ・最終更新 X25プロトコルテスター ・最終更新 インターフェース社製PCI4101ボード通信テスター ・最終更新 インターフェース社製PCI4161ボード通信テスター(COMポート通信テスターとしても動きます) ・最終更新 WAVファイル連結ツール 部品
自動化やっぱりやらないと…と思って、Luaでのプログラムの書き方にも大分慣れたので、Cで拡張部分を書けばできるんじゃない?と思って少しやり始めた。ある程度動くようになった…けどWin32APIの関数ごとにいちいちラップ関数書くのめんどい…。 ということでまたもRubyを検討。EnumWindowsでウィンドウタイトルなどから望みのウィンドウを探せないと話にならない、のでhttp://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=Win32%3A%3AGuiTestを見る。EnumWindowsのコールバックの部分を、RubyのCでの拡張ライブラリを作ることで対応している。 Ruby/拡張ライブラリの作り方 Cでの拡張ソースを生成(仮に、win32ext.cとする) #include <ruby.h> #include <stdio.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く