Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
スケルトンってかっこいいよね
あると@twinkfrag
2014/12/21 1
誰
• あると@twinkfrag
• FI科3年、Visual Computing研究室
• 艦これ廃人やめました
(司令部Lv113、ケッコンカッコカリ15隻)
• C#ばかり書いてたらJava書けなくなった
• ロックスターエナジードリン...
スケルトン
2014/12/21 3
…ちがう
2014/12/21 4
スケルトン
2014/12/21 5
スケルトン
2014/12/21 6
http://tanakh.jp/posts/2011-11-15-windows-terminal.html
Windows Aero Glass
• Windows Vistaに導入された
• かっこいい
• 今更ちょっと調べてみた
というのが今回の話
2014/12/21 7
Windows Formsでつくってみる
(0)
2014/12/21 8
Windows Formsでつくってみる
(1)
• まず、P/Invoke (プラットフォーム呼び出し)
2014/12/21 9
public struct MARGINS
{
public int Left;
public int Rig...
Windows Formsでつくってみる
(2)
• WindowのクラスのOnLoadで実行
2014/12/21 10
protected override void OnLoad(EventArgs e) {
base.OnLoad(e)...
Windows Formsでつくってみる
(3)
• 透過色は黒になるので注意
2014/12/21 11
BackColor = Color.Black;
• WndProcをオーバーライドしてどこでも掴ん
で動かせるようにすると良い
• M...
Windows Formsでつくってみる
(4)
• 全面透過したくない場合、Backgroundの一部
のみ黒くする
2014/12/21 12
protected override void OnPaintBackground(PaintE...
…でもめんどくさいよね
2014/12/21 13
WPFで作ってみる
• よく分かんないけどこれやってごりごりすれば
多分できる()
2014/12/21 14
<Window ... Background="Black">
<WindowChrome.WindowChrome>
<Windo...
ただし
• もうお気づきの方もいらっしゃるかもしれない
ですが
• Aero Glass はWindows 8 で廃止されました。
2014/12/21 15
Upcoming SlideShare
Loading in …5
×

スケルトンってかっこいいよね

717 views

Published on

@TDU FEN LT #3

Published in: Technology
  • DOWNLOAD THAT BOOKS/FILE INTO AVAILABLE FORMAT - (Unlimited) ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes Christian, Classics, Comics, Contemporary, Cookbooks, Art, Biography, Business, Chick Lit, Children's, Manga, Memoir, Music, Science, Science Fiction, Self Help, History, Horror, Humor And Comedy, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/yyxo9sk7 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

スケルトンってかっこいいよね

  1. 1. スケルトンってかっこいいよね あると@twinkfrag 2014/12/21 1
  2. 2. 誰 • あると@twinkfrag • FI科3年、Visual Computing研究室 • 艦これ廃人やめました (司令部Lv113、ケッコンカッコカリ15隻) • C#ばかり書いてたらJava書けなくなった • ロックスターエナジードリンク厨 • ネトスペ堕ちました 2014/12/21 2
  3. 3. スケルトン 2014/12/21 3
  4. 4. …ちがう 2014/12/21 4
  5. 5. スケルトン 2014/12/21 5
  6. 6. スケルトン 2014/12/21 6 http://tanakh.jp/posts/2011-11-15-windows-terminal.html
  7. 7. Windows Aero Glass • Windows Vistaに導入された • かっこいい • 今更ちょっと調べてみた というのが今回の話 2014/12/21 7
  8. 8. Windows Formsでつくってみる (0) 2014/12/21 8
  9. 9. Windows Formsでつくってみる (1) • まず、P/Invoke (プラットフォーム呼び出し) 2014/12/21 9 public struct MARGINS { public int Left; public int Right; public int Top; public int Bottom; } [DllImport("dwmapi.dll", PreserveSig = false)] public static extern void DwmExtendFrameIntoClientArea(IntPtr hwnd, ref MARGINS margins);
  10. 10. Windows Formsでつくってみる (2) • WindowのクラスのOnLoadで実行 2014/12/21 10 protected override void OnLoad(EventArgs e) { base.OnLoad(e); try { var margins = new MARGINS() { Top = 0, Left = -1, Right = 0, Bottom = 0, }; DwmExtendFrameIntoClientArea(this.Handle, ref margins); BackColor = Color.Black; } catch (Exception exception) { Console.WriteLine(exception.StackTrace); } }
  11. 11. Windows Formsでつくってみる (3) • 透過色は黒になるので注意 2014/12/21 11 BackColor = Color.Black; • WndProcをオーバーライドしてどこでも掴ん で動かせるようにすると良い • Marginsに-1を渡すと全面を透過できる
  12. 12. Windows Formsでつくってみる (4) • 全面透過したくない場合、Backgroundの一部 のみ黒くする 2014/12/21 12 protected override void OnPaintBackground(PaintEventArgs e) { base.OnPaintBackground(e); Try { e.Graphics.Clear(Color.Black); Rectangle clientArea = new Rectangle( margins.Top, margins.Left, this.ClientRectangle.Width - margins.Left - margins.Right, this.ClientRectangle.Height - margins.Top - margins.Bottom ); Brush b = new SolidBrush(this.BackColor); e.Graphics.FillRectangle(b, clientArea); } catch (Exception exception) { } }
  13. 13. …でもめんどくさいよね 2014/12/21 13
  14. 14. WPFで作ってみる • よく分かんないけどこれやってごりごりすれば 多分できる() 2014/12/21 14 <Window ... Background="Black"> <WindowChrome.WindowChrome> <WindowChrome GlassFrameThickness="-1" /> </WindowChrome.WindowChrome>
  15. 15. ただし • もうお気づきの方もいらっしゃるかもしれない ですが • Aero Glass はWindows 8 で廃止されました。 2014/12/21 15

×