您的位置:首页 > 其它

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


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: