惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
L
LangChain Blog
C
Check Point Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
Recent Announcements
Recent Announcements
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
The Cloudflare Blog
月光博客
月光博客
有赞技术团队
有赞技术团队
G
Google Developers Blog
Vercel News
Vercel News

博客园 - James Wong

QQ在线代码生成器 - James Wong - 博客园 試試Cashfiesta CreateProcess&Shellexecute - James Wong - 博客园 GDI+的用處 Domino學習筆記(11) Domino學習筆記(10) ERP推行實踐(10) Domino學習筆記(09) Domino學習筆記(08) ERP推行實踐(09) VB2005學習筆記(01) VB2005之全局鼠標鍵盤鉤子 ERP推行實踐(08) Domino學習筆記(07) ERP推行實踐(07) ERP推行實踐(06) ACCESS自動更新模式 ACCESS開發數據應用程序體會 從范例創建首個Lotus應用程序
XP系統下顯示窗體陰影
James Wong · 2005-09-23 · via 博客园 - James Wong

    Protected Overrides ReadOnly Property CreateParams() As CreateParams
        ' SecurityPermission(SecurityAction.LinkDemand, UnmanagedCode = True)
        Get
            Dim parameters As CreateParams = MyBase.CreateParams
            If (DropShadowSupported) Then
                parameters.ClassStyle = (parameters.ClassStyle Or CS_DROPSHADOW)
            End If
            Return parameters
        End Get
    End Property
    Public ReadOnly Property DropShadowSupported() As Boolean
        Get
            Return IsWindowsXPOrAbove
        End Get
    End Property
    Public ReadOnly Property IsWindowsXPOrAbove() As Boolean
        Get
            Dim System As OperatingSystem = Environment.OSVersion
            Dim runningNT As Boolean = (System.Platform = PlatformID.Win32NT)
            Return runningNT And System.Version.CompareTo(New Version(5, 1, 0, 0)) >= 0
        End Get
    End Property