Click here to Skip to main content
15,915,501 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to change button color in any dialog based form Pin
Hamid_RT26-Jun-06 1:57
Hamid_RT26-Jun-06 1:57 
QuestionOpen Ports Windows XP Pin
Daniel Kanev25-Jun-06 23:45
Daniel Kanev25-Jun-06 23:45 
AnswerRe: Open Ports Windows XP Pin
Sarath C25-Jun-06 23:50
Sarath C25-Jun-06 23:50 
AnswerRe: Open Ports Windows XP Pin
Naveen25-Jun-06 23:50
Naveen25-Jun-06 23:50 
GeneralRe: Open Ports Windows XP Pin
Sarath C26-Jun-06 0:54
Sarath C26-Jun-06 0:54 
QuestionHow to change Group box background color??? Pin
mimimimilaw25-Jun-06 23:23
mimimimilaw25-Jun-06 23:23 
AnswerRe: How to change Group box background color??? Pin
Hamid_RT25-Jun-06 23:26
Hamid_RT25-Jun-06 23:26 
AnswerRe: How to change Group box background color??? Pin
Hamid_RT26-Jun-06 0:09
Hamid_RT26-Jun-06 0:09 
I dont know what do you need but see here i write this ocde for you i check this code with a GroupBox and in GroupBox i have radio buttons and...
<br />
	CMyStatic m_GroupBox;<br />
<pre><br />
class CMyStatic : public CStatic<br />
{<br />
	DECLARE_DYNAMIC(CMyStatic)<br />
<br />
public:<br />
	CMyStatic();<br />
	virtual ~CMyStatic();<br />
<br />
protected:<br />
	DECLARE_MESSAGE_MAP()<br />
public:<br />
	afx_msg void OnPaint();<br />
};<br />
<br />
<br />
IMPLEMENT_DYNAMIC(CMyStatic, CStatic)<br />
CMyStatic::CMyStatic()<br />
{<br />
}<br />
<br />
CMyStatic::~CMyStatic()<br />
{<br />
}<br />
<br />
<br />
BEGIN_MESSAGE_MAP(CMyStatic, CStatic)<br />
	ON_WM_PAINT()<br />
END_MESSAGE_MAP()<br />
<br />
void CMyStatic::OnPaint()<br />
{<br />
	CPaintDC dc(this); // device context for painting<br />
	CRect rect;<br />
	GetWindowRect(rect);<br />
	ScreenToClient(rect);<br />
	dc.FillSolidRect(rect,RGB(0,0,200));<br />
	<br />
	dc.SetBkColor(RGB(0,0,100));<br />
	dc.SetBkMode(0);<br />
	CString str;<br />
	GetWindowText(str);<br />
	dc.FrameRect(rect,&CBrush(RGB(255,255,255)));<br />
	dc.SetTextColor(RGB(255,255,255));<br />
	<br />
	dc.DrawText(str,rect,DT_TOP);<br />
}<br />




whitesky


QuestionInstallation of MSDN? Pin
Syouki_kou25-Jun-06 23:20
Syouki_kou25-Jun-06 23:20 
AnswerRe: Installation of MSDN? Pin
Sarath C25-Jun-06 23:33
Sarath C25-Jun-06 23:33 
QuestionRe: Installation of MSDN? Pin
Syouki_kou2-Jul-06 20:28
Syouki_kou2-Jul-06 20:28 
QuestionCreation of controls at run time Pin
Sangeetha_J25-Jun-06 23:19
Sangeetha_J25-Jun-06 23:19 
AnswerRe: Creation of controls at run time Pin
Sarath C25-Jun-06 23:38
Sarath C25-Jun-06 23:38 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 0:26
Sangeetha Jayaraman26-Jun-06 0:26 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 0:54
Sarath C26-Jun-06 0:54 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:04
Sangeetha Jayaraman26-Jun-06 1:04 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:12
Sarath C26-Jun-06 1:12 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:17
Sarath C26-Jun-06 1:17 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:17
Sangeetha Jayaraman26-Jun-06 1:17 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:48
Sarath C26-Jun-06 1:48 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:55
Sangeetha Jayaraman26-Jun-06 1:55 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 2:08
Sarath C26-Jun-06 2:08 
Questionhow to set background color to the Dlg?? Pin
mimimimilaw25-Jun-06 22:17
mimimimilaw25-Jun-06 22:17 
AnswerRe: how to set background color to the Dlg?? Pin
lidujun200825-Jun-06 22:30
lidujun200825-Jun-06 22:30 
GeneralRe: how to set background color to the Dlg?? Pin
lidujun200825-Jun-06 22:34
lidujun200825-Jun-06 22:34 

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.