Click here to Skip to main content
15,908,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: Making an Application Hang. Pin
PrafullaShirke272-Nov-09 22:57
professionalPrafullaShirke272-Nov-09 22:57 
GeneralRe: Making an Application Hang. Pin
Hari_162-Nov-09 22:59
Hari_162-Nov-09 22:59 
AnswerRe: Making an Application Hang. Pin
Rajesh R Subramanian2-Nov-09 23:47
professionalRajesh R Subramanian2-Nov-09 23:47 
GeneralRe: Making an Application Hang. Pin
Hari_162-Nov-09 23:58
Hari_162-Nov-09 23:58 
AnswerRe: Making an Application Hang. Pin
Randor 3-Nov-09 5:21
professional Randor 3-Nov-09 5:21 
GeneralRe: Making an Application Hang. Pin
Hari_163-Nov-09 18:14
Hari_163-Nov-09 18:14 
QuestionDirect3D (DXUT) Problem Pin
Ali Tavakol2-Nov-09 22:37
Ali Tavakol2-Nov-09 22:37 
QuestionChange background color of combo box's dropdown list. Pin
Member 38346302-Nov-09 22:00
Member 38346302-Nov-09 22:00 
Hello,
How to change the background color of the dropdown list in combo box.
I changed the back ground color of dialog box in OnCtlColor() method, this changed the color of all the items on the dialog.

I could individual controls color but not able to change the dropdown list color of combo box.

Below is the code snippet.
if(pWnd->GetDlgCtrlID() == IDC_COMBO1)
{
HBRUSH g_bkcolor = CreateSolidBrush(RGB(255,255,255));
pDC->SetTextColor(RGB(0,0,0));
pDC->SetBkColor (RGB(255,255,255));
hbr = g_bkcolor;
return hbr;
}

If someone knows how to change the color please let me know.. Thank You..
AnswerRe: Change background color of combo box's dropdown list. Pin
PrafullaShirke272-Nov-09 22:30
professionalPrafullaShirke272-Nov-09 22:30 
GeneralRe: Change background color of combo box's dropdown list. Pin
Member 38346302-Nov-09 22:44
Member 38346302-Nov-09 22:44 
GeneralRe: Change background color of combo box's dropdown list. Pin
PrafullaShirke272-Nov-09 22:55
professionalPrafullaShirke272-Nov-09 22:55 
QuestionNot Recieving Message Notification Pin
002comp2-Nov-09 21:42
002comp2-Nov-09 21:42 
AnswerRe: Not Recieving Message Notification Pin
Richard MacCutchan2-Nov-09 21:58
mveRichard MacCutchan2-Nov-09 21:58 
GeneralRe: Not Recieving Message Notification Pin
002comp2-Nov-09 22:04
002comp2-Nov-09 22:04 
GeneralRe: Not Recieving Message Notification Pin
002comp2-Nov-09 22:35
002comp2-Nov-09 22:35 
Questioncombobox in msflexgrid cell Pin
ranjithgoud2-Nov-09 21:40
ranjithgoud2-Nov-09 21:40 
AnswerRe: combobox in msflexgrid cell [modified] Pin
PrafullaShirke272-Nov-09 22:31
professionalPrafullaShirke272-Nov-09 22:31 
GeneralRe: combobox in msflexgrid cell Pin
ranjithgoud3-Nov-09 18:39
ranjithgoud3-Nov-09 18:39 
QuestionExectable not running for normal user and then dissappearing ? Not doing any thing Pin
Kushagra Tiwari2-Nov-09 21:14
Kushagra Tiwari2-Nov-09 21:14 
AnswerRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
KarstenK2-Nov-09 21:21
mveKarstenK2-Nov-09 21:21 
GeneralRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
Kushagra Tiwari2-Nov-09 21:25
Kushagra Tiwari2-Nov-09 21:25 
AnswerRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
Rajesh R Subramanian2-Nov-09 21:31
professionalRajesh R Subramanian2-Nov-09 21:31 
GeneralRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
Kushagra Tiwari2-Nov-09 22:58
Kushagra Tiwari2-Nov-09 22:58 
GeneralRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
Rajesh R Subramanian3-Nov-09 0:11
professionalRajesh R Subramanian3-Nov-09 0:11 
AnswerRe: Exectable not running for normal user and then dissappearing ? Not doing any thing Pin
KarstenK2-Nov-09 23:43
mveKarstenK2-Nov-09 23:43 

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.