Click here to Skip to main content
15,921,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: App Launcher Pin
Mash7-Feb-03 10:34
Mash7-Feb-03 10:34 
GeneralRe: App Launcher Pin
Mike Nordell7-Feb-03 21:08
Mike Nordell7-Feb-03 21:08 
GeneralCryptoAPI and CryptGenKey problem ! Pin
Hadi Rezaee7-Feb-03 10:10
Hadi Rezaee7-Feb-03 10:10 
QuestionHELP FILES from a WORD DOCUMENT ? Pin
youssef7-Feb-03 9:45
youssef7-Feb-03 9:45 
AnswerRe: HELP FILES from a WORD DOCUMENT ? Pin
Amit Dey7-Feb-03 11:00
Amit Dey7-Feb-03 11:00 
GeneralIt won't refresh! Pin
will13837-Feb-03 8:50
will13837-Feb-03 8:50 
GeneralRe: It won't refresh! Pin
Jeff J7-Feb-03 9:21
Jeff J7-Feb-03 9:21 
GeneralRe: It won't refresh! Pin
will13837-Feb-03 9:29
will13837-Feb-03 9:29 
GeneralLVS_FLATSB Pin
User 98857-Feb-03 8:41
User 98857-Feb-03 8:41 
GeneralHWND from ProcessID Pin
#realJSOP7-Feb-03 7:32
professional#realJSOP7-Feb-03 7:32 
GeneralRe: HWND from ProcessID Pin
Tim Smith7-Feb-03 8:38
Tim Smith7-Feb-03 8:38 
GeneralRe: HWND from ProcessID Pin
Chris Meech7-Feb-03 8:42
Chris Meech7-Feb-03 8:42 
GeneralCan't get FrameRgn() to work! :( Pin
Rickard Andersson207-Feb-03 6:44
Rickard Andersson207-Feb-03 6:44 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Paul M Watt7-Feb-03 12:07
mentorPaul M Watt7-Feb-03 12:07 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 1:54
Rickard Andersson208-Feb-03 1:54 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell8-Feb-03 7:15
Mike Nordell8-Feb-03 7:15 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Rickard Andersson208-Feb-03 9:39
Rickard Andersson208-Feb-03 9:39 
GeneralRe: Can't get FrameRgn() to work! :( Pin
Mike Nordell9-Feb-03 2:26
Mike Nordell9-Feb-03 2:26 
GeneralFile association launched app... Pin
Dr Soong7-Feb-03 6:33
Dr Soong7-Feb-03 6:33 
GeneralRe: File association launched app... Pin
Neville Franks7-Feb-03 10:02
Neville Franks7-Feb-03 10:02 
GeneralRe: File association launched app... Pin
Dr Soong7-Feb-03 12:17
Dr Soong7-Feb-03 12:17 
GeneralChanging the color of a static text Pin
Tom Wright7-Feb-03 5:19
Tom Wright7-Feb-03 5:19 
GeneralRe: Changing the color of a static text Pin
AlexO7-Feb-03 5:27
AlexO7-Feb-03 5:27 
GeneralRe: Changing the color of a static text Pin
Dr Soong7-Feb-03 8:46
Dr Soong7-Feb-03 8:46 
A really simple way of doing this and givng you control over quit a bit of the control is to subclass the CComboBox and override the OnCtlColor virtual funtion. Example of changing thetext color follows:

HBRUSH CMyComboBox::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
pDC->SetTextColor(RGB(255,255,0));
pDC->SetBkMode(TRANSPARENT);

return m_Brush;
}

In addition to chaging the text color, the disply mode will be transoarent so you don't have to worry about a background color, however, you could change that as well. The m_Brush being returned is a var that is defined in the constuctor so that the entire controls background uses that brush to paint the controls background.

This method can be used on any of the control, listbox, edit, ect.

GeneralCatching Exceptions in MFC Pin
Tom Wright7-Feb-03 5:10
Tom Wright7-Feb-03 5:10 

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.