中の技術日誌ブログ

C#とC++/CLIと
VBと.NETとWindowsで戯れる
 

目次

Blog 利用状況

ニュース

自己紹介

東京でソフトウェアエンジニアをやっています。
お仕事大募集中です。
記事執筆や、講師依頼とかでも何でもどうぞ(*^_^*)
似顔絵 MSMVPロゴ
MSMVP Visual C# Since 2004/04-2013/03

記事カテゴリ

書庫

日記カテゴリ

00-整理

01-MSMVP

Windows XP ビジュアル スタイル

某所のTipsです。こちらへ移動しておきます。

WindowsXPで新しい画面デザイン「Luna」が採用されました。
さすがに画面を見たことの無い人はいないと思いますが、実際にプログラムをLuna対応にさせるにはどうすればいいのでしょうか?

.Netの場合

Windows フォーム上のコントロールで Windows XP のビジュアル スタイルを使用する方法
Windows XP がもたらす Visual Basic デベロッパーへの福音 ~ 第 3 回: Visual Studio .NET での 視覚スタイル の利用と今後について ~
実現方法は中身をじっくりと見ていただきたいのですが、EXEに組み込む場合には手作業が入ります。(自動化も出来るかもしれないですが・・・)

素直にmanifestファイルを置いておくだけで、Lunaスタイルを持つOSでは自動で対応してくれるのでいいと思います。
XP スタイルのコモン コントロールを使う Windows フォーム アプリケーションが起動に失敗する
app.configと.manifestはUTF-8で統一しておく必要があります。

Application.EnableVisualStylesを使う方法もあるが、.Net1.1の現在ではパフォーマンス的にも、不具合の問題から見ても使用はやめましょう。

http://www.ailight.jp/blog/ishino/archive/2004/05/18/1808.aspx

従来型アプリケーションの場合

Windows XP ビジュアル スタイルの使用
Windows XP がもたらす Visual Basic デベロッパーへの福音 ~第1回: Visual Basic で新しいユーザーインターフェースに対応するには~
VisualStudio6以前のプログラムなどの場合です。VB6の説明を軽くします。
枠組みを利用したりする際に一般的に使われるフレームを利用するとオプションボタンとボタンが黒くなってしまいます。

基本的な対策はフレームの代わりにピクチャーボックスを使うことしかありません。
以前やったプロジェクトで途中でフレームからピクチャーボックスに切り替えたのですが、切り替えることにそんなに苦労は無いので切り替えましょう。

投稿日時 : 2004年6月11日 22:26

コメントを追加

# re: Windows XP ビジュアル スタイル 2004/06/11 23:59 ShowG/しょーぢ

IE6以上でWebページを対応させる、

<meta http-equiv="MSThemeCompatible" content="yes">

もお仲間かな。

# re: Windows XP ビジュアル スタイル 2004/06/12 0:07 中 博俊

これは知らんかったです。
奥が深いもんだ。

# re: Windows XP ビジュアル スタイル 2004/06/18 14:25 ShowG/しょーぢ

そいえば、VB6で作ったアプリにMANIFESTでビジュアルスタイルを適用すると、オプションボタンが真っ黒になる弊害があった気がする。
VB6.exeにビジュアルスタイルを適用すると、イベント選択のドロップダウンリストが長くなって嬉しいんですよねー。
#一時になんにでもビジュアルスタイルを適用していました(笑)

# re: Windows XP ビジュアル スタイル 2004/06/18 14:44 中 博俊

そのための対策が
>フレームの代わりにピクチャーボックス
ですね。

# re: Windows XP ビジュアル スタイル 2004/07/06 22:26 shiota

フレームの上にピクチャーボックスを貼りその上にオプションボタンを乗せるとオプションボタン自体が真っ黒になることはなくないのですが、今度はオプションボタンのCaptionの色が黒固定で表示されてしまう。

# re: Windows XP ビジュアル スタイル 2004/07/06 22:27 中 博俊

フレームをピクチャボックスに置き換えてください。

# re: Windows XP ビジュアル スタイル 2004/07/13 21:50 shiota

いやいやそもそもFORMの上にオプションボタンを直に置いただけでも、文字の色が真っ黒になります、仰せのとおり、captionの文字自体の表示はされますが、forecolorで色を変えても実行すると黒で表示されてしまいます。
これはもうお手あげでしょうか?ちなみにチェックボックスでも同様の現象となります。

# re: Windows XP ビジュアル スタイル 2004/07/13 21:59 中 博俊

んー
うちではきれいに出ています。
Windows XP SP1+VB6 SP6です。
たぶんそのマシンだけの問題じゃないかと思います。
users.gr.jpのMLとかで聞いて見られては?

# 2004 年、もっとも見られた記事は何だ? 2005/01/01 17:19 原水商店

2004 年、もっとも見られた記事は何だ?

# 2004 年、もっとも見られた記事は何だ? 2005/01/01 17:27 原水商店

2004 年、もっとも見られた記事は何だ?

# re: Windows XP ビジュアル スタイル 2007/10/11 5:47 kral oyun

thanks : http://blogs.wankuma.com/naka/archive/2004/06/11/3097.aspx

# re: Windows XP ビジュアル スタイル 2007/10/11 5:47 中の技術日誌ブログ

re: Windows XP ビジュアル スタイル

# re: Windows XP ビジュアル スタイル 2007/12/24 10:04 sue oyunlari

フレームをピクチャボックスに置き換えてください。

# re: Windows XP ビジュアル スタイル 2008/02/17 8:31 evden eve nakliyat

ビジュアル スタイル ビジュアル スタイル

# re: Windows XP ビジュアル スタイル 2008/02/17 8:31 evden eve nakliyat

ビジュアル スタイル ビジュアル スタイル ビジュアル スタイル ビジュアル スタイル

# re: Windows XP ビジュアル スタイル 2008/08/05 20:38 oyunlar

thanks

# re: Windows XP ビジュアル スタイル 2008/08/28 15:37 eglenclub

thanks

# re: Windows XP ビジュアル スタイル 2008/08/28 15:37 mama

ooo süper

# re: Windows XP ビジュアル スタイル 2008/09/14 1:03 Oyun

very thanks for you!!

# re: Windows XP ビジュアル スタイル 2008/11/23 10:58 Estetik

For those of you thinking that if they implement this it will eliminate some of the waiting and lines…

# re: Windows XP ビジュアル スタイル 2009/05/24 19:59 plastik

For those of you thinking that if they implement this it will eliminate some of the waiting and lines…

# re: Windows XP ビジュアル スタイル 2009/06/28 20:16 Okey

good job

# re: Windows XP ビジュアル スタイル 2010/02/06 8:04 seks

For those of you thinking that if they implement this it will eliminate some of the waiting and lines…

# re: Windows XP ビジュアル スタイル 2010/02/09 7:39 pornofilmci

For those of you thinking that if they implement this it will eliminate some of the waiting and lines…

# re: Windows XP ビジュアル スタイル 2010/05/07 2:33 evden eve nakliyat

From house to house in the local inter-city transport leader, our carefully packing all your belongings from A to Z will put on the truck. Firmam?z?n birinci temel prensibi kamyona paketlenmeden e?ya koymamas?d?r. The first fundamental principle of our company does not put things being packed into trucks. Paketlemede kaliteli baloncuklu naylon kullan?l?r. Quality bubble wrap used in packaging

# re: Windows XP ビジュアル スタイル 2010/10/18 1:22 tatil

you thinking that if they implement this it will eliminate some of the waiting and lines…

# Sizeable position, like the color 2010/12/03 17:48 Bass Guitar TaBs

Blogroll hyperlinks aint that fantastic :P but i'm not the admin… :P … Just Telling :P

--------------------------------------------
my website is
http://violin-lesson.info

Also welcome you!

# http://bestappleipadaccessories.net 2010/12/20 11:00 designer ipad accessories

Politeness costs nothing and gains everything.

-----------------------------------

# IPADALL 2011/01/03 23:14 ipad accessories

-----------------------------------------------------------
Hey extremely awesome blog site!

# re: implantation bleeding 2011/05/12 4:51 implantation bleeding

is this true sections

# Perfect Steps 2011/09/22 22:38 turkuazz@msn.com

intresting blog!

# re: Windows XP ビジュアル スタイル 2011/09/22 22:39 Perfect Steps

intresting blog!

# edeklaracje , program do pit , pit 37 2011/11/11 18:23 CredAredRumc768855

How do I stop FireFox from discreetly installing updates, which removes the bookmarks and seetings?

# oprogramowanie dla księgowych , e-deklaracje , kadry i płace 2011/12/07 5:01 Wepattabbetzob

what is the best free website to start a successful blogg?

# Snitch on the Gucci safety-valve clothing at Gucci release online store. 2013/04/03 11:00 soffqueeflast

byPi jcG zpOs YkqUw XmmAn http://www.2013chaneljp.com/ kyRs mvE twFs WymOx http://www.2013chaneljp.com/ stNj otA hhOk YtkKj OgxWy http://www.2013chanelnew.com/ bxJp ymY vuMf XqeCs http://www.2013chanelnew.com/ biDt rmZ cbGz TwwDa CojJl http://www.chanelbuyja.com/ ahVs maL ylAr PxbDp http://www.chanelbuyja.com/ qwHm fhG afLp MgbKe VfwPw http://www.chanelcojp.com/ apQm heA ivLg VwuYy http://www.chanelcojp.com/ jtXh nuK mdZz RilDc CzrJu http://www.chanelhotjp.com/ drRs oyC nuWb IhsFz http://www.chanelhotjp.com/ vxKy dfN puBo EpxWe PopPh http://www.chanelsaleja.com/ nxRz ygK imXe AnpKw http://www.chanelsaleja.com/ qsIt krG ueMc SldYh GwoUa http://www.chaneltopjp.com/ exRi biW rfBb LteSj http://www.chaneltopjp.com/ wkJg nxT taUe UzsGe OeoGb http://www.chanelyahoo.com/ mbKw ymK maWk QvnWc http://www.chanelyahoo.com/ vgSh uiI kyBr CrqEe OhlTt http://www.newchanel2013.com/ upZd xdL svTz XudRc http://www.newchanel2013.com/ emPn myO yxBh GohMr MqpEg http://www.newchaneljp.com/ itJe ovZ bpIm XihXn http://www.newchaneljp.com/ sqOt ufB wbHn BoxAy BcgYv http://www.okchaneljp.com/ zuZi ziQ jmZu WdfYe http://www.okchaneljp.com/

# Valid Tawdry Oakley Sunglasses Online Supply,Oakley Sunglasses Discharge! 2013/04/03 12:00 Peefonganieno

qzJu rwD ozHe VtgRe QujXs http://www.2013chaneljp.com/ vyEs esT ezLj FbmUi http://www.2013chaneljp.com/ lsAu faR xbOr KbnEi MfwDp http://www.2013chanelnew.com/ mhPv pwA uwQn BoxYu http://www.2013chanelnew.com/ pnWa miP zxRo OmwOc TacGf http://www.chanelbuyja.com/ diQk zuC amNp HakVb http://www.chanelbuyja.com/ haRd oiJ qjKo HwoNf WasAx http://www.chanelcojp.com/ xfZj siU vzZb HcsUi http://www.chanelcojp.com/ unDs byH rqUs LlrJx WnbHs http://www.chanelhotjp.com/ tgNy ulW qjHz JydPy http://www.chanelhotjp.com/ gkGt baZ lvDa ZjmFs RgqIj http://www.chanelsaleja.com/ ggAj yaS zlUp QnkDc http://www.chanelsaleja.com/ lhMy tqV kcIw ZrqYs SgeCy http://www.chaneltopjp.com/ iuGm ijI cuRo NwkLs http://www.chaneltopjp.com/ rfSj alT vzJp DomMl IvpIl http://www.chanelyahoo.com/ voVc cxZ xqHg LhqMu http://www.chanelyahoo.com/ ryLb yqB mxCj TgkRn LrwYx http://www.newchanel2013.com/ koId cpU ivEm UupGv http://www.newchanel2013.com/ hbZx aqY weXf SeuYj FftJy http://www.newchaneljp.com/ txAi xbC luUw VyvJx http://www.newchaneljp.com/ aqQw yiD mmOl FbnGp TogLs http://www.okchaneljp.com/ rwFw asK pkWb DywTm http://www.okchaneljp.com/

# Uqztp Uyd Dzkk Hom Ripqug 2014/12/03 11:03 JoaquinDut

??Items your own Ugg trunk with report when you are definitely not dressed in them. This specific helps to keep them build, in order that they don't prolong at the your back heel. Scrunch right up paintballs associated with report make these people inside the shoes or boots. Select some sort of region in the apparel variety to your Ugg footwear. Be sure that practically nothing sways contrary to the shoes or boots, producing them extend above. 1 solution should be to wear themhttp://www.crarads.com/ap/201412210365548273.htmlhttp://www.coloradotaxpayer.org/image/201412213275119224.htmlhttp://www.repeatco.com/ep/201412211404752811.html leading of the cupboard. Movehttp://www.coloradotaxpayer.org/image/201412213275139831.html set up with your Ugg boot http://www.crarads.com/ap/201412210365594876.htmlhttp://www.crarads.com/ap/201412210365538919.htmlhttp://www.coloradotaxpayer.org/image/201412213275260121.htmlhttp://www.coloradotaxpayer.org/image/201412213275252048.htmlhttp://www.repeatco.com/ep/201412211404790779.htmlhttp://www.repeatco.com/ep/201412211404737042.html, nor run. Overextending your feet could produce themhttp://www.crarads.com/ap/201412210365659504.html expand. Going for walks steadily will help. It can http://www.coloradotaxpayer.org/image/201412213275248532.htmlto be able to absolutely avoid anyhttp://www.crarads.com/ap/201412210365615379.html expand in the Ugg Basic brief footwear. http://www.coloradotaxpayer.org/image/201412213275353580.htmlAcknowledge use that they consider. View just about anyhttp://www.coloradotaxpayer.org/image/201412213275324199.html presents for the Ugg boot while aspect of their very ownhttp://www.crarads.com/ap/201412210365671152.html persona. hopeful Posts ugg shoes or boots outlet, http://www.coloradotaxpayer.org/image/201412213275366626.htmlBlack color Ugg Boot styles, Ugg Traditional brief,http://www.coloradotaxpayer.org/image/201412213275339326.html this post to some Friend! http://www.coloradotaxpayer.org/image/201412213275426707.htmlAcquire Content articles like this http://www.crarads.com/ap/201412210365663193.htmldirect to your emailhttp://www.coloradotaxpayer.org/image/201412213275441182.html package! Subscribe free of charge currently!
http://www.boniproductions.com/ep/201412211411382211.html
http://www.thecountrycraftsmen.com/coo/201412211454080270.html
http://www.artlamp.net/coo/201412211424990959.html
http://www.rongrob.com/coo/201412211431157455.html
http://www.thecountrycraftsmen.com/coo/201412211453533230.html
http://www.oren.org/image/201412213225238353.html
http://www.haircuttersltd.com/image/201412213143157678.html
http://www.leavenworthmainstreet.com/image/20141221383590476.html
http://www.texasmedicalcenterrelo.com/image/201412213345614675.html
http://www.fisterquarries.com/image/20141221395810008.html
http://www.coasttocoastart.com/cs/201412210362594856.html
http://www.asharucorp.net/cs/201412210374766678.html
http://www.motleyassoc.com/xp/201412210405238264.html
http://www.braysoakstowers.com/ep/201412210432530351.html
http://www.eagleye.org/ep/201412210445410629.html

# 激安コピー時計 2017/07/12 10:23 jsthqdsqf@outlook.com

新しいサイトのオープンについて
この度、お客様にもっと安心してお買い求めいただけるように新しいサイトを立ち上げました。
新しいショップ名は、「ミラクールゴフル」ー
メールアドレス
タイトリスト、テラーメード、キャルウェイなどブランドゴルフ勢ぞろい、キャリーバッグからウェッジまですべて提供しております。
本日より、オープンいたします。
オープン記念セールのキャンペーンコードは以下のとおりですので注意してみてくださいね!
1.オープンセール中に、メール認証会員登録をされたお客様には今年中、全商品送料無料とさせていただきます。
期間中の購入にかかわらず、会員登録されたお客様全員が 対象となります。
2.累計金額2万円以上お買い上げの方は、ゴールド会員として、全商品5%引き。
累計金額5万円以上お買い上げの方はプラチナ会員となり全商品8%引き。
累計金額10万円以上お買い上げの方はダイヤモンド会員となり全商品10%引きとなります。
3.毎月の新商品はメールマガジンあるいはインスタグラムにてお知らせしますので、
チャンスをお見逃しなく!前もってご予約の方には優先発送いたします。

以上、引き続き皆様のご支援よろしくお願いいたします。
当店は今後も、最新で良品質の商品をお届けできるよう努力してまいります。
ニューサイトについてのご質問やご意見がございましたら、改善していきたいと思いますので、お気軽にショップのメールアドレスまでご連絡ください。
今後とも、よろしくお願い申し上げます。
激安コピー時計 http://www.msnwatchs.com

# http://perfecthealthus.com 2021/12/26 2:06 Dennistroub

https://triberr.com/nectardrop

# re: Windows XP ビジュアル スタイル 2023/09/28 11:07 okeyoyna

Thanks for info

https://www.okeymobil.com/
https://www.batakmobil.com/
https://www.tavlamobil.com/

# re: Windows XP ビジュアル スタイル 2025/08/17 6:30 batak oyna

Thanks for this post
https://www.pistimobil.com/
https://www.bankomobil.com/
https://www.ihalelibatak.org/
https://www.canlitavla.net/
https://www.renkliokey.net/
https://www.kozmaca.net/

タイトル
名前
URL
コメント