Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Problems with text background colour

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Problems with text background colour
#7796
Posted by: 2006-01-15 04:41:40
Hi,

I use custom OnPaint event in a class derived from wxScrolledWindow (also tried with wxControl). I write text onto screen with wxDC function DrawText. I have no problem changing text foreground colour, but changing text background colour I have a problem with. I am setting dc.SetBackgroundMode(wxSOLID), but that doesn't seem to help me. The text I draw onto screen never has any background. Can anyone give me ideas what I might be missing?

Thnx in advance.
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-4-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0