flat assembler
Message board for the users of flat assembler.
Index
> Windows > ListBox how get scroll position ? |
Author |
|
Furs 27 Oct 2018, 16:08
To get scroll position use GetScrollInfo on the listbox with SB_VERT (or SB_HORZ if your listbox is multi-column).
To get all "visible text", I assume you mean what's visible currently? Messages to send to listbox that could prove useful: LB_GETTOPINDEX: gets the index of the top-most visible item. LB_GETLISTBOXINFO: get the number of items per column (i.e. number of visible items on single-column listbox) Then loop from LB_GETTOPINDEX, LB_GETLISTBOXINFO times, and retrieve the text via LB_GETTEXT of the specific item. |
|||
27 Oct 2018, 16:08 |
|
Roman 27 Oct 2018, 17:20
Thanks. I try this.
I test. Work fine ! |
|||
27 Oct 2018, 17:20 |
|
Roman 28 Oct 2018, 10:23
I found this nice example to change ListBox style.
https://stackoverflow.com/questions/10487285/custom-listbox-scrollbar-style-issue My question its do in resources section in winxpstyle.xml ? |
|||
28 Oct 2018, 10:23 |
|
Furs 28 Oct 2018, 12:24
Sorry, I haven't the slightest clue about any of that .xml stuff. Don't even know what it is.
|
|||
28 Oct 2018, 12:24 |
|
Roman 28 Oct 2018, 14:24
|
|||
28 Oct 2018, 14:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.