473,699 Members | 2,248 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 1094

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

Similar topics

6
8860
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
6708
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
1168
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
3690
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
2699
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
2317
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
8361
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
4509
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
8618
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
9178
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
9035
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
8885
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7752
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
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.