Ejemplo n.º 1
0
            /// <summary>
            /// Initialize Windows common controls before try to use them
            /// </summary>
            /// <returns>TRUE - if successful, FALSE - fail</returns>
            private bool InitializeCommonControls()
            {
                INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
                icex.dwSize = Marshal.SizeOf( typeof( INITCOMMONCONTROLSEX ) );
                icex.dwICC = (int)CommonControlInitFlags.ICC_WIN95_CLASSES;

                bool bStatus = WindowsAPI.InitCommonControlsEx( icex );

                return bStatus;
            }
Ejemplo n.º 2
0
 public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);
Ejemplo 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 );
              }

              // Handle is being created or recreated, reset placeHolder flag
              placeHolderAdded = false;

              base.CreateHandle();
        }
Ejemplo n.º 4
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();
 }
Ejemplo n.º 5
0
        protected override void CreateHandle()
        {
            // Make sure common control library initilizes updown control
              if( !RecreatingHandle )
              {
            INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
            icex.dwSize = Marshal.SizeOf(typeof(INITCOMMONCONTROLSEX));
            icex.dwICC = (int)CommonControlInitFlags.ICC_WIN95_CLASSES;

            WindowsAPI.InitCommonControlsEx(icex);
              }

              base.CreateHandle();
        }
Ejemplo n.º 6
0
 public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);