473,395 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 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
Nov 1 '06 #1
1 2897
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 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/miscct...select=1491957

Nov 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jean | last post by:
hi: i am developing a custom combobox for my company's needs that is made up of a textbox, listbox, button. i am using c#. everything is fine except for one issue. in a normal combobox,...
2
by: Martin Müller | last post by:
Hi folks! I have a .NET RichTextBox derived class which has to react differently to WM_GETTEXT (and some other messages) than it does by default (mainly converting between \n and \r\n). I...
0
by: Mauricio | last post by:
Hi All I need to get the audio messages using WndProc to determine the right time to close a waveout device and release the buffers. I tried to override WndProc but I don´t receive any message...
0
by: han.phony | last post by:
Hi, I am trying to intercept the message sent back by winmm.dll's mciSendString method when playback is finished. I tried to override the WndProc in the form but I didn't get/intercept the message,...
2
by: Benny Raymond | last post by:
Hi, I'm working on an app that has to inherit Form and override WndProc for several different reasons. Anyway it performs some actions on the window when WM_CREATE is called. The big problem...
3
by: S Wheeler | last post by:
Hi - I have a vc++ WinForms app. Can I override the WndProc so I can send custom messages to my app. Is there any way to do this? I need to notify the main form of events from a library. How is...
7
by: pigeonrandle | last post by:
Hi, Does anyone know if there is a way to foward messages that a form receives to another application form. I was thinking i could override WndProc, but i don't know how to forward any messages...
3
by: Newbie Coder | last post by:
I am trying to override WndProc like I would in this VB.NET sub. How do I do it? <System.Security.Permissions.PermissionSetAttribute(System.Security.Permissi ons.SecurityAction.Demand,...
0
by: JDeats | last post by:
I need to be able to detect when the user clicks on the browser control area. The control offers no Mouse events whatsoever. I have tried to resort to override WndProc on the control, I have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.