i have set WS_VSCROL and WS_HSCROLL to 0 but the scroll is still there at the bottom of my ListView.

BTW i can see it becouse my Report ListView Header is bigger than my ListView.
Posted on 2003-10-24 15:46:50 by AceEmbler
Hi AceEmbler

Don't think it is possible to create a report listview without scrollbars.

KetilO
Posted on 2003-10-24 18:26:44 by KetilO
Are you sure? I recall having seen a test program that could do that. Not that there's much use to it tough. ;)
Posted on 2003-10-24 21:51:45 by QvasiModo
Hi QvasiModo

Yes I'm shure.

KetilO
Posted on 2003-10-25 03:49:08 by KetilO
But there are always some tricks ...

KetilO
Posted on 2003-10-25 03:50:04 by KetilO
Baka me. I remember i asked once about this. So somebody answered that header is also scroll or something like this.

BTW in your example you can resize the headers so the scroll will appear.
Posted on 2003-10-25 05:54:14 by AceEmbler
@Ketil: Great sample! :)

@AceEmbler: Yea, I remember that thread too. As I recall the headers size is recalculated when a scroll event occurs (I'm too lazy to search for it :grin: ).

Anyway, I've tried Ketil's second sample and it doesn't scroll. Changing the header's size does nothing. I'm running WinME (4.90.3000). What OS are you using?
Posted on 2003-10-25 10:12:31 by QvasiModo
1. Decreas the Name header
2. Decreas the Size header
3. Increas Date to max
4. Increas Size to max
5. Increas Name to max
Posted on 2003-10-25 11:20:47 by AceEmbler
Nope, still no scroll bars.
Posted on 2003-10-25 11:26:53 by QvasiModo
XP Professional version 2002
Posted on 2003-10-25 13:16:02 by AceEmbler
Hi AceAmbler

Just change the line:

invoke MoveWindow,hLV,0,0,500,rect.bottom,TRUE

to:

invoke MoveWindow,hLV,0,0,16384,rect.bottom,TRUE

KetilO
Posted on 2003-10-25 13:49:15 by KetilO