关于OK,X ---Windows mobile窗体
来源:互联网 发布:传奇霸业龙脉各阶数据 编辑:程序博客网 时间:2024/05/17 02:19
关于OK,X ---Windows mobile窗体----纯粹是作为笔记
2009年03月04日 星期三 14:58
To prevent Smart Minimize and OK buttons from appearing on title bar of dialog boxes
- Manually edit the resource (.rc) file for the dialog box. Add WS_NONAVDONEBUTTON to the STYLE line to prevent the display of the Smart Minimize button, as shown:
//
// Dialog.
//
IDD_WIZARD DIALOG DISCARDABLE 0, 0, 140, 57
STYLE WS_POPUP | WS_CAPTION | WS_NONAVDONEBUTTON
EXSTYLE 0x80000000L
CAPTION "Your Wizard" - Remove SHDIF_DONEBUTTON from the dwFlags member of the SHINITDLGINFO user interface structure (generally found in the WM_INITDIALOG message handler for the dialog box) to remove the OK button from the title bar, as follows:
SHINITDLGINFO shidi;
switch (message)
{
case WM_INITDIALOG:
shidi.dwMask = SHIDIM_FLAGS;
shidi.dwFlags = SHIDIF_SIZEDLGFULLSCREEN;
shidi.hDlg = hDlg;
if (!SHInitDialog(&shidi)) {
MessageBox(NULL, _T("Can't create dialog box."),
_T("Error"), MB_OK);
exit(0); // Replace with specific error handling.
}
.
.
. - Add a call to the SHDoneButton function with the SHDB_HIDE state after calling the SHInitDialog function to hide the OK button, as follows:
if (!SHDoneButton(hDlg, SHDB_HIDE)) {
MessageBox(NULL, _T("Can't hide the OK button."),
_T("Error"), MB_OK);
exit(0); // Replace with specific error handling.
} - If you run the code as is, no Smart Minimize button or OK button appears on the title bar, but tapping the Enterkey in the emulator or on the input panel keyboard closes the dialogbox. If this is not the desired behavior, make the appropriate changesto the WM_COMMAND message handler. Generally, you want to set focus to the default control in the current panel of your wizard.
- 关于OK,X ---Windows mobile窗体
- windows mobile隐藏OK按钮,x按钮,输入法按钮
- windows mobile隐藏OK按钮,x按钮,输入法按钮
- windows mobile 上隐藏和关闭X以及OK的处理
- Mobile的Form窗口去掉ok和x的按钮
- 关于 Windows Mobile
- 关于Windows mobile注册表
- Windows Mobile的Form页OK按钮的使用
- Windows Mobile 5.0 窗体的隐藏
- 实现Windows Mobile 窗体的最小化
- Windows Mobile下的窗体半透明实现
- Windows Mobile下的窗体半透明实现
- Windows Mobile下的窗体半透明实现
- 用代码最小化 Windows Mobile 窗体
- Windows Mobile 开发系列文章收藏 - Windows Mobile 6.x
- Windows Mobile 开发系列文章收藏 - Windows Mobile 6.x
- Windows Mobile 开发系列文章收藏 - Windows Mobile 6.x
- Windows Mobile 开发系列文章收藏 - Windows Mobile 6.x
- 星烛网--专业的WEB应用供应商
- 《DB2新手入门》资料
- C/C++内存分配学习
- 学
- 取消UltralToolBar左上方大按钮
- 关于OK,X ---Windows mobile窗体
- DataGrid组件
- java runtime.exec() 的编写
- 获取GridView中RowCommand的当前选中行的索引或主键Id
- VSS(卷影拷贝服务)与snapshot优缺点及区别
- Java中执行外部程序的方法
- 项目管理之美连载(二)
- SQL 注入
- 数据库--范式