GetDlgItem函数 返回某个控件的的句柄。
来源:互联网 发布:淘宝查虚假交易时间 编辑:程序博客网 时间:2024/06/05 13:28
The GetDlgItem function retrieves a handle to a control in the specified dialog box.
Syntax
HWND GetDlgItem( __in HWND hDlg, __in int nIDDlgItem);
Parameters
- hDlg [in]
- HWND
Handle to the dialog box that contains the control.
- nIDDlgItem [in]
- int
Specifies the identifier of the control to be retrieved.
Return Value
HWND
If the function succeeds, the return value is the window handle of the specified control.
If the function fails, the return value is NULL, indicating an invalid dialog box handle or a nonexistent control. To get extended error information, call GetLastError.
例子:
GetDlgItem(IDC_STATIC_CurveColor1)->GetClientRect(&CurveColor1);
this->ScreenToClient(&CurveColor1);
this->ClientToScreen(&CurveColor1);
CStatic *CS_shili1=(CStatic*)GetDlgItem(IDC_STATIC_CurveColor1);
CDC *pDC_shili1=(CDC*)CS_shili1->GetWindowDC();
- GetDlgItem函数 返回某个控件的的句柄。
- GetDlgItem()返回NULL的问题
- GetDlgItem返回NULL的原因
- 由GetDlgItem函数想到的
- MFC之GetDlgItem返回NULL的问题
- GetDlgItem的使用
- vc做的MFC控件找不到控件自己的句柄,或返回0
- GetDlgItem()函数
- 获得某个exe的图标句柄
- MFC 怎样获得某个窗口的句柄?
- MFC 怎样获得某个窗口的句柄?
- GetDlgItem与GetDlgCtrlID的比较
- MFC的GetDlgItem以及SetDlgItem
- 函数句柄的理解
- 函数句柄的创建 @
- ::GetDlgItem调用 窗口控件遇到的中断 (自己遇到的问题,已被解决)
- GetDlgItem(ID)和控件变量直接moveWindow 和GetClientRect 的问题
- GetDlgItem 返回NULL
- Mongodb源码分析--Replication之主从模式--Slave
- 【黑金研发】发布 [ AB-S05 ] 函数信号发生器
- Mongodb源码分析--Replication之主从模式--Slave
- 安装WIN7 后 UBUNTU 不见了, 找回的方法
- 纯源码包安装 lua 的时候遇到的错误和解决办法~~~
- GetDlgItem函数 返回某个控件的的句柄。
- 6-3 分隔控件(Splitters) 收藏
- 使用Config::IniFiles读写ini文件
- [转][译]BigPipe:高性能的“流水线技术”网页
- Asynchronous Method Invocation 【翻译】 (五)
- php的autoprepend和autoload功能
- 今天被WINDOWS的防火墙给撞了一下腰,不要告诉我你懂WINDOWS的防火墙!!!!
- 预处理器
- Qt控件拖拽事件