Change of Background Color of dialog box
-
How to Change of Background Color of dialog box,with options? Manmohan
-
How to Change of Background Color of dialog box,with options? Manmohan
-
How to Change of Background Color of dialog box,with options? Manmohan
-
Handle the
WM_ERASEBKGND
message for the dialog.OnEraseBkgnd(CDC* pDC) { CRect rect; GetClientRect(&rect); pDC->FillSolidRect(&rect,RGB(255,0,0)); return TRUE; //return CDialog::OnEraseBkgnd(pDC); }
this is this.for first time, i'm able to find a different reply for this query.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
--[V]--
-
Handle the
WM_ERASEBKGND
message for the dialog.OnEraseBkgnd(CDC* pDC) { CRect rect; GetClientRect(&rect); pDC->FillSolidRect(&rect,RGB(255,0,0)); return TRUE; //return CDialog::OnEraseBkgnd(pDC); }
this is this.in the message map, is it ON_WM_ERASEBKGND() ??
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
--[V]--
-
in the message map, is it ON_WM_ERASEBKGND() ??
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
--[V]--
-
Exactly. In the message-map:
ON_WM_ERASEBKGND()
In the header:afx_msg BOOL OnEraseBkgnd(CDC* pDC);
In the implementation:BOOL CWhateverDialog::OnEraseBkgnd(CDC* pDC)
I am about to go eat some cake. Happy birthday to this! this is this.thanks for this technique.:)
-
Exactly. In the message-map:
ON_WM_ERASEBKGND()
In the header:afx_msg BOOL OnEraseBkgnd(CDC* pDC);
In the implementation:BOOL CWhateverDialog::OnEraseBkgnd(CDC* pDC)
I am about to go eat some cake. Happy birthday to this! this is this.i'll try this, anyhow anything from Mr Khan has always worked fine. so my 5 to you inadvance.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
--[V]--
-
i'll try this, anyhow anything from Mr Khan has always worked fine. so my 5 to you inadvance.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
--[V]--
try this also , see what you get:
CYourDialog::OnEraseBkgnd(CDC* pDC)
{
return TRUE;
}I've used this for writing joke programs for my friends sometimes:)
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
-
How to Change of Background Color of dialog box,with options? Manmohan
Manmohan_1983 wrote:
How to Change of Background Color of dialog box,with options?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV