Click here to Skip to main content
15,889,034 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tab in a SDI View or MainFrame Pin
led mike8-Jul-08 9:02
led mike8-Jul-08 9:02 
Questionembed property sheet in same view Pin
garyofcourse8-Jul-08 5:49
garyofcourse8-Jul-08 5:49 
AnswerRe: embed property sheet in same view Pin
Mark Salsbery8-Jul-08 7:12
Mark Salsbery8-Jul-08 7:12 
GeneralRe: embed property sheet in same view Pin
garyofcourse8-Jul-08 9:56
garyofcourse8-Jul-08 9:56 
QuestionGetActiveWindow() Pin
iayd8-Jul-08 5:35
iayd8-Jul-08 5:35 
AnswerRe: GetActiveWindow() Pin
Mark Salsbery8-Jul-08 6:28
Mark Salsbery8-Jul-08 6:28 
GeneralRe: GetActiveWindow() Pin
Stephen Hewitt8-Jul-08 14:55
Stephen Hewitt8-Jul-08 14:55 
QuestionSetting text and background color for a Group-box control Pin
ilgale8-Jul-08 3:28
ilgale8-Jul-08 3:28 
I'm using VS2008 for a MFC application and I'm having some problems
setting text and background color for a Group-box control.
In previous versions of Visual Studio the following code was working:


HBRUSH CMyPrjView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
   HBRUSH   l_hBrush = CWnd::OnCtlColor(pDC, pWnd, nCtlColor);

   int      l_iCtrlId;

   l_iCtrlId = pWnd->GetDlgCtrlID();

   switch(l_iCtrlId)
   {
      case IDC_STC_GRPBOX_1:
      case IDC_STC_GRPBOX_2:

         pDC->SetTextColor(RED_COLOR);
         pDC->SetBkColor(BLACK_COLOR);
      break;

      default:
      break;
   }

   return m_cbrshBlack;
}



Now, in VS2008 it doesn't work. I can change all other controls
colors but not for group-box controls. What is changed ?
Is there some properties of the group-box control to be set ?
Or have I to do other things in OnCtlColor ?

Thanks a lot !
QuestionRe: Setting text and background color for a Group-box control Pin
David Crow8-Jul-08 3:35
David Crow8-Jul-08 3:35 
AnswerRe: Setting text and background color for a Group-box control Pin
ilgale8-Jul-08 4:03
ilgale8-Jul-08 4:03 
GeneralRe: Setting text and background color for a Group-box control Pin
David Crow8-Jul-08 4:15
David Crow8-Jul-08 4:15 
GeneralRe: Setting text and background color for a Group-box control Pin
ilgale8-Jul-08 4:23
ilgale8-Jul-08 4:23 
QuestionRegarding property sheets Pin
Member 46556858-Jul-08 3:17
Member 46556858-Jul-08 3:17 
QuestionRe: Regarding property sheets Pin
David Crow8-Jul-08 3:34
David Crow8-Jul-08 3:34 
AnswerRe: Regarding property sheets Pin
Member 46556858-Jul-08 4:01
Member 46556858-Jul-08 4:01 
GeneralRe: Regarding property sheets Pin
David Crow8-Jul-08 4:19
David Crow8-Jul-08 4:19 
QuestionSaveDialog help Pin
projectip8-Jul-08 2:25
projectip8-Jul-08 2:25 
AnswerRe: SaveDialog help Pin
_AnsHUMAN_ 8-Jul-08 2:34
_AnsHUMAN_ 8-Jul-08 2:34 
AnswerRe: SaveDialog help Pin
David Crow8-Jul-08 2:48
David Crow8-Jul-08 2:48 
GeneralRe: SaveDialog help Pin
projectip8-Jul-08 18:22
projectip8-Jul-08 18:22 
GeneralRe: SaveDialog help Pin
David Crow9-Jul-08 2:49
David Crow9-Jul-08 2:49 
QuestionUsing AnimateWindow for CEdit Pin
sudhir_Kumar8-Jul-08 1:39
sudhir_Kumar8-Jul-08 1:39 
AnswerRe: Using AnimateWindow for CEdit Pin
Nibu babu thomas8-Jul-08 2:04
Nibu babu thomas8-Jul-08 2:04 
QuestionHow can I get the handle of the dialog ? Pin
SherTeks8-Jul-08 1:13
SherTeks8-Jul-08 1:13 
AnswerRe: How can I get the handle of the dialog ? Pin
Saurabh.Garg8-Jul-08 1:20
Saurabh.Garg8-Jul-08 1:20 

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.