Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog as TopLevel window Pin
mav.northwind1-Jun-06 22:30
mav.northwind1-Jun-06 22:30 
GeneralRe: Dialog as TopLevel window [modified] Pin
mav.northwind1-Jun-06 23:04
mav.northwind1-Jun-06 23:04 
GeneralRe: Dialog as TopLevel window [modified] Pin
Viorel.1-Jun-06 23:41
Viorel.1-Jun-06 23:41 
GeneralRe: Dialog as TopLevel window [modified] Pin
mav.northwind2-Jun-06 5:31
mav.northwind2-Jun-06 5:31 
QuestionForm's Button not responding Pin
Y_Kaushik1-Jun-06 21:39
Y_Kaushik1-Jun-06 21:39 
QuestionRe: Form's Button not responding Pin
Hamid_RT1-Jun-06 22:35
Hamid_RT1-Jun-06 22:35 
QuestionCustomize ColorDialog Pin
velayudhan_raj1-Jun-06 21:21
velayudhan_raj1-Jun-06 21:21 
AnswerRe: Customize ColorDialog Pin
Hamid_RT1-Jun-06 21:37
Hamid_RT1-Jun-06 21:37 
of course its not a good way but maybe its some helpful to you
<br />
class CMyDialog: public CColorDialog<br />
{<br />
public: <br />
	DECLARE_DYNCREATE(CMyDialog)<br />
	CMyDialog();<br />
	~CMyDialog();<br />
	DECLARE_MESSAGE_MAP()<br />
<br />
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);<br />
};<br />
<br />
<br />
<br />
<br />
IMPLEMENT_DYNCREATE(CMyDialog, CColorDialog)<br />
<br />
BEGIN_MESSAGE_MAP(CMyDialog, CColorDialog)<br />
	ON_WM_CTLCOLOR()<br />
END_MESSAGE_MAP()<br />
<br />
CMyDialog::CMyDialog()<br />
{<br />
<br />
}<br />
<br />
CMyDialog::~CMyDialog()<br />
{<br />
}<br />
<br />
<br />
HBRUSH CMyDialog::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<br />
{<br />
	HBRUSH hbr = CColorDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
LOGBRUSH logBrush;<br />
logBrush.lbStyle = BS_HATCHED;<br />
logBrush.lbColor = RGB(100, 192, 192);<br />
logBrush.lbHatch = HS_CROSS;<br />
if(pWnd==this)<br />
SetWindowText("Test");<br />
return CreateBrushIndirect(&logBrush);<br />
}<br />



whitesky


GeneralRe: Customize ColorDialog Pin
suja sreekumar1-Jun-06 23:31
suja sreekumar1-Jun-06 23:31 
GeneralRe: Customize ColorDialog Pin
Hamid_RT2-Jun-06 1:08
Hamid_RT2-Jun-06 1:08 
QuestionUser interface problem -- check a point is inside a polygon or not Pin
George_George1-Jun-06 21:15
George_George1-Jun-06 21:15 
AnswerRe: User interface problem -- check a point is inside a polygon or not Pin
Stephen Hewitt1-Jun-06 21:20
Stephen Hewitt1-Jun-06 21:20 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 21:50
George_George1-Jun-06 21:50 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
Cedric Moonen1-Jun-06 21:57
Cedric Moonen1-Jun-06 21:57 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 22:09
George_George1-Jun-06 22:09 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
Stephen Hewitt1-Jun-06 22:10
Stephen Hewitt1-Jun-06 22:10 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 22:32
George_George1-Jun-06 22:32 
Questionsorting vector that holds object Pin
voorugonda prashanth1-Jun-06 20:49
voorugonda prashanth1-Jun-06 20:49 
AnswerRe: sorting vector that holds object Pin
Stephen Hewitt1-Jun-06 21:13
Stephen Hewitt1-Jun-06 21:13 
AnswerRe: sorting vector that holds object [modified] Pin
Viorel.1-Jun-06 21:29
Viorel.1-Jun-06 21:29 
AnswerRe: sorting vector that holds object Pin
toxcct1-Jun-06 21:54
toxcct1-Jun-06 21:54 
QuestionHow to draw line graph without using MsExcel Pin
MikeRT1-Jun-06 20:39
MikeRT1-Jun-06 20:39 
AnswerRe: How to draw line graph without using MsExcel Pin
Cedric Moonen1-Jun-06 21:09
Cedric Moonen1-Jun-06 21:09 
QuestionIcon added to system trat but popup menu not disappear if I click somewhere else Pin
zahid_ash1-Jun-06 20:38
zahid_ash1-Jun-06 20:38 
AnswerRe: Icon added to system trat but popup menu not disappear if I click somewhere else Pin
Hamid_RT1-Jun-06 20:47
Hamid_RT1-Jun-06 20:47 

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.