News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Listview MouseOver cursel

Started by ragdog, February 07, 2012, 08:30:09 AM

Previous topic - Next topic

ragdog

Hi

I color my listview by selected item with  WM_DRAWITEM

    .if ( dis.itemState & ODS_SELECTED )    ; If Selected                                           
        invoke SetTextColor, dis.hdc, [Edi].OLB_ITEM.crTextSel
        FillSolidRect dis.hdc, ADDR rTextRect, [Edi].OLB_ITEM.crBackGrndSel ; Erase Item   
        FillSolidRect dis.hdc, ADDR rNrRect, 00FFFFFFh ; Erase Item   

    .else
        invoke SetTextColor, dis.hdc, [Edi].OLB_ITEM.crText
        FillSolidRect dis.hdc, ADDR rTextRect, [Edi].OLB_ITEM.crBackGrnd
        FillSolidRect dis.hdc, ADDR rNrRect, 00FFFFFFh ; Erase Item   

    .endif


Is this posible to draw the mouse over cursel to a other color?
I have try ODS_FOCUS  without results.


Greets,

dedndave

cursors are very similar to icons
what you might do is grab the system cursor and alter the bitmap, making your own cursor

ragdog

No i mean not the courser sorry
I have it solved

Now have i this idea to owner draw the listview columnheader
is this possible ?

My idea is  LoadBitmap and get the Header with LVM_GETHEADER what is the next steps for it
or give for it an example?


Greets,


ragdog

Hello

I try to draw a Bitmap on the listview header

What is the best way on WM_PAINT or NM_CUSTOMDRAW or WM_DRAWITEM?
and what is the steps about this?


Greets,