Click here to Skip to main content
15,923,197 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: analog clock Pin
Mr Bose Dayala14-Oct-04 19:27
Mr Bose Dayala14-Oct-04 19:27 
GeneralRe: analog clock Pin
ThatsAlok14-Oct-04 21:14
ThatsAlok14-Oct-04 21:14 
GeneralRe: analog clock Pin
Ryan Binns14-Oct-04 18:40
Ryan Binns14-Oct-04 18:40 
GeneralRe: analog clock Pin
V.14-Oct-04 22:46
professionalV.14-Oct-04 22:46 
QuestionHow to pass data to and from two forms? Pin
V5Dave14-Oct-04 15:59
V5Dave14-Oct-04 15:59 
AnswerRe: How to pass data to and from two forms? Pin
Sujan Christo14-Oct-04 19:22
Sujan Christo14-Oct-04 19:22 
AnswerRe: How to pass data to and from two forms? Pin
Michael P Butler15-Oct-04 0:33
Michael P Butler15-Oct-04 0:33 
GeneralOwner-drawn CListBox-derived background color question Pin
Indrawati14-Oct-04 14:44
Indrawati14-Oct-04 14:44 
Hi I am creating a class derived from CListBox so I can control the fonts, color, etc2. I also want to control the background color of the listbox (not the text's background color, but the whole listbox' background color), and I am doing it by handling WM_ERASEBKGND message in OnEraseBkgnd() function.

The OnEraseBkgnd() implementation is very simple, basically I just obtain the client rect and the use CDC::FillSolidRect to fill it with the background color of my choice.

The problem is, the background color is correctly drawn if there is at least one item in the listbox, but when the listbox is empty, the background color is always displayed as white, even though I have stepped in the debugger and make sure that the FillSolidRect function is executed.

Could someone tell me what the possible cause for this is? Thanks!
GeneralRe: Owner-drawn CListBox-derived background color question Pin
Mad__14-Oct-04 23:06
Mad__14-Oct-04 23:06 
GeneralRe: Owner-drawn CListBox-derived background color question Pin
Antony M Kancidrowski14-Oct-04 23:08
Antony M Kancidrowski14-Oct-04 23:08 
GeneralMaking an application non-resizable Pin
help_wanted14-Oct-04 14:42
help_wanted14-Oct-04 14:42 
GeneralRe: Making an application non-resizable Pin
Sujan Christo14-Oct-04 19:16
Sujan Christo14-Oct-04 19:16 
QuestionHow to close other processes? Pin
Moochie514-Oct-04 14:04
Moochie514-Oct-04 14:04 
AnswerRe: How to close other processes? Pin
Andrzej Markowski14-Oct-04 16:05
Andrzej Markowski14-Oct-04 16:05 
GeneralRe: How to close other processes? Pin
vikramlinux14-Oct-04 19:22
vikramlinux14-Oct-04 19:22 
GeneralRe: How to close other processes? Pin
Moochie515-Oct-04 6:27
Moochie515-Oct-04 6:27 
GeneralRe: How to close other processes? Pin
Andrzej Markowski15-Oct-04 7:04
Andrzej Markowski15-Oct-04 7:04 
GeneralRe: How to close other processes? Pin
Moochie515-Oct-04 8:14
Moochie515-Oct-04 8:14 
GeneralRe: How to close other processes? Pin
Andrzej Markowski15-Oct-04 9:32
Andrzej Markowski15-Oct-04 9:32 
GeneralRe: How to close other processes? Pin
Moochie515-Oct-04 10:53
Moochie515-Oct-04 10:53 
GeneralRe: How to close other processes? Pin
Moochie516-Oct-04 9:46
Moochie516-Oct-04 9:46 
GeneralRe: How to close other processes? Pin
Moochie516-Oct-04 10:01
Moochie516-Oct-04 10:01 
GeneralRe: How to close other processes? Pin
Andrzej Markowski17-Oct-04 11:54
Andrzej Markowski17-Oct-04 11:54 
AnswerRe: How to close other processes? Pin
Andrzej Markowski21-Oct-04 8:38
Andrzej Markowski21-Oct-04 8:38 
AnswerRe: How to close other processes? Pin
Andrzej Markowski23-Oct-04 19:16
Andrzej Markowski23-Oct-04 19:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.