First I would like to thank you for making this awesome library available for the public to use! It's the best one i've tested! Now to my other reason for posting here. I'm developing a small program to view some images, but i've stumbled upon a problem wich related to ListViews. The spacing inside the listview is totally screwed up too much. Another problem is the black background on thumbnails (ive tried the gflResizeCanvas wihtout any luck)
So after kicking my head a few times, i remembered that in XnView you have solved both those problems. So the question is: How did you do that? and can you please help me?
I've attached an image for you, so that you can see exactly what im talking about. Ohh.. and im programming in Assembly... but C or any other code example is good. I can read most languages.
Thanks in advance,
nibly
Dev::Reduce image spacing?
Moderators: XnTriq, helmut, xnview
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Dev::Reduce image spacing?
I don't use the standard drawing method for listview, so i can make what i want, but i need to draw thumbnails...nibly wrote:First I would like to thank you for making this awesome library available for the public to use! It's the best one ive tested! Now to my other reason for posting here. Im developing a small program to view som images, but ive stumbled upon a problem wich related to ListView's. The spacing inside the listview is totally screwed up to much. Another problem is the black background on thumbnails (ive tried the gflResizeCanvas wihtout any luck)
So after kicking my head a few times, i remembered that in XnView you have sovled both those problems. So the question is: How did you do that? and can you please help me?
Iv'e attached an image for you, so that you can see exactly what im talking about. Ohh.. and im programming in Assembly... but C or any other code example is good. I can read most languages.
Pierre.
-
- Author of XnView
- Posts: 44761
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
xnview wrote:I don't use ImageList, so i use BitBltnibly wrote:Now thats what i call a fast response! So do you use ImageList_Draw on a DC surface inside listview instead? Or something else?
Last nite i went on a "research" spree, and found out that the only way i can do this is either to make my own control (too lazy) or just plain old use ownerdrawn listviews. Wich solves my problem just fine and dandy! Thanks for your response and keep up the good work!