win32: cleanup

git-svn-id: trunk@25152 -
This commit is contained in:
paul 2010-05-03 09:56:47 +00:00
parent c0d26772da
commit 908323d504

View File

@ -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;