Click here to Skip to main content
14,980,732 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want WM_CTLCOLOR message send to dialog window with help of SendMessage. Please help me out, which parameter should I use with SendMessage(hWnd,WM_CTLCOLOR,----,----);

I am just trying to change background color in window.

Thanks
Vivek chauhan
Posted
Updated 15-May-10 22:10pm
v3
Comments
Moak 16-May-10 4:33am
   
Updated subject and tags, hope this is what you are looking for.

1 solution

As you may find in the documentation [^], wParam mush be the HDC used to update the control, while wParam must be the handle of the control itself (you may also find this notification is obsolete).
Now, what are you trying to do?

vivek.chauhan2009 wrote:
I am just trying to change background color in window.

Something like this?

:)
   
v2
Comments
vivek.chauhan2009 5-May-10 23:55pm
   
I am just trying to change background color in window.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900