| |

VerySource

 Forgot password?
 Register
Search
View: 603|Reply: 1

Problems filling list boxes with DlgDirList

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-23 18:00:01
| Show all posts |Read mode
The similar code is as follows:
  char name [100] = ("d:\\");
  int retcode = DlgDirList (name, IDC_LIST1,0, DDL_DIRECTORY);

The question to ask is that there is no problem when the directory is the root directory
However, when the directory is a non-root directory, the last directory ID of [..] is displayed at the top of the list box.

Is there any way to keep it from showing?
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-7-27 16:15:01
| Show all posts
Oh, figured it out by myself
Finally got the content of the listbox, if it is judged to be [..], delete string
Beginner, everyone laughed
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list