不能直接对Dialog Box使用SetFocus

原文:http://blogs.msdn.com/b/oldnewthing/archive/2004/08/02/205624.aspx

很棒的原创,我是说为什么在对dialog box使用SetFocus不管用呢

简单的说,解决办法就是

SendMessage(hdlg, WM_NEXTDLGCTL, (WPARAM)hwndControl, TRUE);
时间: 2024-08-06 09:03:43

不能直接对Dialog Box使用SetFocus的相关文章

CRM 2011 Close Quote Dialog Box 定制

公司按照自己的商业流程来使用CRM,在签署合同之后并不需要创建订单Order,而是直接关闭. 但是Quote的默认关闭窗口如下: 第一个问题是"Status Reason"只有上面三个选项,都不是很适合,然后另外就是默认选择了创建revised quote,这个也不符合公司流程. 其实可以专门创建一个Ribbon button,用特定的action来实现,但是不想额外的开发,最终选择了下面的步骤: 1. 修改statuscode,在Closed Status下添加一个新的Label 2

Win32程序中使用 Combo box控件

  SendMessage函数向窗口发送消息 LRESULT SendMessage( HWND hWnd,     // handle to destination window UINT Msg,      // message WPARAM wParam, // first message parameter LPARAM lParam   // second message parameter ); 1 向Combo Box添加数据 HWND hWndComboBox = GetDlgI

mfc dialog用法

CDialogThe CDialog class is the base class used for displaying dialog boxes on the screen. Dialog boxes are of two types: modal and modeless. A modal dialog box must be closed by the user before the application continues. A modeless dialog box allows

shell & dialog

最近使用dialog写图形自动化shell脚本,  功能很强大,功能不是非常多但是足够用.想写一篇linux下dialog的使用方法,虽然命令不多,但是写起来也需要下很大功夫,而且不一定写得更好,在网上发现一篇linux shell图形化脚本文件,于是转过来了. liunx 下的dialog 工具是一个可以和shell脚本配合使用的文本界面下的创建对话框的工具.每个对话框提供的输出有两种形式:1.  将所有输出到stderr 输出,不显示到屏幕.2.  使用退出状态码,“OK”为0,“NO”为1

[转]Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全

原文:http://blog.csdn.net/sodino/article/details/5822147 1.Activity全透明 同学zzm给了这个有趣的代码,现在公布出来. 先在res/values下建colors.xml文件,写入: <? xml   version = "1.0"   encoding = "UTF-8" ?>    < resources >        < color   name = "t

Shell图形界面dialog应用详解

相信大部分朋友都使用过Centos Redhat的setup工具,会弹出向导式图形菜单供我们配置Linux系统,如果你想为你的脚本程序增色添彩,dialog工具无疑是个非常好的选择.dialog工具以一种简洁的方式来润色你的脚本程序,是你的脚本程序看起来更加的友好,setup工具如下图所示. Liunx 下的dialog 工具是一个可以和shell脚本配合使用的文本界面下的创建对话框的工具.每个对话框提供的输出有两种形式:   1.  将所有输出到stderr 输出,不显示到屏幕.   2. 

Using Save As Dialog in WPF

1 Microsoft.Win32.SaveFileDialog dlg = new Microsoft.Win32.SaveFileDialog(); 2 dlg.FileName = "User.txt"; // Default file name 3 dlg.DefaultExt = ".txt"; // Default file extension 4 dlg.Filter = "Text documents (.txt)|*.txt";

wx.Dialog

wx.Dialog A dialog box is a window with a title bar and sometimes a system menu, which can be moved around the screen. It can contain controls and other windows and is often used to allow the user to make some choice or to answer a question. Dialogs

Android有趣的全透明效果--Activity及Dialog的全透明(附android系统自带图标大全)[转]

原文地址:http://blog.csdn.net/sodino/article/details/5822147 1.Activity全透明 同学zzm给了这个有趣的代码,现在公布出来. 先在res/values下建colors.xml文件,写入: <? xml version = "1.0" encoding = "UTF-8" ?> < resources > < color name = "transparent&quo