Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMaking Static Control transparent Pin
User 21559726-Feb-04 18:07
User 21559726-Feb-04 18:07 
GeneralPlatform SDK: January 2004 Edition Pin
Robert Buldoc26-Feb-04 17:54
Robert Buldoc26-Feb-04 17:54 
GeneralCombine two icons Pin
mjvalan26-Feb-04 17:51
mjvalan26-Feb-04 17:51 
Generalrun BindToRecordset error: IDispatch error #3105 Pin
lynhoo26-Feb-04 15:16
lynhoo26-Feb-04 15:16 
GeneralCMultiColumnComboBox Help Pin
DougW4826-Feb-04 15:03
DougW4826-Feb-04 15:03 
GeneralOnCtlColor Pin
alex.barylski26-Feb-04 15:01
alex.barylski26-Feb-04 15:01 
GeneralRe: OnCtlColor Pin
Prakash Nadar26-Feb-04 17:18
Prakash Nadar26-Feb-04 17:18 
GeneralRe: OnCtlColor Pin
alex.barylski26-Feb-04 21:23
alex.barylski26-Feb-04 21:23 
I stole this code form the MSDN article the last poster sent me...I ave no idea where m_brush comes from, but regardless the following ode doesn't work either....

I dunno if it's because I call SetDialogBkColor() in InitInstance or what, but this is pissin me off Smile | :)

HBRUSH hbr = CDragDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
// Are we painting the IDC_MYSTATIC control? We can use
// CWnd::GetDlgCtrlID() to perform the most efficient test.
if(pWnd->GetDlgCtrlID() == IDC_STATIC_ACCOUNT){
      
  // Set the text color to red
  //pDC->SetTextColor(RGB(255, 0, 0));

  // Set the background mode for text to transparent 
  pDC->SetBkMode(TRANSPARENT);

  // Return handle to our CBrush object
  //hbr = m_brush;
}

return hbr;


Thanks

The word of the day is legs, let's go back to my house and spread the word Poke tongue | ;-P
GeneralRe: OnCtlColor Pin
Prakash Nadar26-Feb-04 21:34
Prakash Nadar26-Feb-04 21:34 
GeneralRe: OnCtlColor Pin
Selvam R26-Feb-04 19:46
professionalSelvam R26-Feb-04 19:46 
GeneralOdd memory leak cleans self upon window minimization Pin
extremestan26-Feb-04 11:03
extremestan26-Feb-04 11:03 
GeneralRe: Odd memory leak cleans self upon window minimization Pin
l a u r e n26-Feb-04 21:26
l a u r e n26-Feb-04 21:26 
GeneralRe: Odd memory leak cleans self upon window minimization Pin
David Crow27-Feb-04 5:43
David Crow27-Feb-04 5:43 
GeneralRe: Odd memory leak cleans self upon window minimization Pin
Member 101882314-Apr-04 23:18
Member 101882314-Apr-04 23:18 
GeneralRe: Odd memory leak cleans self upon window minimization Pin
Member 101882315-Apr-04 0:39
Member 101882315-Apr-04 0:39 
Generalcolored lines in console Pin
oOomen26-Feb-04 10:19
oOomen26-Feb-04 10:19 
GeneralRe: colored lines in console Pin
Selvam R26-Feb-04 18:53
professionalSelvam R26-Feb-04 18:53 
GeneralExtractAssociatedIcon() Pin
T1TAN26-Feb-04 10:16
T1TAN26-Feb-04 10:16 
GeneralBitmap and Text on the same line inside CRichEditCtrl Pin
Chulips26-Feb-04 9:39
Chulips26-Feb-04 9:39 
GeneralRe: Bitmap and Text on the same line inside CRichEditCtrl Pin
Selvam R26-Feb-04 19:37
professionalSelvam R26-Feb-04 19:37 
QuestionHow to modify just a line of text in a file? Pin
sysmatrix26-Feb-04 9:30
sysmatrix26-Feb-04 9:30 
AnswerRe: How to modify just a line of text in a file? Pin
David Crow26-Feb-04 10:59
David Crow26-Feb-04 10:59 
GeneralRe: How to modify just a line of text in a file? Pin
Rajesh match26-Feb-04 18:45
Rajesh match26-Feb-04 18:45 
AnswerRe: How to modify just a line of text in a file? Pin
Selvam R26-Feb-04 19:07
professionalSelvam R26-Feb-04 19:07 
Questionmap a network drive? Pin
Joan M26-Feb-04 9:10
professionalJoan M26-Feb-04 9: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.