コード例 #1
0
ファイル: Rebar.cs プロジェクト: sillsdev/WorldPad
		private 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 プロジェクト: sillsdev/WorldPad
		public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);
コード例 #3
0
ファイル: Functions.cs プロジェクト: vkarthim/FieldWorks
 public extern static int GetCommonControlDLLVersion(ref DLLVERSIONINFO dvi);