skip to main | skip to sidebar
MelekTaus

Montag, 1. Februar 2010

FullAero

Wenn man Windows Vista/7 verwendet und Windows Aero aktiviert hat, dann geschieht etwas in Verbindung mit diesem Code:
FullAero.Load(Me)
Dann noch die Klasse dazu:
Was dabei passiert? Nichts Außergewöhnliches XD
Class FullAero
  Shared Sub Load(ByVal form As Form)
    Try
      Dim margins As New MARGINS
      margins.cxLeftWidth = -1
      margins.cxRightWidth = -1
      margins.cyTopHeight = -1
      margins.cyButtomheight = -1
      DwmExtendFrameIntoClientArea(form.Handle, margins)
      form.BackColor = Color.Black
    Catch ex As Exception
      MsgBox(ex.Message)
    End Try
  End Sub
  <Runtime.InteropServices.DllImport("dwmapi.dll")> _
  Private Shared Function DwmExtendFrameIntoClientArea( _
    ByVal handle As IntPtr,
    ByRef border As MARGINS) As Integer
  End Function
  Private Structure MARGINS
    Public cxLeftWidth As Integer
    Public cxRightWidth As Integer
    Public cyTopHeight As Integer
    Public cyButtomheight As Integer
  End Structure
End Class
Erstellt von MelekTaus in der Kategorie VB.NET-Codes

Keine Kommentare:

Kommentar veröffentlichen

Neuerer Post Älterer Post Startseite

Seiten

  • Willkommen
  • Neueste Posts
  • Alle Filme und Serien

Veröffentlichung

Kategorien

  • Allgemeines (9)
  • Filme (71)
  • Gedichte (5)
  • Liebling und Ich (10)
  • Met (7)
  • Musik (10)
  • Origami (5)
  • Projekte (4)
  • RPGVX-Scripts (2)
  • Software (4)
  • Spiele (6)
  • Tabs (3)
  • Träume (6)
  • VB.NET-Codes (1)
  • Werbung (1)
  • YouTube-Videos (8)
  • Zeichnungen (3)

WM 2010

Wird geladen...

Freunde

Kommentare

Shoutbox