Thank you so much Alex... Regards, Surekha Vuchuru
-----Original Message----- From: Alex Cater [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 6:12 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Count of items in aListBox 1) Brute force 'query and loop' e.g. PTCHAR szQuery = _T("SELECT * FROM `ListBox` WHERE `Property` = '<PropertyName>' ORDER BY `Order`"); if (ERROR_SUCCESS == MsiDatabaseOpenView(hDatabase, szQuery, &hView)) ... Then loop to determine next order value.. UINT result = MsiViewFetch(hView, &hRecord); while(ERROR_NO_MORE_ITEMS != result) { order = MsiRecordGetInteger(hRecord, 2) + 1; result = MsiViewFetch(hView, &hRecord); } 2) Use the twin dialog technique to force a refresh. 3) Rob..? Surekha Vuchuru wrote: > > > 1) How can we know the count of ListBox2 items. This needs to be known > because WcaAddTempRecord takes a paramter for the position of the item > being added. So, i need to know the count whenever I add a new item to > that ListBox. > 2) is it possible to refresh Wix UI as and when I add items to ListBox2. > 3) How can we make sure multiselection works for a ListBox. > > -- View this message in context: http://n2.nabble.com/Count-of-items-in-aListBox-tp1558845p1559568.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users