AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Einzelnes StatusPanel neu zeichnen

Ein Thema von Amateurprofi · begonnen am 19. Sep 2024 · letzter Beitrag vom 19. Sep 2024
 
Kas Ob.

Registriert seit: 3. Sep 2023
435 Beiträge
 
#2

AW: Einzelnes StatusPanel neu zeichnen

  Alt 19. Sep 2024, 08:55
Very interesting question, and i liked it !

From what i see, you have two option either
1) WM_DRAWITEM as it sound strange but many of these are not documented or the documentation is not clear,
https://learn.microsoft.com/en-us/wi...ls/wm-drawitem
But that page doesn't mention Status Bars, with this older version documentation
https://github.com/MicrosoftDocs/win...wn-status-bars
a detail explain on how to use it, notice that SB_XXX message are not supported on older Windows, but WM_DRAWITEM will work with them all Windows versions.

2) InvalidateRect , This one is my best choice, yet i have no idea if it is still working as intended on latest Windows with Status Bars (as for other (1) it is working and will work forever),
InvalidateRect is different, as it schedule the paint of the rectangle instead forcing an immediate draw, meaning it is fast and and the draw will happen on the next WM_PAINT, so you can over-call it with much less performance consequences, as the OS will handle the intersections as it see fit, while next WM_PAINT will do the perfect job.
https://learn.microsoft.com/en-us/wi...invalidaterect
yet again, you need to understand how fast it in signaling repaint and when it will happen, so it might or might-not fit your need, also InvalidateRect is the best companion for double buffering, to reduce flickering.

These what comes to mind as i recall them working, there is other approaches though, but need a recall and tests.
Kas
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 06:06 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz