哎!
vc真是难用!
怎么样用滑杆条来实现对话框颜色的渐变了?
请大家帮我
最好能够提供示范代码!
vc真是难用!
怎么样用滑杆条来实现对话框颜色的渐变了?
请大家帮我
最好能够提供示范代码!
解决方案 »
- 开了几个线程,点了个按钮就卡了。
- 修改 PreCreateWindow 导致 “创建空文档失败”
- 时间转换问题。
- 为什么消息框的按钮,我要发送2次WM_LBUTTONDOWN和UP消息才能相应鼠标点击事件
- 两个对话框之间如何传递变量和函数?
- 请问如何弹出一个对话框,用户可以象选择文件一样选择自己指定的目录?
- 求助,拖拉式流程图应该怎么做
- 请问VC里面如何可以使程序运行后按Esc键程序不退出!!
- 关于oracle的sql语句问题?
- 急!请教:如何在Visual C++环境中用Mapobject切割地图
- 请问如何打印基于form的SDI中FORM上的控件的内容和CHART图表呢?
- _t("字符窜")是干吗用的?
The WM_CTLCOLORDLG message is sent to a dialog box before the system draws the dialog box. By responding to this message, the dialog box can set its text and background colors using the specified display device context handle. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
HWND hwnd, // handle to window
UINT uMsg, // WM_CTLCOLORDLG
WPARAM wParam, // handle to DC (HDC)
LPARAM lParam // handle to dialog box (HWND)
);
Parameters
wParam
Handle to the device context for the dialog box.
lParam
Handle to the dialog box.
Return Values
If an application processes this message, it must return a handle to a brush. The system uses the brush to paint the background of the dialog box. Res
By default, the DefWindowProc function selects the default system colors for the dialog box. 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_CTLCOLORDLG message is never sent between threads. It is sent only within one thread. Note that the WM_CTLCOLORDLG message is sent to the dialog box itself; all of the other WM_CTLCOLOR* messages are sent to the owner of the control. If a dialog box procedure handles this message, it should cast the desired return value to an INT_PTR 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.