WinCE系统下隐藏对话框程序的OK按钮
2010-08-09 13:12
316 查看
=============================================================
标题:WinCE系统下隐藏对话框程序的OK按钮
摘要:
备注:Windows CE + VC2005
日期:2010.8.9
姓名:朱铭雷
=============================================================
We can use the following function.
BOOL SHDoneButton(
HWND hwndRequester,
DWORD dwState
);
This function is provided for applications that need to dynamically show or hide the OK button based on the state of the application.
dwState : [in] Specifies the button state. SHDB_SHOW, hide the OK button; SHDB_HIDE, hide the OK button.
This function returns TRUE if it is successful and FALSE if it fails.
Code Example:
::SHDoneButton(m_hWnd,SHDB_HIDE); (MFC)
or
BOOL SHDoneButtonExample(HWND hWnd, BOOL fShow)
{
if (fShow) {
// show the done button when window becomes foreground
return SHDoneButton(hWnd, SHDB_SHOW);
} else {
// hide the done button when window becomes foreground
return SHDoneButton(hWnd, SHDB_HIDE);
}
}
Remarks:
Header: aygshell.h
Library: aygshell.lib
More details, see MSDN
标题:WinCE系统下隐藏对话框程序的OK按钮
摘要:
备注:Windows CE + VC2005
日期:2010.8.9
姓名:朱铭雷
=============================================================
We can use the following function.
BOOL SHDoneButton(
HWND hwndRequester,
DWORD dwState
);
This function is provided for applications that need to dynamically show or hide the OK button based on the state of the application.
dwState : [in] Specifies the button state. SHDB_SHOW, hide the OK button; SHDB_HIDE, hide the OK button.
This function returns TRUE if it is successful and FALSE if it fails.
Code Example:
::SHDoneButton(m_hWnd,SHDB_HIDE); (MFC)
or
BOOL SHDoneButtonExample(HWND hWnd, BOOL fShow)
{
if (fShow) {
// show the done button when window becomes foreground
return SHDoneButton(hWnd, SHDB_SHOW);
} else {
// hide the done button when window becomes foreground
return SHDoneButton(hWnd, SHDB_HIDE);
}
}
Remarks:
Header: aygshell.h
Library: aygshell.lib
More details, see MSDN
![](https://oscdn.geek-share.com/Uploads/Images/Content/202005/03/c161623ed1eed9f5c47fa7145aca85e1.gif)
相关文章推荐
- 隐藏基于对话框程序
- Android:在AlertDialog点击按钮隐藏对话框
- windows mobile隐藏OK按钮,x按钮,输入法按钮
- 对话框程序禁用系统的关闭按钮X
- 输入框进行判断验证(弹出对话框,点击按钮查询并隐藏)
- VC基于对话框,文档程序启动时隐藏窗口总结
- 如何隐藏起Form右上角的OK/X按钮
- C#窗体程序怎么点击按钮打开一个选择文件的对话框
- WINCE下对话框中添加OK按钮的方法
- Mac点击关闭按钮退出程序 与 程序隐藏后点击dock图标重新显示
- MFC对话框程序启动时隐藏
- VC6.0中基于对话框程序中菜单栏和工具条按钮的状态同步更新问题
- WINCE 禁止MFC程序窗口上的OK按钮
- confirm() :带有指定消息和 OK 及取消按钮的对话框
- 程序启动时,隐藏对话框的方法(基于vc的对话框工程)
- 对话框程序,按下按钮后交换数据的问题
- BCB如何隐藏任务栏上对应的程序图标按钮,不是托盘上的
- Windows Mobile下如何去掉WTL对话框CStdDialogImpl的OK按钮
- 如何让基于对话框的MFC程序一运行起来就完全隐藏
- MFC对话框程序中 隐藏窗口的方法