change the background color of a dialog box mfc

前端 未结 3 1100
长情又很酷
长情又很酷 2021-01-15 03:18

I\'m trying to change the background color of a dialog box (win 7, vs2010,c++). I tried to catch WM_CTLCOLOR ,WM_ERASEBKGND and change the color. I manged to change in this

3条回答
  •  难免孤独
    2021-01-15 03:48

    The above answer will work only if you don't have a tab inside dialog box it will color background of dialog box other the tab portion. For the tab portion you have to create a new derived class with base class CTabCtrl.

提交回复
热议问题