怎样将对话框设置成全屏形式

来源:互联网 发布:icarus verilog mac 编辑:程序博客网 时间:2024/04/29 09:40

1.

 

  int   cxScreen   =   GetSystemMetrics(SM_CXSCREEN);  
  int   cyScreen   =   GetSystemMetrics(SM_CYSCREEN);  
  MoveWindow(0,   0,   cxScreen,   cyScreen);  

 

2.

 

 this->ShowWindow(SW_SHOWMAXIMIZED);

 

3.这是一个连任务栏都可以隐藏的全屏的形式哦。

int iFullWidth = GetSystemMetrics(SM_CXSCREEN);
 int iFullHeight = GetSystemMetrics(SM_CYSCREEN);
 ::SetWindowPos(this->m_hWnd, HWND_TOPMOST, 0, 0, iFullWidth, iFullHeight, SWP_NOOWNERZORDER|SWP_SHOWWINDOW);

 

 

目前发现三个,以后再有发现再补。

 

原创粉丝点击