コード例 #1
0
        public static bool IsCommonCtrl6()
        {
            // Cache this value for efficenty
              if( bGotIsCommonCtrl6 == false )
              {
            DLLVERSIONINFO dllVersion = new DLLVERSIONINFO();

            // We are assummng here that anything greater or equal than 6
            // will have the new XP theme drawing enable
            dllVersion.cbSize = Marshal.SizeOf(typeof( DLLVERSIONINFO ));
            WindowsAPI.GetCommonControlDLLVersion( ref dllVersion );
            bGotIsCommonCtrl6 = true;
            isCommonCtrl6 = ( dllVersion.dwMajorVersion >= 6 );
              }

              return isCommonCtrl6;
        }
コード例 #2
0
ファイル: Functions.cs プロジェクト: janproch/datadmin
 public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);
コード例 #3
0
 public static extern int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);