AGB  ·  Datenschutz  ·  Impressum  







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

Kein Event bei PtInRect

Ein Thema von EWeiss · begonnen am 21. Okt 2008 · letzter Beitrag vom 23. Okt 2008
Antwort Antwort
EWeiss
(Gast)

n/a Beiträge
 
#1

Re: Kein Event bei PtInRect

  Alt 22. Okt 2008, 10:40
Hab das nochmal geprüft..
Denke das Problem kommt wo anders her

Teil meiner Proc

Delphi-Quellcode:
      WM_PAINT, WM_PRINT:
      begin
        Img := GetButImageProperty(WinHandle);
        ButtonStyle := GetButStyle(WinHandle);
        if (ButtonStyle and BS_USERBUTTON) = BS_USERBUTTON then
          IsStaticLabel := True;

        if (Img <> 0) or IsStaticLabel then
        begin
          GetClientRect(WinHandle, rc);
          if Msg = WM_PAINT then
          begin
            hDC := BeginPaint(WinHandle, ps);

und das ende

Delphi-Quellcode:
        if Msg = WM_PAINT then
        begin
          if not Composited then
            DoubleBuffer(0, 0, 0, 0);

          EndPaint(WinHandle, ps);
        end;
        Result := 0;
        exit;
      end; // end WM_PAINT, WM_PRINT

      WM_DESTROY:
      begin
        // GDIPLUS button image löschen
        Img := GetButImageProperty(WinHandle);
        DeleteResource(Img);
      end;
    end;
    Result := CallWindowProc(ButOldProc[nil, 0], WinHandle, Msg, wParam, lParam);
  end; // End With
Wenn ich nun EndPaint(WinHandle, ps); deaktiviere funktioniert
alles so wie es soll MouseMove usw ..
Nur was dann passiert könnt ihr euch denken das geht 2 Minuten gut dann wars das.

Wie könnte ich das problem lösen hab im moment keine idee.

gruss Emil
  Mit Zitat antworten Zitat
Antwort Antwort


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 12:27 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