C# と VB.NET の質問掲示板

わんくま同盟

ASP.NET、C++/CLI、Java 何でもどうぞ

C# と VB.NET の入門サイト


(過去ログ 43 を表示中)
■22700 / )  Re[4]: ファイル選択ダイアログについて
□投稿者/ Azulean (174回)-(2008/07/29(Tue) 23:22:01)
No22677 (魔界の仮面弁士 さん) に返信
> MSDN のサンプルで言えば、MyHookProc メソッドのコード

この手法って、Vista SP1だと実現できないかもしれません。
Vista SP1以降だと、新しいコモンダイアログが自動的に適用されます。
AutoUpgradeEnabledプロパティをfalseにすれば元の古いダイアログに戻りますが、このプロパティは.NET 2.0のSPなしバージョンには存在しないので、静的に設定できないし…。

参考URL
http://msdn.microsoft.com/ja-jp/library/system.windows.forms.filedialog.autoupgradeenabled.aspx
> この FileDialog インスタンスを Windows Vista で実行する場合に、外観と動作を自動的にアップグレードする場合は true
> それ以外の場合は false。既定値は true です。

http://msdn.microsoft.com/en-us/library/bb776913.aspx
> Enables simple customization of the dialog, such as setting the label on the OK button, without requiring a hook procedure.

http://msdn.microsoft.com/en-us/library/ms646927.aspx
> Note Starting with Windows Vista, the Common File Dialog has been superseded by the Common Item Dialog when used to open a file.
> We recommended that you use the Common Item Dialog API instead of the Common File Dialog API in this case.
> For more information, please see Common Item Dialog.

http://msdn.microsoft.com/ja-jp/library/dk77e5e7.aspx
> Windows Vista では、CFileDialog を使用する場合のコントロール ID のシステムが以前のバージョンの Windows から変更されています。
> 以前のバージョンの Windows からプロジェクトを移植するには、CFileDialog コントロールへのすべての参照をまず更新する必要があります。

返信 編集キー/


管理者用

- Child Tree -