文件名称:hidemywindows
- 所属分类:
- 界面编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 36kb
- 下载次数:
- 0次
- 提 供 者:
- pii***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
怎么才能使主界面一启动就隐藏窗口
对话框
可以在对话框中重载虚函数DefWindowProc[]。
LRESULT CMyDlg::DefWindowProc[UINT message, WPARAM wParam, LPARAM lParam]
{
if[message==133]
ShowWindow[SW_HIDE]
return CDialog::DefWindowProc[message, wParam, lParam]
}
框架
BOOL CMainfr a me::PreCreateWindow[CREATESTRUCT& cs]
{
cs.style=WS_POPUO //使得主界面不可见
cs.dwExStyle |= WS_EX_TOOLWINDOW //不显示任务按钮
if[ !Cfr a meWnd::PreCreateWindow[cs] ]
return FALSE
return TRUE
}
-How to make one start on the main interface window of the dialog box can be hidden in the dialog box overloaded virtual function DefWindowProc []. LRESULT CMyDlg:: DefWindowProc [UINT message, WPARAM wParam, LPARAM lParam] [if [message == 133] ShowWindow [SW_HIDE] return CDialog:: DefWindowProc [message, wParam, lParam] ] fr a mework BOOL CMainfr a me:: PreCreateWindow [CREATESTRUCT & cs] [cs.style = WS_POPUO // enable the main interface is not visible cs.dwExStyle | = WS_EX_TOOLWINDOW // mission button is not displayed if [! Cfr a meWnd:: PreCreateWindow [cs]] return FALSE return TRUE ]
对话框
可以在对话框中重载虚函数DefWindowProc[]。
LRESULT CMyDlg::DefWindowProc[UINT message, WPARAM wParam, LPARAM lParam]
{
if[message==133]
ShowWindow[SW_HIDE]
return CDialog::DefWindowProc[message, wParam, lParam]
}
框架
BOOL CMainfr a me::PreCreateWindow[CREATESTRUCT& cs]
{
cs.style=WS_POPUO //使得主界面不可见
cs.dwExStyle |= WS_EX_TOOLWINDOW //不显示任务按钮
if[ !Cfr a meWnd::PreCreateWindow[cs] ]
return FALSE
return TRUE
}
-How to make one start on the main interface window of the dialog box can be hidden in the dialog box overloaded virtual function DefWindowProc []. LRESULT CMyDlg:: DefWindowProc [UINT message, WPARAM wParam, LPARAM lParam] [if [message == 133] ShowWindow [SW_HIDE] return CDialog:: DefWindowProc [message, wParam, lParam] ] fr a mework BOOL CMainfr a me:: PreCreateWindow [CREATESTRUCT & cs] [cs.style = WS_POPUO // enable the main interface is not visible cs.dwExStyle | = WS_EX_TOOLWINDOW // mission button is not displayed if [! Cfr a meWnd:: PreCreateWindow [cs]] return FALSE return TRUE ]
(系统自动生成,下载前可以参看下载内容)
下载文件列表
主界面一启动就隐藏窗口
......................\Debug
......................\HideFace.aps
......................\HideFace.clw
......................\HideFace.cpp
......................\HideFace.dsp
......................\HideFace.dsw
......................\HideFace.h
......................\HideFace.ncb
......................\HideFace.opt
......................\HideFace.plg
......................\HideFace.rc
......................\HideFaceDoc.cpp
......................\HideFaceDoc.h
......................\HideFaceView.cpp
......................\HideFaceView.h
......................\MainFrm.cpp
......................\MainFrm.h
......................\ReadMe.txt
......................\res
......................\...\HideFace.rc2
......................\Resource.h
......................\StdAfx.cpp
......................\StdAfx.h
......................\说明文字.txt
......................\Debug
......................\HideFace.aps
......................\HideFace.clw
......................\HideFace.cpp
......................\HideFace.dsp
......................\HideFace.dsw
......................\HideFace.h
......................\HideFace.ncb
......................\HideFace.opt
......................\HideFace.plg
......................\HideFace.rc
......................\HideFaceDoc.cpp
......................\HideFaceDoc.h
......................\HideFaceView.cpp
......................\HideFaceView.h
......................\MainFrm.cpp
......................\MainFrm.h
......................\ReadMe.txt
......................\res
......................\...\HideFace.rc2
......................\Resource.h
......................\StdAfx.cpp
......................\StdAfx.h
......................\说明文字.txt