mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 11:01:20 +02:00
wince: call the winapi directly in DrawFrameControl like was done in win32 intf
git-svn-id: trunk@23275 -
This commit is contained in:
parent
e479626b83
commit
0e47080811
@ -969,21 +969,8 @@ end;
|
||||
Draws a frame control of the specified type and style.
|
||||
------------------------------------------------------------------------------}
|
||||
function TWinCEWidgetSet.DrawFrameControl(DC: HDC; const Rect: TRect; uType,uState: Cardinal): Boolean;
|
||||
var
|
||||
Flags: dword;
|
||||
begin
|
||||
// flat button border cannot be drawn by DrawFrameControl, draw ourselves
|
||||
if (UType = DFC_BUTTON) and ((UState and DFCS_FLAT) <> 0) then
|
||||
begin
|
||||
if (UState and DFCS_PUSHED) <> 0 then
|
||||
Flags := BDR_SUNKENOUTER
|
||||
else
|
||||
if (UState and DFCS_FLAT) <> 0 then Flags := 0
|
||||
else Flags := BDR_RAISEDINNER;
|
||||
Result := Boolean(Windows.DrawEdge(DC, @Rect, Flags, BF_RECT));
|
||||
end else begin
|
||||
Result := Boolean(Windows.DrawFrameControl(DC, @Rect, UType, UState));
|
||||
end;
|
||||
Result := Boolean(Windows.DrawFrameControl(DC, @Rect, UType, UState));
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user