Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Listview Help

Featured Replies

Posted

I am messing around with a list view, I have 2 example sources, but I can not figure out what I am doing wrong.

I am having trouble adding items to the list, I can get the items in the first Col but not in col1 or col2

here is the basic code I am using, I got it out of one of the example projects .

LOCAL lvi: LV_ITEM
mov lvi.imask, LVIF_TEXT or LVIF_IMAGE or LVIF_PARAM
push 0
pop lvi.iItem
push 0
pop lvi.lParam
mov lvi.iSubItem,00
mov eax, offset Item1
mov lvi.pszText, eax
INVOKE SendMessage, hList, LVM_INSERTITEM, 0, addr lvi
inc lvi.iSubItem
mov eax,offset SubItem1
mov lvi.pszText, eax
invoke SendMessage,hList,LVM_SETITEM,0,addr lvi

Like I said above It adds the Item but not the SubItem

Any Ideas?

Thanks in advance,

Dustyh1981

Dunno if that helps but maybe remove the [LVIF_IMAGE or LVIF_PARAM] masks...

Doesnt make sense to me when you set them to 0 anyway.

Arent subitems just columns ? You have to call LVM_INSERTCOLUMN before I guess...

The code you posted looks fine at least from what MSDN says, never dealt with that stuff myself :)

As killboy said you must had added the columns b4 u can add a subitem.

Also try zero the whole structure b4 filling it's members.

Anyway i'm making a sample right now .

Edited by GamingMasteR

here's a working example ;) .

ListView.rar

  • Author

Thanks guys, I dunno about half this stuff , I have only used a listview in vb & vb.net aand had problems with those aswell. I will try your examlple. Thanks for the help.

Dustyh1981

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.