chrisbk - | ton filter me semble pas bon
ofn.lpstrFilter = "Tous\0*.*\0Images Bitmap\0*.BMP\0";
il faut que ca se finisse par un double \0 (\0\0 donc)
dans tous les ca vala un bout de code qui marchez chez moi :
Code :
- static TCHAR strInitialDir[512];
- static TCHAR strFileName[512];
- static TCHAR strCurrentName[512];
- OPENFILENAME ofnExe = { sizeof(OPENFILENAME), hWnd, 0,
- "executable Files (*.Exe)\0*.exe\0\0",
- NULL, 0, 1, strCurrentName, 512, strFileName, 512,
- strInitialDir, "Open",OFN_EXPLORER|OFN_FILEMUSTEXIST, 0, 1,
- "exe", 0, NULL, NULL };
- GetOpenFileName( &ofnExe );
|
|