Click here to Skip to main content
15,792,657 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog as TopLevel window Pin
mav.northwind1-Jun-06 23:30
mav.northwind1-Jun-06 23:30 
GeneralRe: Dialog as TopLevel window [modified] Pin
mav.northwind2-Jun-06 0:04
mav.northwind2-Jun-06 0:04 
GeneralRe: Dialog as TopLevel window [modified] Pin
Viorel.2-Jun-06 0:41
Viorel.2-Jun-06 0:41 
GeneralRe: Dialog as TopLevel window [modified] Pin
mav.northwind2-Jun-06 6:31
mav.northwind2-Jun-06 6:31 
QuestionForm's Button not responding Pin
Y_Kaushik1-Jun-06 22:39
Y_Kaushik1-Jun-06 22:39 
QuestionRe: Form's Button not responding Pin
Hamid_RT1-Jun-06 23:35
Hamid_RT1-Jun-06 23:35 
QuestionCustomize ColorDialog Pin
velayudhan_raj1-Jun-06 22:21
velayudhan_raj1-Jun-06 22:21 
AnswerRe: Customize ColorDialog Pin
Hamid_RT1-Jun-06 22:37
Hamid_RT1-Jun-06 22: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 sreekumar2-Jun-06 0:31
suja sreekumar2-Jun-06 0:31 
GeneralRe: Customize ColorDialog Pin
Hamid_RT2-Jun-06 2:08
Hamid_RT2-Jun-06 2:08 
QuestionUser interface problem -- check a point is inside a polygon or not Pin
George_George1-Jun-06 22:15
George_George1-Jun-06 22:15 
AnswerRe: User interface problem -- check a point is inside a polygon or not Pin
Stephen Hewitt1-Jun-06 22:20
Stephen Hewitt1-Jun-06 22:20 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 22:50
George_George1-Jun-06 22:50 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
Cedric Moonen1-Jun-06 22:57
Cedric Moonen1-Jun-06 22:57 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 23:09
George_George1-Jun-06 23:09 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
Stephen Hewitt1-Jun-06 23:10
Stephen Hewitt1-Jun-06 23:10 
GeneralRe: User interface problem -- check a point is inside a polygon or not [modified] Pin
George_George1-Jun-06 23:32
George_George1-Jun-06 23:32 
Questionsorting vector that holds object Pin
voorugonda prashanth1-Jun-06 21:49
voorugonda prashanth1-Jun-06 21:49 
AnswerRe: sorting vector that holds object Pin
Stephen Hewitt1-Jun-06 22:13
Stephen Hewitt1-Jun-06 22:13 
AnswerRe: sorting vector that holds object [modified] Pin
Viorel.1-Jun-06 22:29
Viorel.1-Jun-06 22:29 
AnswerRe: sorting vector that holds object Pin
toxcct1-Jun-06 22:54
toxcct1-Jun-06 22:54 
QuestionHow to draw line graph without using MsExcel Pin
MikeRT1-Jun-06 21:39
MikeRT1-Jun-06 21:39 
AnswerRe: How to draw line graph without using MsExcel Pin
Cedric Moonen1-Jun-06 22:09
Cedric Moonen1-Jun-06 22:09 
QuestionIcon added to system trat but popup menu not disappear if I click somewhere else Pin
zahid_ash1-Jun-06 21:38
zahid_ash1-Jun-06 21:38 
AnswerRe: Icon added to system trat but popup menu not disappear if I click somewhere else Pin
Hamid_RT1-Jun-06 21:47
Hamid_RT1-Jun-06 21: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.