Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: send and FD_WRITE Pin
Laxman Auti28-Jun-06 22:53
Laxman Auti28-Jun-06 22:53 
AnswerRe: send and FD_WRITE Pin
markkuk28-Jun-06 23:23
markkuk28-Jun-06 23:23 
GeneralRe: send and FD_WRITE Pin
followait29-Jun-06 5:11
followait29-Jun-06 5:11 
QuestionHow to Change the color of Dialog Box Pin
Krishnatv28-Jun-06 20:56
Krishnatv28-Jun-06 20:56 
AnswerRe: How to Change the color of Dialog Box Pin
Rajesh R Subramanian28-Jun-06 20:59
professionalRajesh R Subramanian28-Jun-06 20:59 
AnswerRe: How to Change the color of Dialog Box Pin
Hamid_RT28-Jun-06 21:07
Hamid_RT28-Jun-06 21:07 
AnswerRe: How to Change the color of Dialog Box Pin
Laxman Auti28-Jun-06 21:12
Laxman Auti28-Jun-06 21:12 
AnswerRe: How to Change the color of Dialog Box Pin
Hamid_RT28-Jun-06 21:22
Hamid_RT28-Jun-06 21:22 
I think this is better
COLORREF Color;
	Color=GetDC()->GetBkColor();//for example in OnInitDailog
<code>(1)
void CtetDlg::OnPaint()
{
	CPaintDC dc(this); // device context for painting
	//	dc.SetTextColor(RGB(0,0,200));
	dc.FillSolidRect(0,0,GetSystemMetrics (SM_CXSCREEN),GetSystemMetrics (SM_CYSCREEN),
		Color);
		CDialog::OnPaint();
}
-------------------------------
(2)
HBRUSH CtetDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	//or use form brush functions CreateHatchBrush,...
	return (HBRUSH)GetStockObject(WHITE_BRUSH);
}

(3)
BOOL CtetDlg::OnEraseBkgnd(CDC* pDC)
{
	// TODO: Add your message handler code here and/or call default
	return CDialog::OnEraseBkgnd(pDC);
}
</code>



whitesky


AnswerRe: How to Change the color of Dialog Box Pin
mimimimilaw28-Jun-06 22:07
mimimimilaw28-Jun-06 22:07 
QuestionHow to change App icon Pin
Raul Simcic28-Jun-06 20:55
Raul Simcic28-Jun-06 20:55 
AnswerRe: How to change App icon Pin
Sarath C28-Jun-06 21:29
Sarath C28-Jun-06 21:29 
GeneralRe: How to change App icon Pin
Raul Simcic28-Jun-06 23:30
Raul Simcic28-Jun-06 23:30 
QuestionOutlook Object Model Pin
Mahesh Kulkarni28-Jun-06 20:40
Mahesh Kulkarni28-Jun-06 20:40 
AnswerRe: Outlook Object Model Pin
HakunaMatada28-Jun-06 20:56
HakunaMatada28-Jun-06 20:56 
GeneralRe: Outlook Object Model Pin
Mahesh Kulkarni28-Jun-06 21:01
Mahesh Kulkarni28-Jun-06 21:01 
GeneralRe: Outlook Object Model Pin
HakunaMatada28-Jun-06 21:13
HakunaMatada28-Jun-06 21:13 
GeneralRe: Outlook Object Model Pin
Mahesh Kulkarni29-Jun-06 1:34
Mahesh Kulkarni29-Jun-06 1:34 
GeneralRe: Outlook Object Model Pin
HakunaMatada29-Jun-06 17:38
HakunaMatada29-Jun-06 17:38 
QuestionHow to synchronization audio and video in a mpeg2ps file? Pin
chenxiujie28-Jun-06 20:21
chenxiujie28-Jun-06 20:21 
Questionloading DLL library Pin
sach!!28-Jun-06 20:20
sach!!28-Jun-06 20:20 
AnswerRe: loading DLL library Pin
Cedric Moonen28-Jun-06 20:23
Cedric Moonen28-Jun-06 20:23 
GeneralRe: loading DLL library Pin
sach!!28-Jun-06 21:10
sach!!28-Jun-06 21:10 
AnswerRe: loading DLL library Pin
Laxman Auti28-Jun-06 21:24
Laxman Auti28-Jun-06 21:24 
GeneralRe: loading DLL library Pin
Cedric Moonen28-Jun-06 21:31
Cedric Moonen28-Jun-06 21:31 
AnswerRe: loading DLL library Pin
Hamid_RT28-Jun-06 20:45
Hamid_RT28-Jun-06 20:45 

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.