fixed compilation

git-svn-id: trunk@9291 -
This commit is contained in:
vincents 2006-05-16 21:41:21 +00:00
parent 675ab2b3f5
commit 1dc696deef
2 changed files with 12 additions and 12 deletions

View File

@ -25,7 +25,7 @@
unit Interfaces;
{$mode objfpc}{$H+}
{$define OldToolbar}
//{$define OldToolbar}
interface
@ -43,4 +43,4 @@ initialization
finalization
FreeWidgetSet;
end.
end.

View File

@ -297,9 +297,9 @@ function TWinCEWSStatusBar.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): HWND;
var
Params: TCreateWindowExParams;
init : INITCOMMONCONTROLSEX;
init : TINITCOMMONCONTROLSEX;
begin
init.dwSize := Sizeof(INITCOMMONCONTROLSEX);
init.dwSize := Sizeof(TINITCOMMONCONTROLSEX);
init.dwICC := ICC_BAR_CLASSES;
InitCommonControlsEx_(@init);
// general initialization of Params
@ -388,9 +388,9 @@ function TWinCEWSProgressBar.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): HWND;
var
Params: TCreateWindowExParams;
init : INITCOMMONCONTROLSEX;
init : TINITCOMMONCONTROLSEX;
begin
init.dwSize := Sizeof(INITCOMMONCONTROLSEX);
init.dwSize := Sizeof(TINITCOMMONCONTROLSEX);
init.dwICC := ICC_PROGRESS_CLASS;
InitCommonControlsEx_(@init);
// general initialization of Params
@ -446,14 +446,14 @@ end;
{ TWinCEWSToolbar}
{$IFDEF OldToolbar}
function TWinCEWSToolBar.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): HWND;
var
Params: TCreateWindowExParams;
init : INITCOMMONCONTROLSEX;
init : TINITCOMMONCONTROLSEX;
begin
init.dwSize := Sizeof(INITCOMMONCONTROLSEX);
init.dwSize := Sizeof(TINITCOMMONCONTROLSEX);
init.dwICC := ICC_BAR_CLASSES;
InitCommonControlsEx_(@init);
// general initialization of Params
@ -520,7 +520,7 @@ begin
// TODO: code buggy, Index of button to delete ?!
SendMessage(AToolBar.Handle, TB_DELETEBUTTON, 0, 0);
end;
{$ENDIF}
{ TWinCEWSTrackBar }
@ -528,9 +528,9 @@ function TWinCEWSTrackBar.CreateHandle(const AWinControl: TWinControl;
const AParams: TCreateParams): HWND;
var
Params: TCreateWindowExParams;
init : INITCOMMONCONTROLSEX;
init : TINITCOMMONCONTROLSEX;
begin
init.dwSize := Sizeof(INITCOMMONCONTROLSEX);
init.dwSize := Sizeof(TINITCOMMONCONTROLSEX);
init.dwICC := ICC_BAR_CLASSES;
InitCommonControlsEx_(@init);
// general initialization of Params