override WNDPROC

  • Thread starter Thread starter --== Alain ==--
  • Start date Start date
A

--== Alain ==--

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 OnDrawColumnHeader 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
 
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 OnDrawColumnHeader 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:

http://www.codeproject.com/cs/miscc...sp?df=100&forumid=136679&exp=0&select=1491957
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top