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(); }
public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);
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(); }