customdrawn: Corrects the Application.MessageBox result

git-svn-id: trunk@34162 -
This commit is contained in:
sekelsenmat 2011-12-13 21:23:32 +00:00
parent cab34d03db
commit cebbdc9d4a
3 changed files with 9 additions and 0 deletions

View File

@ -209,6 +209,8 @@ type
var
CDWidgetSet: TCDWidgetSet absolute WidgetSet;
function CDMessageBoxFunction(Text, Caption : PChar; Flags : Longint) : Integer;
{$ifdef CD_WINDOWS}
function WindowProc(Window: HWnd; Msg: UInt; WParam: Windows.WParam;
LParam: Windows.LParam): LResult; stdcall;

View File

@ -151,4 +151,9 @@ begin
end;
function CDMessageBoxFunction(Text, Caption : PChar; Flags : Longint) : Integer;
begin
Result := CDWidgetset.MessageBox(0, Text, Caption, Flags);
end;
//------------------------------------------------------------------------

View File

@ -280,6 +280,8 @@ begin
{$ifdef VerboseCDApplication}
DebugLn('TCDWidgetSet.AppInit');
{$endif}
Forms.MessageBoxFunction := @CDMessageBoxFunction;
end;
procedure TCDWidgetSet.AppRun(const ALoop: TApplicationMainLoop);