473,748 Members | 5,230 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listview and WM_PAINT

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 each header as i want.

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
WNDPROC to redraw there my headers.

Is there another possibility ?

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

thx,

Alain
Nov 1 '06 #1
0 1097

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

Similar topics

6
8864
by: Joaquin Grech | last post by:
Hi I did alot of research on this on the web and msdn and I couldn't find anything. I have a listview showing as a grid (table looking, with rows and columns and no images at all, only text). I get the information to display on the listview from the network and I add items often and stuff. But more than adding items, what worries me is the step of modifying items.
4
6712
by: Kevin Dombroski | last post by:
Howdy - I would like my application to be able to read data from another application. Specifically, I would like my to get the text from the "client area" of another application's window whenever it's processing a WM_PAINT message? Can I do that? I've been searching around MSDN and Google, but I'm not really finding a way to do this. Please let me know if you have an idea - thanks!
0
1170
by: Ben Rush | last post by:
Greetings, I don't deal too much with the visual side of the framework, so I may be simply doing something quite stupid - but if I am I can't figure it out for the life of me. On my machine (a Dell Inspiron 8200, gForce4 440, 1 gig Ram, etc.) I simply fire up Visual Studio, create a Windows Form, drag a ListView onto the form, create two columns in the listview and then compile and run. When I do a mouse-over the "splitters" or the...
2
426
by: Juan Romero | last post by:
Hi guys, Does anyone know how to catch a listview scroll event? There are some things I need to refresh on the form, so I want to know when the user scrolls the listview control. Another even more useful thing would be to catch a paint event. Does anyone know how?
2
3691
by: black(flashing vampire) | last post by:
hi all~ i just built a cute window with the help of a tutorial, but met some problem when try to repaint the window, my callback function is as below: LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) { switch (iMsg)
2
2700
by: =?Utf-8?B?RXJpYw==?= | last post by:
Hello All, I am currently working on an issue that has a custom control that mimics a combobox that when it has focus it continues to generate endless WM_PAINT Messages. The control in itself is primarily a windows panel with three controls added ( textbox, combo box, and picturebox). In looking at the code for the custom control I see no issue with it. Any pointers on how to determine which likely control in this custom control...
2
2320
by: kiberg | last post by:
Hi When I listen WM_PAINT event, the cpu is max. LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { int x, y; HDC hdc; HPEN hOldPen, hPen; HBRUSH hOldBrush, hBrush; y = lParam / 65536; x = lParam % 65536; switch (message)
3
8366
by: ayan4u | last post by:
hi, I am using InvalidataRect(hWnd, &rect, TRUE) to clear my client rect....does this mean that a WM_PAINT message will the invoked automatically by it.... neways fot the time being lets assume it does.... look at this code snippet... switch(message) { case WM_CREATE:
4
4513
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea is that when clicking on the "Show details" button the ListView for the appropriate row binds in the codebehind and displays the detail data for the selected row. I did something similar with a gridview control previously, but want to be able to...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8830
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.