Click here to Skip to main content
15,916,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do we window associated with a process using the process id Pin
Member 7325226-Jul-00 16:55
Member 7325226-Jul-00 16:55 
AnswerRe: How do we window associated with a process using the process id Pin
Paolo Messina6-Jul-00 22:31
professionalPaolo Messina6-Jul-00 22:31 
QuestionSDI with an MDI style close button? Pin
kumaichi6-Jul-00 13:50
kumaichi6-Jul-00 13:50 
GeneralChanging the background color of a read-only CEdit Pin
Joan Murt6-Jul-00 10:11
sussJoan Murt6-Jul-00 10:11 
GeneralRe: Changing the background color of a read-only CEdit Pin
Sam Hobbs7-Jul-00 6:07
Sam Hobbs7-Jul-00 6:07 
GeneralRe: Changing the background color of a read-only CEdit Pin
Philip Nicoletti7-Jul-00 6:46
Philip Nicoletti7-Jul-00 6:46 
GeneralThank you for your help, but there is still a little problem Pin
Joan Murt11-Jul-00 9:27
sussJoan Murt11-Jul-00 9:27 
GeneralRe: Changing the background color of a read-only CEdit Pin
Joan Murt12-Jul-00 8:02
sussJoan Murt12-Jul-00 8:02 
this is the info. I can give to you:

the edit control is created at runtime:

if (!m_cedText.Create(WS_CHILD | WS_HSCROLL | WS_VSCROLL | ES_MULTILINE | ES_WANTRETURN | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_READONLY,CRect(0,0,0,0),this,IDC_EDTEXT))
{
TRACE0("Error en la creació de l'EditBox per a la finestra dockable DlgBarDockSessio.\n");
return -1;
}

m_cedText.ModifyStyleEx(0, WS_EX_CLIENTEDGE);

m_cedText.SetFont(TCCApp.GetDefaultTextFont());


And as in the sample I have processed the WM_CTLCOLOR message:

HBRUSH hbr = CDockingBarWnd::OnCtlColor(pDC, pWnd, nCtlColor);

// TODO: Change any attributes of the DC here
COLORREF m_clrBack;
CBrush m_brush;

if (pWnd->GetDlgCtrlID() == IDC_EDTEXT)
{
m_clrBack = RGB(255,255,255);
pDC->SetBkColor(m_clrBack);

m_brush.CreateSolidBrush(m_clrBack);

return (HBRUSH)m_brush.GetSafeHandle();
}
else return hbr;


PD: Thank you for your help Phil.
GeneralCMonthCalCtrl -> Need help on getting Date... Pin
MaverickTC6-Jul-00 9:55
MaverickTC6-Jul-00 9:55 
GeneralGet active view from modeless dialog Pin
Christoph Rupp6-Jul-00 8:33
sussChristoph Rupp6-Jul-00 8:33 
GeneralRe: Get active view from modeless dialog Pin
Mike Dunn6-Jul-00 8:50
Mike Dunn6-Jul-00 8:50 
GeneralRe: Get active view from modeless dialog Pin
Christoph Rupp6-Jul-00 21:45
sussChristoph Rupp6-Jul-00 21:45 
GeneralRe: Get active view from modeless dialog Pin
Paolo Messina6-Jul-00 23:07
professionalPaolo Messina6-Jul-00 23:07 
GeneralWriting VxDs in VC Pin
Sajid Siraj6-Jul-00 7:25
Sajid Siraj6-Jul-00 7:25 
QuestionHow to scroll to a row in a CListCtrl Pin
Tony10-Jul-00 3:43
Tony10-Jul-00 3:43 
AnswerRe: How to scroll to a row in a CListCtrl Pin
Mike Dunn10-Jul-00 6:26
Mike Dunn10-Jul-00 6:26 
Generalneed help with PJNaughter's CSerialPort class Pin
acidmarco9-Jul-00 23:13
acidmarco9-Jul-00 23:13 
GeneralRe: need help with PJNaughter's CSerialPort class Pin
Remus Lazar10-Jul-00 22:23
Remus Lazar10-Jul-00 22:23 
GeneralWindows Address Book Pin
Cirmu Nicolae9-Jul-00 22:53
sussCirmu Nicolae9-Jul-00 22:53 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:50
Member 11569-Jul-00 11:50 
GeneralFederated Databases vs. Distributed Access Pin
Member 11569-Jul-00 11:49
Member 11569-Jul-00 11:49 
Questioncan any body help me Pin
David9-Jul-00 10:11
David9-Jul-00 10:11 
AnswerRe: can any body help me Pin
phoenix11-Jul-00 0:17
phoenix11-Jul-00 0:17 
GeneralWith external resourcefile dialog with Custom Control not loaded Pin
M.Vo.9-Jul-00 3:24
M.Vo.9-Jul-00 3:24 
GeneralRe: With external resourcefile dialog with Custom Control not loaded Pin
Paolo Messina9-Jul-00 7:13
professionalPaolo Messina9-Jul-00 7:13 

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.