Click here to Skip to main content
16,010,022 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: new to sockets Pin
Robert Kuster31-Aug-03 8:21
Robert Kuster31-Aug-03 8:21 
GeneralCreate nonblocking socket for all win versions Pin
CND31-Aug-03 2:04
CND31-Aug-03 2:04 
GeneralRe: Create nonblocking socket for all win versions Pin
Simon.W31-Aug-03 2:16
Simon.W31-Aug-03 2:16 
Generaljklh Pin
Anonymous31-Aug-03 1:38
Anonymous31-Aug-03 1:38 
GeneralRe: jklh Pin
Scozturk31-Aug-03 4:18
professionalScozturk31-Aug-03 4:18 
GeneralPassing data between a popup dialog and SDI Pin
Member 40481330-Aug-03 23:59
Member 40481330-Aug-03 23:59 
GeneralRe: Passing data between a popup dialog and SDI Pin
RChin31-Aug-03 0:13
RChin31-Aug-03 0:13 
GeneralChanging color of CComboBoxEx Pin
Svilen30-Aug-03 22:26
Svilen30-Aug-03 22:26 
Hi,all!

I'm trying to change the colors of CComboBoxEx. I have my own class CMyComboBoxEx derived from CComboBoxEx. I'm handling the WM_CTLCOLOR message in my class this way:
if (nCtlColor==CTLCOLOR_EDIT || nCtlColor==CTLCOLOR_LISTBOX) {
pDC->SetTextColor(RGB(0,128,255));
pDC->SetBkColor(RGB(255,255,222));
return brush_window;
}
There are no problems with the edit box. But text colors (foreground and background) in the listbox do not change. The brush does paint around the text though.
This piece works for CComboBox but not for CComboBoxEx!
I have also tried dynamically subclassing of editbox and listbox like it is shown in some articles but to no avail. I have also tried subclassing the child of ComboBoxEx32 which is a plain ComboBox but it turns out that in this case some functions of CComboBox (like DrawItem,MeasureItem) should defined additionally.

Please share your experience, give ideas.
Thank you.

S.Stoilov
QuestionHow to write cd Pin
Scozturk30-Aug-03 21:32
professionalScozturk30-Aug-03 21:32 
AnswerRe: How to write cd Pin
alex.barylski30-Aug-03 21:41
alex.barylski30-Aug-03 21:41 
GeneralRe: How to write cd Pin
Scozturk30-Aug-03 21:45
professionalScozturk30-Aug-03 21:45 
AnswerRe: How to write cd Pin
Ryan Binns30-Aug-03 22:44
Ryan Binns30-Aug-03 22:44 
GeneralRe: How to write cd Pin
Scozturk31-Aug-03 6:05
professionalScozturk31-Aug-03 6:05 
GeneralRe: How to write cd Pin
Ryan Binns31-Aug-03 14:18
Ryan Binns31-Aug-03 14:18 
GeneralRe: How to write cd Pin
Anonymous31-Aug-03 22:15
Anonymous31-Aug-03 22:15 
GeneralHelp with connecting to oracle 8i Pin
eric fernando30-Aug-03 21:26
eric fernando30-Aug-03 21:26 
GeneralRe: Help with connecting to oracle 8i Pin
Michael P Butler31-Aug-03 0:48
Michael P Butler31-Aug-03 0:48 
GeneralRe: Help with connecting to oracle 8i Pin
l a u r e n31-Aug-03 8:23
l a u r e n31-Aug-03 8:23 
QuestionHow do i make a pop up window in CFormView within SDI? Pin
Member 40481330-Aug-03 21:01
Member 40481330-Aug-03 21:01 
AnswerRe: How do i make a pop up window in CFormView within SDI? Pin
Scozturk30-Aug-03 21:38
professionalScozturk30-Aug-03 21:38 
Questionbasic TAR lib??? Pin
alex.barylski30-Aug-03 20:57
alex.barylski30-Aug-03 20:57 
AnswerRe: basic TAR lib??? Pin
ZoogieZork30-Aug-03 21:33
ZoogieZork30-Aug-03 21:33 
GeneralRe: basic TAR lib??? Pin
alex.barylski30-Aug-03 21:40
alex.barylski30-Aug-03 21:40 
GeneralRe: basic TAR lib??? Pin
ZoogieZork31-Aug-03 7:37
ZoogieZork31-Aug-03 7:37 
QuestionAnyone help? with start up?? Pin
Snyp30-Aug-03 15:33
Snyp30-Aug-03 15:33 

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.