Re: Set color of the dialog of my MFC application
An HDC (which MFC wraps with CDC) is obtained using BeginPaint() or related
proceedure when you are painting your window in response to the WM_PAINT
message (OnDraw in an MFC view).
However, you don't normally do custom painting in a dialog box. Thank
goodness too. Just imagine if you were responsible for managing all the
items in a dialog!
I suspect SetBkColor is not what you want. However, you've told us very
little about your goals so I don't know enough about what you want. In
general, it is best to leave the color of dialog boxes alone. But perhaps
you have a compelling reason to override the default.
--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
http://www.softcircuits.com/blog/
"Zack" <zackm@infinite-memories.com> wrote in message
news:4B32B8A0-710F-4C9B-9FA2-4F3BF74E7235@microsoft.com...
Hi,
i am working with Vista and with MFC and with visual studio 2008
I google on this issue and see some sample and can't implement it in my
code:
SetBkColor(HDC hdc , COLR);
in this example i don't know from were to get the HDC and what he
represent?
help is needed!