Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery8-Sep-08 9:15
Mark Salsbery8-Sep-08 9:15 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 21:43
sashoalm8-Sep-08 21:43 
GeneralRe: ParseCommandLine question Pin
Mark Salsbery9-Sep-08 5:06
Mark Salsbery9-Sep-08 5:06 
AnswerRe: ParseCommandLine question Pin
Matthew Faithfull8-Sep-08 5:11
Matthew Faithfull8-Sep-08 5:11 
GeneralRe: ParseCommandLine question Pin
sashoalm8-Sep-08 5:24
sashoalm8-Sep-08 5:24 
GeneralRe: ParseCommandLine question Pin
Matthew Faithfull8-Sep-08 5:46
Matthew Faithfull8-Sep-08 5:46 
QuestionChanging the text color in the combobox dynamically Pin
hariakuthota8-Sep-08 3:56
hariakuthota8-Sep-08 3:56 
AnswerRe: Changing the text color in the combobox dynamically Pin
enhzflep8-Sep-08 17:14
enhzflep8-Sep-08 17:14 
Yeah sure there is, though if the control exists on a dialog you have more limited options when it comes to easily colouring the background.

If the control exists on a dialog, you may have the following code inside your DialogProc

case WM_CTLCOLORLISTBOX:
    SetTextColor((HDC)wParam, RGB(250, 100, 0));   // an orange colour
    return TRUE;                                   // message handled

If the control exists on a normal window, you can return a handle to the brush used to draw the background.

case WM_CTLCOLORLISTBOX:
    SetTextColor((HDC)wParam, RGB(250, 100, 0));   // an orange colour
    return GetStockObject(LTGRAY_BRUSH);           // hbrush to use for background


on receipt of the message, lParam = the HWND of the list box. You may want to check the value of this param if you have more than one list/combo box and you'd like them to have different colours.
QuestionMFC Datetime to String Pin
mehmetned8-Sep-08 3:29
mehmetned8-Sep-08 3:29 
AnswerRe: MFC Datetime to String Pin
toxcct8-Sep-08 3:42
toxcct8-Sep-08 3:42 
Questionviewing pictures in tif format using CImage Pin
susanne18-Sep-08 2:24
susanne18-Sep-08 2:24 
AnswerRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 2:53
SandipG 8-Sep-08 2:53 
GeneralRe: viewing pictures in tif format using CImage Pin
susanne18-Sep-08 3:00
susanne18-Sep-08 3:00 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 3:21
SandipG 8-Sep-08 3:21 
GeneralRe: viewing pictures in tif format using CImage Pin
Mark Salsbery8-Sep-08 5:46
Mark Salsbery8-Sep-08 5:46 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 8-Sep-08 20:50
SandipG 8-Sep-08 20:50 
GeneralRe: viewing pictures in tif format using CImage Pin
Mark Salsbery9-Sep-08 5:01
Mark Salsbery9-Sep-08 5:01 
GeneralRe: viewing pictures in tif format using CImage Pin
SandipG 9-Sep-08 5:14
SandipG 9-Sep-08 5:14 
AnswerRe: viewing pictures in tif format using CImage Pin
Mark Salsbery8-Sep-08 5:44
Mark Salsbery8-Sep-08 5:44 
QuestionAuto Run Application Pin
polopo8-Sep-08 2:16
polopo8-Sep-08 2:16 
AnswerRe: Auto Run Application Pin
CPallini8-Sep-08 2:21
mveCPallini8-Sep-08 2:21 
GeneralRe: Auto Run Application Pin
polopo8-Sep-08 2:23
polopo8-Sep-08 2:23 
GeneralRe: Auto Run Application Pin
toxcct8-Sep-08 2:33
toxcct8-Sep-08 2:33 
GeneralRe: Auto Run Application Pin
polopo8-Sep-08 2:43
polopo8-Sep-08 2:43 
QuestionRe: Auto Run Application Pin
David Crow8-Sep-08 3:19
David Crow8-Sep-08 3:19 

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.