override WNDPROC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • --== Alain ==--

    override WNDPROC

    Hi,

    i was thinkging to override WNDPROC of my ListView control, in order to
    control how the headers and items will be redrawn.

    My purpose is to :
    - keep the header format (horizontal and vertical alignment)
    - place a sorting arrow on the extrem right of the header (close to the
    header border and not directly after the header text)
    - change the backgroundcolor and forecolor of the header.

    i've tried the OnDrawColumnHea der but it's not so good as it looks
    like... so the next step will be to use the WM_PAINT message send to
    WNPROC to redraw there my headers and how i want.

    Is there another possibility ?

    moreover, do you have any tutorial how to do it ?

    thx,

    Alain
  • Chris Dunaway

    #2
    Re: override WNDPROC

    On Nov 1, 1:30 am, --== Alain ==-- <nos...@noemail .comwrote:
    Hi,
    >
    i was thinkging to override WNDPROC of my ListView control, in order to
    control how the headers and items will be redrawn.
    >
    My purpose is to :
    - keep the header format (horizontal and vertical alignment)
    - place a sorting arrow on the extrem right of the header (close to the
    header border and not directly after the header text)
    - change the backgroundcolor and forecolor of the header.
    >
    i've tried the OnDrawColumnHea der but it's not so good as it looks
    like... so the next step will be to use the WM_PAINT message send to
    WNPROC to redraw there my headers and how i want.
    >
    You might check out this code to see if it will help you:



    Comment

    Working...