mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
18 lines
464 B
C#
18 lines
464 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using mRemoteNG.App;
|
|
|
|
namespace mRemoteNG.UI.Controls
|
|
{
|
|
public class HeadlessTabControl : TabControl
|
|
{
|
|
protected override void WndProc(ref Message m)
|
|
{
|
|
// Hide tabs by trapping the TCM_ADJUSTRECT message
|
|
if (m.Msg == NativeMethods.TCM_ADJUSTRECT && !DesignMode)
|
|
m.Result = (IntPtr)1;
|
|
else
|
|
base.WndProc(ref m);
|
|
}
|
|
}
|
|
} |