Bonjour
est ce qu il est possible de renvoyer un repertoire avec OPENFILENAME ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
                    char szFileName[512];
                    OPENFILENAME ofn;
                    ZeroMemory(&ofn, sizeof(ofn));
                    ofn.lStructSize = sizeof(ofn); 
                    ofn.hwndOwner = NULL;
                    ofn.lpstrFile = szFileName;
                    ofn.nMaxFile = MAX_PATH;
                    ofn.Flags = OFN_EXPLORER | OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
                    if(GetOpenFileName(&ofn))
                    {                        MessageBox(NULL,szFileName,"warning",MB_OK|MB_ICONEXCLAMATION);
                    }
en cherchant sur le net et sur la msdn je n ai pas trouve de reponse...