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

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

   

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值