- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to use an LB_RESETCONTENT message to clear a ListBox in a QuickWin program. This call is not clearing the box. Should I use something else? I did a test using LB_GETCOUNT and it worked.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you're using DFLOGM, it keeps buffered number and contents of items. My guess is that DFLOGM puts that info back into the listbox soon after you empty it (i.e. LB_RESETCONTENT works but you don't see it). Preferred way is to use DlgSet(Dlg, IDC_LIST1, 0, DLG_NUMITEMS).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I used the DLG_NUMITEMS in DlgSet and it did clear the ListBox. Thanks . Also, I was using DFLOGM so you were correct on all accounts.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page