Kirjautuminen

Haku

Tehtävät

Keskustelu: Ohjelmointikysymykset: VB6: VB: Commondialogin multiselect?

Freeze [13.11.2006 18:36:57]

#

Onko tämmönen monivalintajuttu commondialogin ikkunaa käyttäen mahdollista jotenki? jos on niin kertoisitteko miten? Olis aika tarpeellinen tohon mun soittimeen.

sooda [13.11.2006 19:56:38]

#

Veikkaisinpa että OFN_ALLOWMULTISELECT-flägillä (&H200) moinen onnistuu.

Tällöin ne luetaan nollatavuilla erotettuna, vaikka split()in avulla.

MSDN kirjoitti:

If the OFN_ALLOWMULTISELECT flag is set and the user selects multiple files, the buffer contains the current directory followed by the file names of the selected files. For Explorer-style dialog boxes, the directory and file name strings are NULL separated, with an extra NULL character after the last file name. For old-style dialog boxes, the strings are space separated and the function uses short file names for file names with spaces.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/commondialogboxreference/commondialogboxstructures/openfilename.asp

Vastaus

Aihe on jo aika vanha, joten et voi enää vastata siihen.

Tietoa sivustosta