Strona: [  << <   1   > >>  ]  z  1     
Autor Temat: Okno zmiany folderu
mikmas
From Łódź Stadt




Typ: neutral
Postów: 772
Zarejestrowany: Apr 2003
Okno zmiany folderu

Jak wywołać systemowe okno zmiany folderu?


_____________________________________________
4C;65;70;69;65;6A;20;62;79;9C;20;73;69;EA;20;
62;61;72;64;7A;69;65;6A;20;73;6B;6F;6E;63;65;
6E;74;72;6F;77;61;B3;20;6E;61;20;6F;64;70;6F;
77;69;65;64;7A;69;2C;20;61;20;6E;69;65;20;6E;
61;20;72;6F;7A;73;7A;79;66;72;6F;77;79;77;61;
6E;69;75;20;3A;50

11-08-2004 21:06
Pokaż profil mikmas  Wyślij email do mikmas   Odwiedź stronę mikmas       3632553
hicks
raptor user



Typ: moderator
Postów: 279
Zarejestrowany: Apr 2003

Private Declare Function SHBrowseForFolder Lib "shell32" (lpbi As BrowseInfo) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32" (ByVal pidList As Long, ByVal lpBuffer As String) As Long
Private Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal hMem As Long)
Private Declare Function lstrcat Lib "kernel32" Alias "lstrcatA" (ByVal lpString1 As String, ByVal lpString2 As String) As Long

Private Type BrowseInfo
    hWndOwner As Long
    pIDLRoot As Long
    pszDisplayName As Long
    lpszTitle As Long
    ulFlags As Long
    lpfnCallback As Long
    lParam As Long
    iImage As Long
End Type

Const BIF_RETURNONLYFSDIRS = 1
Const MAX_PATH = 260

Private Sub Form_Load()
    Dim BInfo As BrowseInfo, lngIDList As Long, intNull As Integer, strPath As String
    With BInfo
        .hWndOwner = Me.hWnd
        .lpszTitle = lstrcat("C:\", "" )
        .ulFlags = BIF_RETURNONLYFSDIRS
    End With
    lngIDList = SHBrowseForFolder(BInfo)
    If lngIDList Then
        strPath = String$(MAX_PATH, 0)
        SHGetPathFromIDList lngIDList, strPath
        CoTaskMemFree lngIDList
        intNull = InStr(strPath, vbNullChar)
        If intNull Then
            strPath = Left$(strPath, intNull - 1)
        End If
    End If
   
    MsgBox strPath
    End
End Sub


_____________________________________________
TLHW Clan member

12-08-2004 10:34
Pokaż profil hicks  Wyślij email do hicks   Odwiedź stronę hicks       2511367
Wszystkich odpowiedzi: 1 :: Maxymalnie na stronę: 20
Strona: [  << <   1   > >>  ]  z  1