![]() |
Drop-down (Combo Box)
I want to do this.Two drop-down lists
First contains hard-disk drives on my computer http://i.data.bg/08/02/08/799505.jpg And the second drop-down i want to contains files in the drive that i choose in the first drop-down Here are the files http://i.data.bg/08/02/08/799510.jpg I am using Visual Studio C++ 6. Can you tell me or give me links how to scan hard disks on my computer and add them to the first drop-down then to see the files in this drive in the second drop-down |
Re: Drop-down (Combo Box)
Use GetLogicalDrives, which returns a DWORD that's a bitmask telling which drive letters are assigned. Bit 0 is drive A, bit 1 is drive B, and so on.
|
Re: Drop-down (Combo Box)
10x.But i have a question.
This code scan for drivers.But how to add the strings to the combo box.How to show them? Code:
int main() |
Re: Drop-down (Combo Box)
Depending on the number of bit set you need to add the character 'A' , 'B' as a string into the combo box.
|
| All times are GMT +5.5. The time now is 07:55. |