mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 02:20:34 +02:00
win32: cleanup
git-svn-id: trunk@25152 -
This commit is contained in:
parent
c0d26772da
commit
908323d504
@ -396,15 +396,7 @@ begin
|
||||
PrepareCreateWindow(AWinControl, AParams, Params);
|
||||
// customization of Params
|
||||
with Params do
|
||||
begin
|
||||
case TScrollBar(AWinControl).Kind of
|
||||
sbHorizontal:
|
||||
Flags := Flags or SBS_HORZ;
|
||||
sbVertical:
|
||||
Flags := Flags or SBS_VERT;
|
||||
end;
|
||||
pClassName := 'SCROLLBAR';
|
||||
end;
|
||||
// create window
|
||||
FinishCreateWindow(AWinControl, Params, false);
|
||||
Result := Params.Window;
|
||||
@ -848,9 +840,8 @@ var
|
||||
CurrentStyle: DWord;
|
||||
begin
|
||||
CurrentStyle := GetWindowLong(ACustomComboBox.Handle, GWL_STYLE);
|
||||
if (CurrentStyle and ComboBoxStylesMask) =
|
||||
CalcComboBoxWinFlags(ACustomComboBox) then
|
||||
exit;
|
||||
if (CurrentStyle and ComboBoxStylesMask) = CalcComboBoxWinFlags(ACustomComboBox) then
|
||||
Exit;
|
||||
|
||||
RecreateWnd(ACustomComboBox);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user