WM隱藏 顯示工作列

2021-05-26 08:24:58 字數 1284 閱讀 9377

**如下:

using system.runtime.interopservices;

const uint shfs_showtaskbar = 0x0001;

const uint shfs_hidetaskbar = 0x0002;

const uint shfs_showsipbutton = 0x0004;

const uint shfs_hidesipbutton = 0x0008;

const uint shfs_showstarticon = 0x0010;

const uint shfs_hidestarticon = 0x0020;

const int sw_hide = 0;

const int sw_shownormal = 1;

const int sw_showminimized = 2;

const int sw_showmaximized = 3;

const int sw_shownoactivate = 4;

const int sw_restore = 9;

const int sw_showdefault = 10;

[dllimport("aygshell.dll")]

static extern uint shfullscreen(intptr hwndrequester, uint dwstate);

[dllimport("coredll.dll")]

public static extern intptr getcapture();

[dllimport("coredll")]

public static extern intptr findwindow(string lpclassname, string lpwindowname);

[dllimport("coredll")]

public static extern bool showwindow(intptr hwnd, int ncmdshow);

///

/// 全屏顯示

///

///

public void showfullscreen(system.windows.forms.form objform)

///

/// 顯示工作列

///

public void showhhtaskbar()

///

/// 隱藏工作列

///

public static void hidehhtaskbar()

wince 隱藏 顯示工作列

有時候需要將工作列隱藏,封裝了乙個類。在視窗load的時候,先呼叫hide 視窗大小設定成螢幕大小就可以了。將windowstate設定成max不起作用,必須將視窗大小設定成螢幕大小 using system using system.runtime.interopservices namespac...

wince 隱藏 顯示工作列

有時候需要將工作列隱藏,封裝了乙個類。在視窗load的時候,先呼叫hide 視窗大小設定成螢幕大小就可以了。將windowstate設定成max不起作用,必須將視窗大小設定成螢幕大小 using system using system.runtime.interopservices namespac...

隱藏工作列

我有乙個隱藏工作列的程式,你看看你是否用得著。mobile sdk6410下的控制台程式 由於工作列擋住了我要用的除錯工具,所以要關掉,等我不要,在開啟。如果你想一直開啟,下面的 稍微改一下就能實現了。include include int tmain int argc,tchar argv whi...