ListView LVINSERTMARK is invisible

  • Thread starter Thread starter MarkR
  • Start date Start date
M

MarkR

Hello, all:

I'm trying to get the ListView Insert Mark to appear in my XP application,
and though the SendMessage(...LVM_SETINSERTMARK...) call returns TRUE, the
mark is not visible.

I built a simple, unmanaged MFC app to do the same thing and it works. Both
apps use v6 of CommCtrl, both apps use the same messages to communicate with
the control... what gives?

The one discrepancy I can find is, WinSpector reports the C++ app as having
LVS_ICON style set, but I cannot get that to show up on the WindowsForms
side (the constant is 0x0, so I don't know how to OR it with anything
meaningful). I am using the LVM_SETVIEW message, but to no effect.

Any suggestions would be greatly appreciated.

Thank you,
/m
 
To set the LVS_ICON style, make sure that the listview style does not
contain any set bits from LVS_TYPEMASK as follows :

style &= ~LVS_TYPEMASK

Atul Godbole
http://www.ssware.com/
Shell MegaPack - Windows Explorer Shell Controls for ActiveX and .Net
 
Okay, in that case I am sure the LVS_ICON style is set (by zeroing out the
LVS_TYPEMASK bits). Any other thoughts on why the insert mark is returning
true but showing up invisible? (Yes, I have tried changing the color).

Upon further exploration, it seems the conflict is with the LVS_OWNERDATA
flag. Is it possible to display the Insert Mark in a virtual, LVS_OWNERDATA
list view?

Thank you for your help.
/m
 
Back
Top