怎样得到视图区的颜色?????????????????????/
怎样得到视图区的颜色?或者怎样得到视图类的 窗口类的 背景画刷 ----hbrBackground ?????????????
同时 怎样改变视图客户区颜色?????????????????????????
[解决办法]
GetClassLongPtr,用GCLP_HBRBACKGROUND索引
[解决办法]
用FillRect
[解决办法]
CRect rect; CPaintDC dc(this); GetClientRect(rect); dc.FillSolidRect(rect,RGB(182,248,163)); //设置为绿色背景
[解决办法]
自绘,用颜色画刷填充即可
[解决办法]
改变的话就是
DWORD SetClassLong(
HWND hWnd, // handle to window
int nIndex, // index of value to change
LONG dwNewLong // new value
);