mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
win32: don't override TrackBar WM_NOTIFY handler result in the lcl default handler (trackbar bg is transparent now)
git-svn-id: trunk@17090 -
This commit is contained in:
parent
efbdbb855d
commit
112beff0fb
@ -1663,6 +1663,7 @@ type
|
||||
procedure UpdateSelection;
|
||||
protected
|
||||
procedure ApplyChanges;
|
||||
procedure CNNotify(var Message: TLMessage); message CN_NOTIFY;
|
||||
procedure DoChange(var msg); message LM_CHANGED;
|
||||
class function GetControlClassDefaultSize: TPoint; override;
|
||||
procedure InitializeWnd; override;
|
||||
|
@ -297,6 +297,16 @@ begin
|
||||
TWSTrackBarClass(WidgetSetClass).ApplyChanges(Self);
|
||||
end;
|
||||
|
||||
procedure TCustomTrackBar.CNNotify(var Message: TLMessage);
|
||||
begin
|
||||
if ThemeServices.ThemesEnabled then
|
||||
begin
|
||||
// dont call default handler
|
||||
end
|
||||
else
|
||||
inherited;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomTrackBar.DoChange
|
||||
Params: Msg (longint = LM_CHANGE)
|
||||
|
@ -1627,17 +1627,6 @@ begin
|
||||
LMessage.Result := DLGC_WANTALLKEYS;
|
||||
WinProcess := false;
|
||||
end;
|
||||
{
|
||||
* TODO: make it work... icon does not show up yet, so better disable it
|
||||
WM_GETICON:
|
||||
begin
|
||||
if WindowInfo^.WinControl is TCustomForm then
|
||||
begin
|
||||
LMessage.Result := TCustomForm(WindowInfo^.WinControl).GetIconHandle;
|
||||
WinProcess := false;
|
||||
end;
|
||||
end;
|
||||
}
|
||||
WM_GETMINMAXINFO:
|
||||
SetMinMaxInfo(PMINMAXINFO(LParam)^);
|
||||
WM_HSCROLL:
|
||||
|
@ -343,8 +343,8 @@ begin
|
||||
end;
|
||||
else
|
||||
if TLMessage(Message).Msg >= WM_USER then
|
||||
with TLMessage(Message) do
|
||||
Result := CallDefaultWindowProc(Handle, Msg, WParam, LParam);
|
||||
with TLMessage(Message) do
|
||||
Result := CallDefaultWindowProc(Handle, Msg, WParam, LParam);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user