showwindow

时间:2023-12-14 20:32:00 编辑:大鹏 来源:长期打折网

C#调用windowsAPI的showwindow,参数中的常量在哪定义啊?,易语言调用API函数showwindow的问题...

C#调用windowsAPI的showwindow,参数中的常量在哪定义啊?
C#调用windowsAPI的showwindow,参数中的常量在哪定义啊?
提示:

C#调用windowsAPI的showwindow,参数中的常量在哪定义啊?

/*
* ShowWindow() Commands
*/
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11

你传int就可以了.这个SW_HIDE是宏

补充:VC6.0里面,输入SW_HIDE,然后右键->Go To Definition Of SW_HIDE

或者安装MSDN

ShowWindow
This function sets the specified window’s show state.

BOOL ShowWindow(
HWND hWnd,
int nCmdShow );
Parameters
hWnd
Handle to the window.
nCmdShow
Specifies how the window is to be shown. The first time ShowWindow is called, the value should be the value obtained by the WinMain function in its nCmdShow parameter. In subsequent calls, this parameter can be one of the following values:
Value Description
SW_FORCEMINIMIZE Windows NT 5.0 and later: Minimizes a window, even if the thread that owns the window is hung. This flag should only be used when minimizing windows from a different thread.
SW_HIDE Hides the window and activates another window.
SW_SHOW Activates the window and displays it in its current size and position.
SW_SHOWNA Displays the window in its current state. The active window remains active.
SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time.




Return Values
Nonzero indicates that the window was previously visible. Zero indicates that the window was previously hidden.

易语言调用API函数showwindow的问题
提示:

易语言调用API函数showwindow的问题

改为整数型~~nCmdShow为0隐藏,nCmdShow为1显示,顺便说下以后放源码不要放一堆垃-圾上来搞的乱七八糟的想帮你也懒得看,要像我的这样~~!

.版本 2

.DLL命令 隐藏窗口, 整数型, "user32.dll", "ShowWindow"
.参数 hwnd, 整数型
.参数 nCmdShow, 整数型


.版本 2

.子程序 _按钮1_被单击

隐藏窗口 (到数值 (编辑框1.内容), 0)

.子程序 _按钮2_被单击

隐藏窗口 (到数值 (编辑框1.内容), 1)

上一篇:win8升级win10正式版
下一篇:没有了
相关文章
最新资讯
热门资讯