WinCE (4.2 5.0), , Windows Mobile.
( ), , , ( ), . , , .
, Form.Minimize() .
Form.Hide() . P/Invoking ShowWindow(Form.Handle, 6), 6 = SW_MINIMIZE, , , Form.FormBorderStyle = Normal ( None), .Form.WindowState = Normal Maximized , , .
, , . , , .
public class MyForm
{
public MyForm()
{
InitializeComponent();
NativeMethods.HideTaskbar();
FormBorderStyle = FormBorderStyle.FixedSingle;
WindowState = FormWindowState.Normal;
Rectangle screenBounds = Screen.PrimaryScreen.Bounds;
int taskBarHeight = SystemInformation.MenuHeight;
NativeMethods.MoveWindow(Handle,
0, -taskBarHeight,
screenBounds.Width, screenBounds.Height + taskBarHeight);
}
public void HandleMinimize()
{
NativeMethods.ShowTaskBar();
NativeMethods.ShowWindow(Handle, WindowShowStyle.Minimize);
}
, , , - , .
NativeMethods P/Invoke. coredll http://www.pinvoke.net .
source
share