Prev: CArray of stdext::hash_map<int,int> not possible ( access violation ) ?
Next: Socket connection error - 10061
From: Christoph Conrad on 10 Mar 2010 10:09 Hello, i read several articles on codeproject about owner drawn controls, specifically for changing the background and text colors of MFC controls. This works, except for CTabCtrls and CBitmapButtons. CTabCtrl: i can change text/background for the entries (text) in the tabctrl, and also for the tabs. But the frame around the whole thing always has the same (system) color. CBitmapButton: doesn't matter what i do (overwriting DrawItem(), OnCtrlColor(), CtrlColor()), text/background always in the system colors. Can anyone give me a hint hwo this can be achieved? Regards, Christoph |