コード例 #1
0
		public bool _IsAppThemed()
		{
			try
			{
				// Check which version of ComCtl32 thats in use..
				DLLVERSIONINFO version = new DLLVERSIONINFO();
				version.cbSize = Marshal.SizeOf(typeof(DLLVERSIONINFO));
								
				int ret = DllGetVersion(ref version);
				// If MajorVersion > 5 themes are allowed.
				if (version.dwMajorVersion >= 6) 			
					return true;
				else
					return false;
			}
			catch (Exception)
			{
				return false;
			}
		}
コード例 #2
0
        public bool _IsAppThemed()
        {
            try
            {
                // Check which version of ComCtl32 thats in use..
                DLLVERSIONINFO version = new DLLVERSIONINFO();
                version.cbSize = Marshal.SizeOf(typeof(DLLVERSIONINFO));

                int ret = DllGetVersion(ref version);
                // If MajorVersion > 5 themes are allowed.
                if (version.dwMajorVersion >= 6)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception)
            {
                return(false);
            }
        }
コード例 #3
0
 private static extern int DllGetVersion(ref DLLVERSIONINFO s);
コード例 #4
0
		private static extern int DllGetVersion(ref DLLVERSIONINFO s);