Does any one have an example of code on how to use DlgDirList?
Many thanks.
Greg
Printable View
Does any one have an example of code on how to use DlgDirList?
Many thanks.
Greg
Assuming I have a dialog hDlg with the list box ID_DIRLB:
This will fill the list box ID_DIRLB with all exe files that are readonly or readwrite from the windows directory. In reality, you should use the API to retrieve the windows path.Code:if(!DlgDirList(hDlg, TEXT("c:\\windows\\*.exe"), ID_DIRLB, 0, DDL_READWRITE | DDL_READONLY))
{ // handle error
}
Thank you Corned Bee, I will try this as soon as I can.