Here is a very simple utility I wrote to make it faster
to choose a suitable color for some ListView,applying different
text, back, and textback colors on demo listview with ready to use
code generated.
Maybe you can find some use of it.
Source is included.
A little note about the source:
I used ColorDialog from masm32 lib in it.
But I change the very end of it a little bit, the thing is that in the original
code there is no chance to understand if the procedure returned 0 value
'cause user'd pressed cancel or it returened it 'cause user had chosen black.
so I used Carry flag to make the determination.
if CF after a retern then user canceled in the dialog, otherwise he choose the
color and it is in eax, and that mean if not cf then eax = color even in case
when eax = 0.
If you want you may change the end of the proc in your m32lib the way I did it:


cmp eax,1
jc @F
mov eax, ccl.rgbResult

@@:
ret

ColorDialog endp


I have similar app to work with extended styles of ListView, where you can choose those styles
and immidiatly see how it affected ListView, if anybody is interested I can post it too.
Posted on 2002-10-31 18:19:20 by The Svin
nice tool comes handy to lazy ppl like me ;)

and yes i would be also interested in the other tool
Posted on 2002-11-01 00:43:38 by Allanon
Hi nThe Svin

Seem like most of the source is missing.
Please repost complete code.

KetilO
Posted on 2002-11-01 01:44:05 by KetilO
Hi,KetilO
Yes, I forgot include the dlgproc :)
Here it is
Posted on 2002-11-01 15:05:19 by The Svin
I've change the end of ColorDialog again:
since if CF =1 means that user canceled choosing,
value of eax doesn't matter in the case.

so the end now is just


cmp eax,1
mov eax, ccl.rgbResult
ret
Posted on 2002-11-02 14:38:56 by The Svin
and yes i would be also interested in the other tool

Here it is.
It has embedded help: ListBox on your right
has names of extended styles, when you select one
description of it appear in Edit below.
Middle raw of buttons represent the styles flags, when
you select them demo ListView shows how it looks with
those styles (not always - some styles requer additional
work to be done to make use of them).
Above the style-buttons camulative value of choosen styles
appears, so you can copy - paste it to use with LVM_SETEXTENDEDLISTVIEWSTYLE
message.
Nothing special, but may have some use when you start studing it
or need fast way to fill those styles.
Posted on 2002-11-02 18:54:28 by The Svin
thank u The Svin ...
hm is it just me ... i think i remember now that i already have a similar tool (maybe i?m also wrong) .. did u code something like that already some time ago ?
Posted on 2002-11-04 03:06:23 by Allanon

thank u The Svin ...
hm is it just me ... i think i remember now that i already have a similar tool (maybe i?m also wrong) .. did u code something like that already some time ago ?


Similar or identical?
About ListView extended styles or something else?
I wrote a little bigger app called Styles, to work with window styles(normal windows and different controls classes ), among other window classes there was also ListView, but only "normal" styles, not extended.
Posted on 2002-11-04 14:42:58 by The Svin
sorry for the later answer the svin

nope was somethin totally different found it again now ... name of the file was lvstruct.exe
and it was about some structs and constants
Posted on 2002-11-06 10:04:14 by Allanon