mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 15:39:49 +02:00
customdrawn: Corrects the Application.MessageBox result
git-svn-id: trunk@34162 -
This commit is contained in:
parent
cab34d03db
commit
cebbdc9d4a
@ -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;
|
||||
|
@ -151,4 +151,9 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
function CDMessageBoxFunction(Text, Caption : PChar; Flags : Longint) : Integer;
|
||||
begin
|
||||
Result := CDWidgetset.MessageBox(0, Text, Caption, Flags);
|
||||
end;
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
@ -280,6 +280,8 @@ begin
|
||||
{$ifdef VerboseCDApplication}
|
||||
DebugLn('TCDWidgetSet.AppInit');
|
||||
{$endif}
|
||||
|
||||
Forms.MessageBoxFunction := @CDMessageBoxFunction;
|
||||
end;
|
||||
|
||||
procedure TCDWidgetSet.AppRun(const ALoop: TApplicationMainLoop);
|
||||
|
Loading…
Reference in New Issue
Block a user