Forum: Win32/Win64 API (native code)
Delphi
by Chris P,
12. Feb 2007
Danke bitsetter!!!
RedrawWindow(...) ist genau das was ich gebraucht habe!
Ich kann WM_MOUSEMOVE auch außerhalb des Fensters abfangen, da ich mit SetCapture arbeite.
Mein Problem ist gelöst :thumb:
Forum: Win32/Win64 API (native code)
Delphi
by Chris P,
11. Feb 2007
Das hier führt leider immer noch zu gewünschten Erfolg:
WM_INITDIALOG:
begin
GetWindowRect(GetDlgItem(hwnd, 106), rc);
AppDC := CreateDC('DISPLAY', nil, nil, nil);
end;
WM_CTLCOLORSTATIC:
begin
case GetDlgCtrlId(lParam) of
IDC_COLOR_RECT:
Forum: Win32/Win64 API (native code)
Delphi
by Chris P,
11. Feb 2007
Erstmal vielen Dank für die Antworten.
WM_CTLCOLORSTATIC wird geschickt wenn das Control neu gezeichnet wird.
Also müsste ich ja nach
clr := GetPixel(AppDC, pt.x, pt.y);
das Control neuzeichnen?
Oder wie löse ich das WM_CTLCOLORSTATIC-Ereignis aus?
Forum: Win32/Win64 API (native code)
Delphi
by Chris P,
11. Feb 2007
Zur Hilfe nochmal mein Quelltext:
function DlgFunc(hWnd: HWND; uMsg: Cardinal; wParam: WPARAM; lParam: LPARAM): BOOL; stdcall;
var
pt: TPoint;
brush: HBRUSH;
begin
Result := TRUE;
case uMsg of
Forum: Win32/Win64 API (native code)
Delphi
by Chris P,
11. Feb 2007
Auch mit SelectObject habe ich es versucht.
Geht leider auch nicht.