Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: text setting in list control Pin
deldeep7-Mar-05 17:39
deldeep7-Mar-05 17:39 
GeneralCREATE PROCESS Pin
sunit53-Mar-05 22:59
sunit53-Mar-05 22:59 
GeneralRe: CREATE PROCESS Pin
Jetli Jerry4-Mar-05 0:46
Jetli Jerry4-Mar-05 0:46 
GeneralRe: CREATE PROCESS Pin
sunit54-Mar-05 2:13
sunit54-Mar-05 2:13 
GeneralRe: CREATE PROCESS Pin
sunit54-Mar-05 2:15
sunit54-Mar-05 2:15 
GeneralRe: CREATE PROCESS Pin
David Crow4-Mar-05 3:05
David Crow4-Mar-05 3:05 
GeneralSet background colour on a CDateTimeCtrl Pin
roccap3-Mar-05 22:46
roccap3-Mar-05 22:46 
GeneralRe: Set background colour on a CDateTimeCtrl Pin
namaskaaram4-Mar-05 1:23
namaskaaram4-Mar-05 1:23 
u already have an example in the msdn documentation,just incase u didnt get em,here it iz.....

// This OnCtlColor handler will change the color of a static control
// with the ID of IDC_MYSTATIC. The code assumes that the CMyDialog
// class has an initialized and created CBrush member named m_brush.
// The control will be painted with red text and a background
// color of m_brush.

HBRUSH CZilchDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
   // Call the base class implementation first! Otherwise, it may
   // undo what we're trying to accomplish here.
   HBRUSH hbr = CDialog::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_MYSTATIC)
   {
      // Set the text color to red
      pDC->SetTextColor(RGB(255, 0, 0));

      // Set the background mode for text to transparent 
      // so background will show thru.
      pDC->SetBkMode(TRANSPARENT);

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

   return hbr;
}



cheerz.....

"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
Generalone question regarding dialogz!!!!! Pin
namaskaaram3-Mar-05 22:46
namaskaaram3-Mar-05 22:46 
GeneralRe: one question regarding dialogz!!!!! Pin
Jetli Jerry4-Mar-05 0:27
Jetli Jerry4-Mar-05 0:27 
Generalthanx for reply....but that is not what i asked.....help!!!!! Pin
namaskaaram4-Mar-05 0:35
namaskaaram4-Mar-05 0:35 
GeneralRe: thanx for reply....but that is not what i asked.....help!!!!! Pin
Alton Williams4-Mar-05 3:38
Alton Williams4-Mar-05 3:38 
GeneralRe: thanx for reply....but that is not what i asked.....help!!!!! Pin
namaskaaram4-Mar-05 20:01
namaskaaram4-Mar-05 20:01 
GeneralRe: one question regarding dialogz!!!!! Pin
David Crow4-Mar-05 3:08
David Crow4-Mar-05 3:08 
GeneralRe: one question regarding dialogz!!!!! Pin
namaskaaram4-Mar-05 20:00
namaskaaram4-Mar-05 20:00 
GeneralRe: one question regarding dialogz!!!!! Pin
David Crow7-Mar-05 2:27
David Crow7-Mar-05 2:27 
GeneralRe: one question regarding dialogz!!!!! Pin
namaskaaram7-Mar-05 16:40
namaskaaram7-Mar-05 16:40 
GeneralRe: one question regarding dialogz!!!!! Pin
David Crow8-Mar-05 2:39
David Crow8-Mar-05 2:39 
GeneralRe: one question regarding dialogz!!!!! Pin
namaskaaram8-Mar-05 4:23
namaskaaram8-Mar-05 4:23 
GeneralMFC app to service app Pin
Musen803-Mar-05 22:18
Musen803-Mar-05 22:18 
GeneralRe: MFC app to service app Pin
ionzarate4-Mar-05 1:16
ionzarate4-Mar-05 1:16 
GeneralRe: MFC app to service app Pin
Tarundeep Singh Kalra4-Mar-05 8:02
Tarundeep Singh Kalra4-Mar-05 8:02 
GeneralLoadImage in ActiveX(MFC Based) Pin
DharmendraNathW3-Mar-05 21:52
DharmendraNathW3-Mar-05 21:52 
GeneralRe: LoadImage in ActiveX(MFC Based) Pin
Anand for every one3-Mar-05 22:48
Anand for every one3-Mar-05 22:48 
GeneralGetting logged data from the event log. Pin
VCBig3-Mar-05 20:42
sussVCBig3-Mar-05 20:42 

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.