c++ win32: how to set back color of a window?

后端 未结 2 1556
故里飘歌
故里飘歌 2021-01-24 08:42

I can set the back color when i am registering the class, e.g.:

wincl.hbrBackground = CreateSolidBrush(RGB(202, 238, 255));
RegisterClassEx(&wincl);
<         


        
2条回答
  •  生来不讨喜
    2021-01-24 08:59

    If you want a customized window you can create your own window class to draw that type of window. Implement a handler for wm_paint and draw whatever you want for the window. There are a lot of tutorials available.

提交回复
热议问题