1 . CRegKey::QueryValue 的详解及例子.
2 . 只知道控件的ID,如何得到对应类的指针?
2 . 只知道控件的ID,如何得到对应类的指针?
解决方案 »
- 100分!华为做的中国电信的Mobile Partner上网卡客户端的各个模块之间怎么调用?各模块都有什么作用?哪一个DLL负责发送短信?
- 关于多个线程使用同一个线程函数的问题
- 想请问一吓C++的ofstream怎样在指定位置里创建一个文件?
- 怎样去掉窗体最上端的蓝条,同时能自己绘制最大化,最小化按钮?
- 在哪可以下载到《深入浅出MFC(第二版)》的简体中文版本?
- 关于CSerialPort类的一些问题
- wsprintf的错误,头疼ing
- 为何一直处于compiling.....
- ***********************菜鸟问题,在VC中如何动态实现控制文本框?
- 求助:MFC中如何有好看的列表???
- 请教:怎么样在我的应用程序退出以后,我的托盘上的图标自动消失???急急急!谢谢!
- 谁能提供一个简单的画BMP图的源程序?
LONG QueryValue( DWORD& dwValue, LPCTSTR lpszValueName );LONG QueryValue( LPTSTR szValue, LPCTSTR lpszValueName, DWORD* pdwCount )Return ValueIf successful, returns ERROR_SUCCESS; otherwise, an error value.ParametersdwValue[out] The value field’s numerical data.lpszValueName[in] Specifies the value field to be queried.szValue[out] The value field’s string data.pdwCount[in, out] The size of the string data. Its value is initially set to the size of the szValue buffer.ResRetrieves the data for the specified value field of m_hKey. The first version of QueryValue allows you to retrieve numerical data. The second version allows you to retrieve string data.2 . 只知道控件的ID,如何得到对应类的指针?
GetDlgItem(YourID)->GetParent()