以下是解決方法
復制代碼代碼如下:
/// <summary>
/// 解決系統TabControl多余邊距問題
/// </summary>
public class FullTabControl : TabControl {
public override Rectangle DisplayRectangle {
get {
Rectangle rect = base
return new Rectangle(rect
}
}
}
以後用 FullTabControl 就行
C# 代碼為
復制代碼代碼如下:
public class FullTabControl : NativeWindow {
static int TCM_FIRST =
static int TCM_ADJUSTRECT = (TCM_FIRST +
struct RECT{
public int Left
}
protected override void WndProc(ref Message m) {
if (m
RECT rc = (RECT)m
rc
rc
rc
rc
Marshal
}
base
}
}
調用方法
版權聲明作者
郵箱
From:http://tw.wingwit.com/Article/program/net/201311/14096.html