你可以用捕获消息,然后控制边框的宽度。可以达到效果。
FOriginalPageControlWndProc3(Message);
with Message do
if (Msg = TCM_ADJUSTRECT) and (Message.WParam = 0) then
begin
PRect(LParam)^.Top := PRect(LParam)^.Top+2;
PRect(LParam)^.left := PRect(LParam)^.left+1;
//PRect(LParam)^.Right := PRect(LParam)^.Right+1;
InflateRect(PRect(LParam)^, 5, 5);
end;