ccbuluo / duilib

Automatically exported from code.google.com/p/duilib
0 stars 0 forks source link

CEditUI在获得焦点后(UIEVENT_SETFOCUS),无法修改背景颜色wc.hbrBackground #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. CEdiUI获得焦点并可用 UIEVENT_SETFOCUS && 
IsEnabled()调用CEditWnd的Init
2. Init中调用Create创建窗体
3. Create中调用RegisterWindowClass注册窗体样式,wc.hbrBackground = 
(HBRUSH)GetStockObject(BLACK_BRUSH);不起作用,无法修改背景颜色!

What is the expected output? What do you see instead?
修改成和focusedimage图片一样的背景颜色;但是依然是白色!

What version of the product are you using? On what operating system?
r286,Windows XP/7

Original issue reported on code.google.com by xiangzha...@gmail.com on 30 Apr 2012 at 2:15

GoogleCodeExporter commented 8 years ago
特别当用黑色背景,黑色图片作为主色调的时候

http://www.codeproject.com/KB/library/372559/ControlFactory.png

Original comment by xiangzha...@gmail.com on 30 Apr 2012 at 4:35

GoogleCodeExporter commented 8 years ago
nativebkcolor

Original comment by wangc...@gmail.com on 2 May 2012 at 5:54