wince: call the winapi directly in DrawFrameControl like was done in win32 intf

git-svn-id: trunk@23275 -
This commit is contained in:
blikblum 2009-12-25 11:58:12 +00:00
parent e479626b83
commit 0e47080811

View File

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