Esempio n. 1
0
		protected override void CreateHandle()
		{
			if (!RecreatingHandle)
			{
				INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
				icex.dwSize = Marshal.SizeOf(typeof(INITCOMMONCONTROLSEX));
				icex.dwICC = (int)(CommonControlInitFlags.ICC_BAR_CLASSES | CommonControlInitFlags.ICC_COOL_CLASSES);
				bool  fail = WindowsAPI.InitCommonControlsEx(icex);
			}
			base.CreateHandle();
		}
Esempio n. 2
0
		public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);
Esempio n. 3
0
		protected override void CreateHandle()
		{
			// Make sure common control library initilizes toolbars and rebars
			if ( !RecreatingHandle )
			{
				INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
				icex.dwSize = Marshal.SizeOf(typeof(INITCOMMONCONTROLSEX));
				icex.dwICC = (int)(CommonControlInitFlags.ICC_BAR_CLASSES | CommonControlInitFlags.ICC_COOL_CLASSES);
				WindowsAPI.InitCommonControlsEx(icex);
			}

			base.CreateHandle();
		}
Esempio n. 4
0
 public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);