WinCE系统下隐藏对话框程序的OK按钮

来源:互联网 发布:卡尔曼滤波矩阵 编辑:程序博客网 时间:2024/06/15 04:31

=============================================================
标题: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

   

原创粉丝点击