Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / To set listview item as checked (lvm_setitemstate)

Author
Message
Lukas W
22
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 1st Mar 2014 23:33 Edited at: 1st Mar 2014 23:43
The title on this thread is maybe confusing to understand so let me try to explain with more words.

I want to set an item_index in my listview_handle to state "checked". Since there is no command for that in BlueGUI I was curious to know if I could call this directly using User32.dll. However, I barely understand anything and after some time I came up with this dbpro code.

From what I understand, this "(LPARAM)&lvWkItem" is a pointer to an LVITEM structure (type) that bring data with it from my lvWkItem variable of same structure. But how to send that pointer for user32.dll to read I dunno. Obviously this code is not able to compile.



Anyway, maybe I am doing it completely wrong

IS that a game, a program, or 3 year old drawing.

Login to post a reply

Server time is: 2026-07-06 10:36:35
Your offset time is: 2026-07-06 10:36:35