Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Msconf87 - mMain.bas

mMain.bas

Caricato da: Natamas
Scarica il programma completo

  1. Attribute VB_Name = "mMain"
  2. Option Explicit
  3.  
  4. Public Type tagInitCommonControlsEx
  5.    lngSize As Long
  6.    lngICC As Long
  7. End Type
  8. Public Declare Function InitCommonControlsEx Lib "comctl32.dll" (iccex As tagInitCommonControlsEx) As Boolean
  9. Public Const ICC_USEREX_CLASSES = &H200
  10.  
  11. Public Sub Main()
  12.  
  13.    ' we need to call InitCommonControls before we
  14.    ' can use XP visual styles.  Here I'm using
  15.    ' InitCommonControlsEx, which is the extended
  16.    ' version provided in v4.72 upwards (you need
  17.    ' v6.00 or higher to get XP styles)
  18.    On Error Resume Next
  19.    ' this will fail if Comctl not available
  20.    '  - unlikely now though!
  21.    Dim iccex As tagInitCommonControlsEx
  22.    With iccex
  23.        .lngSize = LenB(iccex)
  24.        .lngICC = ICC_USEREX_CLASSES
  25.    End With
  26.    InitCommonControlsEx iccex
  27.    
  28.    ' now start the application
  29.    On Error GoTo 0
  30.    Load Form1
  31.    Form1.Show
  32.    
  33. End Sub