Good Day..:lol: I Want To Change The Window Color in C++ From The Code..I Cann't Change it as far as From The Inside Of Language:blink: ..Can I Use An Api function ..to take note of I Use The

Dialog Wizard . Thank You

oisyn
—
2005-10-18T15:53:49Z —
#2

Why Are You Writing Each First Letter Of Each Word In Capital?

And what is "the window color"? Be more specific. Do you mean the background color of a simple dialog? If you do, you can either handle the WM_ERASEBKGND message and clear the background in the color you like (using FillRect()), or set the background brush using SetClassLong on your dialog's window class.

Mihail121
—
2005-10-18T16:54:54Z —
#3

@.oisyn

Why Are You Writing Each First Letter Of Each Word In Capital?

What's wrong with that If I my ask?

The_Crash
—
2005-10-18T18:48:40Z —
#4

Thank You .oisyn & Mihail121..

Why Are You Writing Each First Letter Of Each Word In Capital?

I think That The Typical ENGLISH Do That..and that more beautiful..But If That anger I Will write in the way that you Like :lol: I ment background color of a simple dialog..I Understand your method but I need an examlpe in code of this Messages because I am a beginner .. :lol:

Maybe it's just me, but I think it's hard to read, just like writing in all caps. Because it has a meaning; you're putting the emphasis on every word in the sentence and it's harder to distinguish where one sentence ends and the other starts.

The_Crash
—
2005-10-25T18:10:49Z —
#7

Thank yOU .........

Mihail121
—
2005-10-25T18:29:51Z —
#8

@.oisyn

Maybe it's just me, but I think it's hard to read, just like writing in all caps. Because it has a meaning; you're putting the emphasis on every word in the sentence and it's harder to distinguish where one sentence ends and the other starts.

I agree but according to a linguistical theory a pure language should only concern the correct understanding of the message and should not follow any grammatical, lexical or etc. rules.

Another interesting theory states, that it's enough writing only the first and last letter of each word at their correct places to read the whole. Just as that:

My pgis aer gnoe!!!

moe
—
2005-10-25T21:04:21Z —
#9

Another interesting theory states, that it's enough writing only the first and last letter of each word at their correct places to read the whole.

Yaeh tihs is ture. I rmemeber wehn it aslo cmae up on filpcdoe. But it's ichty to wirte a lot in taht pratiuclar sytle. Lol.

Are you still speaking on this point? :lol: I think this write will take your admire \\^.\\^..Are you satisfied \\^.\\^ ? I take this grammer from 12 years untill this moment ..but I write by this way because we write like this in C++.. But just a moment ..my question was on MFC and you answered on API .. Get me the suitable answer before argument in grammer :lol: \\^.\\^. Eias

Reedbeta
—
2005-10-29T07:04:23Z —
#15

You never mentioned that you were using MFC in the original post. His answer was perfectly valid. In fact, you specifically asked if you could use an API function

moe
—
2005-10-29T17:34:14Z —
#16

You wrote yourself

Thank yOU .........

This let's people assume your question has been answered…

Now you say you need an answer in MFC. What's wrong with the link posted by corey?

Anyway, there is no real difference between handling WM_ERASEBKGND and implementing CWnd::OnEraseBkgnd. The MFC is simply a thin wrapper over the Windows API; it causes that function to be called when the window recieves that message.

moe
—
2005-10-29T21:54:48Z —
#19

Sorry about the broken link I just copy-pasted the earlier post and didn't check if it would work. My bad, didn't mean to be more confusing.