空间广告
在线情况
楼主
  • 头像
  • 级别
  • 门派
  • 职务总版主
  • 财富1
  • 积分634
  • 经验17284
  • 文章441
  • 注册2008-05-18
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.
风之帝国校务管理系统
在线情况
2
  • 头像
  • 级别
    • 积分40
    • 经验0
    • 文章21
    • 注册2011-06-27
    帖子等待审核中...
    ……………………………………………………隐藏内容…
    此帖有待管理人员审核才能查看[说明]
    …………………………………………………………………
    福州龙源上门推拿
    在线情况
    3
    • 头像
    • 级别
      • 积分14
      • 经验0
      • 文章8
      • 注册2015-05-15
      帖子等待审核中...
      ……………………………………………………隐藏内容…
      此帖有待管理人员审核才能查看[说明]
      …………………………………………………………………
      风之帝国感谢您的参与
      loading...
      loading...
      loading...
      loading...
      loading...
      loading...
      loading...
      回复帖子 注意: *为必填项
      *验证信息 用户名 密码 注册新用户
      *帖子名称
      内容(最大50K)




      其它选项 Alt+S快速提交
       


      Powered by LeadBBS 9.1 licence.
      Page created in 0.2500 seconds with 7 queries.