Click here to Skip to main content
15,911,139 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury27-Aug-07 5:55
professionalJoe Woodbury27-Aug-07 5:55 
AnswerRe: How do you determine who loaded a DLL? Pin
cmk28-Aug-07 2:20
cmk28-Aug-07 2:20 
GeneralRe: How do you determine who loaded a DLL? Pin
Joe Woodbury28-Aug-07 5:50
professionalJoe Woodbury28-Aug-07 5:50 
GeneralRe: How do you determine who loaded a DLL? Pin
cmk28-Aug-07 12:23
cmk28-Aug-07 12:23 
Question[VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 6:35
abiemann24-Aug-07 6:35 
AnswerRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 7:10
Mark Salsbery24-Aug-07 7:10 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 8:20
abiemann24-Aug-07 8:20 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 8:31
Mark Salsbery24-Aug-07 8:31 
You need to return a handle to a brush that you've created/obtained
instead of returning the default brush...
// member variable
CBrush m_RedBrush;
...
// In class constructor
m_RedBrush.CreateSolidBrush(RGB(0xFF,0x00,0x00));
...
HBRUSH S2000_CP_DLG::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
   	switch ( pWnd->GetDlgCtrlID()  )
   	{
   		case IDC_FW_VERSION: //Static Text box
   		case IDC_MESSAGES:   //Edit Control
      			pDC->SetTextColor(rgbColor_RED);// Set the text color to red
      			pDC->SetBkMode(TRANSPARENT);// Set the background mode for text to transparent
      			break;
   	}

   	return m_RedBrush;
}

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
abiemann24-Aug-07 11:13
abiemann24-Aug-07 11:13 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 11:22
Mark Salsbery24-Aug-07 11:22 
GeneralRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Mark Salsbery24-Aug-07 11:30
Mark Salsbery24-Aug-07 11:30 
AnswerRe: [VC8 MFC] How is it possible to set the font color for an Edit Control and Static Text ? Pin
Jim Crafton24-Aug-07 7:12
Jim Crafton24-Aug-07 7:12 
Questionstackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 5:39
John Oliviers24-Aug-07 5:39 
AnswerRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen24-Aug-07 6:10
Maxwell Chen24-Aug-07 6:10 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 7:31
John Oliviers24-Aug-07 7:31 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' [modified] Pin
Maxwell Chen24-Aug-07 7:56
Maxwell Chen24-Aug-07 7:56 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 8:34
John Oliviers24-Aug-07 8:34 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen24-Aug-07 8:39
Maxwell Chen24-Aug-07 8:39 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 8:48
John Oliviers24-Aug-07 8:48 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen24-Aug-07 9:07
Maxwell Chen24-Aug-07 9:07 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers24-Aug-07 9:16
John Oliviers24-Aug-07 9:16 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen24-Aug-07 9:51
Maxwell Chen24-Aug-07 9:51 
QuestionRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
John Oliviers29-Aug-07 9:26
John Oliviers29-Aug-07 9:26 
GeneralRe: stackwalk64 compilation error on 64 bit windows - Cannot convert parameter from 'int' to 'HANDLE' Pin
Maxwell Chen29-Aug-07 18:36
Maxwell Chen29-Aug-07 18:36 
QuestionHow to pass data to child process using anonymous pipes Pin
Visweswara Koduri24-Aug-07 5:05
Visweswara Koduri24-Aug-07 5:05 

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.