Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

LB_RESETCONTENT

jameshprice
Beginner
581 Views
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.
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
581 Views
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).
0 Kudos
jameshprice
Beginner
581 Views
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.
0 Kudos
Reply