Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

7 May, 2024: fms is rebuilding. Don't expect much in that section for quite a few days, maybe longer.


devel / comp.os.ms-windows.programmer.win32 / Re: XPsp3 listview sort arrow problems - scratch that

SubjectAuthor
* XPsp3 listview sort arrow problemsR.Wieser
`- Re: XPsp3 listview sort arrow problems - scratch thatR.Wieser

1
XPsp3 listview sort arrow problems

<slj3hu$51g$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=231&group=comp.os.ms-windows.programmer.win32#231

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: XPsp3 listview sort arrow problems
Date: Sat, 30 Oct 2021 11:33:28 +0200
Organization: Aioe.org NNTP Server
Lines: 41
Message-ID: <slj3hu$51g$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="5168"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MSMail-Priority: Normal
X-Priority: 3
X-Notice: Filtered by postfilter v. 0.9.2
 by: R.Wieser - Sat, 30 Oct 2021 09:33 UTC

Hello all,

I'm programming Assembly on an XPsp3 machine, meaning I'm using straight API
calls. The comctl32.dll shows in its properties a "file version" of
5.82.2900.5512, and a "product version" of 6.00.2900.5512

Currently I've got a ListView pretty-much mimicking a folder view - a
filetype icon, the filename and its size. It can also sort on the the
filename and size columns.

The problem :

The filetype icons have nasty black "shadows" when I do not use
LVM_SETBKCOLOR. However, when I do that the sorting arrows are shown with a
background color too.

In short, either ugly filetype icons, or ugly sorting arrows. :-(

I've done some searching and found a possible solution using HDF_SORTxxx.

https://www.gamedev.net/forums/topic/569020-set-list-view-header-sort-arrow-c-win32/
https://stackoverflow.com/questions/254129/how-to-i-display-a-sort-arrow-in-the-header-of-a-list-view-column-using-c

Alas, that doesn't seem to want to work. Why ? I'm not at all sure.

I've also tried to give the header its own ImageList, but have not been able
to show anything outof it (the shown image on the header still came from the
parent ListViews imagelist).

Bottom line :

I'm outof ideas and can't seem to google anything which explains the
problem.

Help ?

Regards,
Rudy Wieser

Re: XPsp3 listview sort arrow problems - scratch that

<sljbb6$1bq2$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=232&group=comp.os.ms-windows.programmer.win32#232

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!aioe.org!BHGTVyTGRwF2ntnqLVfpDg.user.46.165.242.75.POSTED!not-for-mail
From: address@not.available (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: XPsp3 listview sort arrow problems - scratch that
Date: Sat, 30 Oct 2021 13:46:34 +0200
Organization: Aioe.org NNTP Server
Lines: 14
Message-ID: <sljbb6$1bq2$1@gioia.aioe.org>
References: <slj3hu$51g$1@gioia.aioe.org>
Injection-Info: gioia.aioe.org; logging-data="44866"; posting-host="BHGTVyTGRwF2ntnqLVfpDg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sat, 30 Oct 2021 11:46 UTC

> I've also tried to give the header its own ImageList, but have not been
> able
> to show anything outof it (the shown image on the header still came from
> the parent ListViews imagelist).

Scratch that. I just now retried it and it works. Good-looking filetype
icons and as good looking sorting arrows. I must have made a mistake
somewhere the previous time. :-|

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor