Recently, I wanted to create a window using Win32. That was the first time, i created a window with Win32 ๐Ÿ™‚

I successfully created the Window using CreateWindowEx(..). ย The visaul appearance is same as MFC Dialog.ย 

Alas !! I faced one simple but serious problem. My Window looks white.

white1

I couldn’t change the background color.. ๐Ÿ˜ฆ … I tried a lot with the params and styles of CreateWindow(). Ooops.. ๐Ÿ˜ฆ

After that, I just go throgh Win32 documentation..hey one flag is there in theย WNDCLASS structure.

xxxx.hbrBackground = (HBRUSH)GetSysColorBrush(COLOR_3DFACE);

๐Ÿ™‚

Now.. just look at my window.. Its pretty good na !!!

dlg

๐Ÿ™‚

Believe only what you see, what you test and judge to be true.

for https://vctipsplusplus.wordpress.com/

BijU