c++ Programming Glossary: cmydlg
Can a custom MFC window/dialog be a class template instantiation? http://stackoverflow.com/questions/3004870/can-a-custom-mfc-window-dialog-be-a-class-template-instantiation achieve Here's what I tried MyDlg.h template class W class CMyDlg public CDialog typedef CDialog super DECLARE_DYNAMIC CMyDlg.. public CDialog typedef CDialog super DECLARE_DYNAMIC CMyDlg W public CMyDlg CWnd pParent standard constructor virtual ~CMyDlg.. typedef CDialog super DECLARE_DYNAMIC CMyDlg W public CMyDlg CWnd pParent standard constructor virtual ~CMyDlg Dialog Data..
Handling WM_PAINT in a Subclassed CStatic Control http://stackoverflow.com/questions/7187072/handling-wm-paint-in-a-subclassed-cstatic-control dc.FillSolidRect rect RGB 120 255 0 And subclassed class CMyDlg public CDialog Construction CMyStatic my_static ... BOOL CCMyDlg.. public CDialog Construction CMyStatic my_static ... BOOL CCMyDlg OnInitDialog CDialog OnInitDialog my_static.SubclassDlgItem.. resource for this dialog. I wrote two button handlers void CMyDlg OnBnClickedOk my_static.EnableWindow FALSE my_static.Invalidate..
|