Thema: Delphi WndProc Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#8

Re: WndProc Problem

  Alt 19. Mär 2008, 17:30
Hi,

nein, nein das mit dem WM_PAINT stimmt nicht:

Delphi-Quellcode:
TControl = class
protected
  procedure DoPaint; virtual;
end;

procedure TControl.DoPaint;
begin
  // <--- Leer
end;

procedure TControl.WndProc(var Message: TMessage);
begin
  case Message.Msg of
    WM_PAINT: begin
                if FVisible then
                  DoPaint;
              end;
  end;
end;
So ist das doch Ok oder nicht?
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat