没有MSDN,谁能告诉我WM_CTRLCOLOR的wParam,lParam的意义和返回值?
解决方案 »
- 如何将整型数据转换为十六进制? 急
- 请教高手 某些utf-8编码的汉字占4个字节,他的unicode编码值的范围超过了65535,这样的字在windows中 WCHAR 能表示吗?Win32API能处理吗?
- 我ACCEPT一个客户端后能得到他的IP和PORT吗
- 求《VISUAL C++MFC编程实例>> 和<<VISUAL C++MFC扩展编程实例>>书的源码?
- 为什么xp的V86模式下可以改中断???不是不行的吗?
- 帮忙看看这段代码:关于树型控件。快!!!
- vc++生成word文档时如何设定字体的大小、颜色?
- 望高手推荐几本入门教程
- 在新版的论坛中,如何把帖子提前,或者类似的功能!
- 月历控件怎么没有 NewMonth 事件呢 书上让我添加NewMonth的消息函数 这怎么办啊
- 如何实现另外一个程序的按钮动作
- 一般怎么判断与对方是否已经断开?是不是发包然后看ONSEND(int nErrorCode) 里的nErrorCode错误码?
(HWND) lParam;
SyntaxWM_CTLCOLORSTATIC WPARAM wParam
LPARAM lParam;
ParameterswParam
Handle to the device context for the static control window.
lParam
Handle to the static control.
Return ValueIf an application processes this message, the return value is a handle to a brush that the system uses to paint the background of the static control.ResBy default, the DefWindowProc function selects the default system colors for the static control. Edit controls that are not read-only or disabled do not send the WM_CTLCOLORSTATIC message; instead, they send the WM_CTLCOLOREDIT message. The system does not automatically destroy the returned brush. It is the application's responsibility to destroy the brush when it is no longer needed.The WM_CTLCOLORSTATIC message is never sent between threads; it is sent only within the same thread. If a dialog box procedure handles this message, it should cast the desired return value to a BOOL and return the value directly. If the dialog box procedure returns FALSE, then default message handling is performed. The DWL_MSGRESULT value set by the SetWindowLong function is ignored. Notification RequirementsMinimum DLL Version None
Header Declared in Winuser.h, include Windows.h
Minimum operating systems Windows 95, Windows NT 3.1