CSkinButton m_btClosee = new CSkinButton(); //关闭 ////标题栏重绘 //void CColorHeaderCtrl::OnPaint() //{ // CPaintDC dc(this); // CRect rect; // GetClientRect(rect); // dc.FillSolidRect(rect,RGB(70,76,79)); //重绘标题栏颜色 // int nItems = GetItemCount(); // CRect rectItem; // CPen m_pen(PS_SOLID,1,RGB(200,200,200)); //分隔线颜色 // CFont m_font; // m_font.CreatePointFont(90,TEXT("宋体")); //字体 // CPen * pOldPen = dc.SelectObject(&m_pen); // CFont * pOldFont=dc.SelectObject(&m_font); // dc.SetTextColor(RGB(200, 243, 39)); //字体颜色 // for(int i = 0; i <nItems; i++) //对标题的每个列进行重绘 // { // GetItemRect(i, &rectItem); // rectItem.top+=2; // rectItem.bottom+=2; // dc.MoveTo(rectItem.right,rect.top); //重绘分隔栏 // dc.LineTo(rectItem.right,rectItem.bottom); // TCHAR buf[256]; // HD_ITEM hditem; // hditem.mask = HDI_TEXT | HDI_FORMAT | HDI_ORDER; // hditem.pszText = buf; // hditem.cchTextMax = 255; // GetItem( i, &hditem ); //获取当然列的文字 // UINT uFormat = DT_SINGLELINE | DT_NOPREFIX | DT_TOP |DT_CENTER | DT_END_ELLIPSIS ; // dc.DrawText(buf, &rectItem, uFormat); //重绘标题栏的文字 // } // dc.SelectObject(pOldPen); // dc.SelectObject(pOldFont); // m_pen.DeleteObject(); // m_font.DeleteObject(); //} //BOOL CColorHeaderCtrl::OnEraseBkgnd(CDC* pDC) //{ // return true; //} //列表 //BEGIN_MESSAGE_MAP(CMyListCtrl, CListCtrl) // ON_WM_LBUTTONDOWN() //END_MESSAGE_MAP() //void CMyListCtrl::OnLButtonDown(UINT nFlags, CPoint point) //{ // //屏蔽鼠标操作 // return; //} // CDialogBetRecord 对话框 public DialogBetRecord() { InitializeComponent(); m_InfoFont.CreateFont(12, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, "宋体"); InitDialog(); }
CSkinButton m_btDetermine = new CSkinButton(); //确定 public DialogStatistics() { InitializeComponent(); m_InfoFont.CreateFont(12, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, TEXT("宋体")); //ZeroMemory(m_nWinCount, sizeof(m_nWinCount)); InitDialog(); }
CSkinButton m_btClosee = new CSkinButton(); //关闭 public DialogMessage() { InitializeComponent(); m_InfoFont.CreateFont(12, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, TEXT("宋体")); //ZeroMemory(m_szMessage,sizeof(m_szMessage)); InitDialog(); }
CSkinButton m_btOk = new CSkinButton(); //OK public DialogRecord() { InitializeComponent(); // modified by usc at 2013/07/21 m_InfoFont.CreateFont(10, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, TEXT("宋体")); m_lPlayerScore = 0; m_lAllBet = 0; m_lBetMumber = 0; InitDialog(); }
public CDialogPlayBet() { InitializeComponent(); //区域倍数 for (int i = 0; i < m_nMultiple.Length; ++i) { m_nMultiple[i] = 1; } m_InfoFont.CreateFont(12, 0, 0, 0, 400, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, "宋体"); m_MultipleFont.CreateFont(13, 0, 0, 0, 800, 0, 0, 0, 134, 3, 2, CFont.ANTIALIASED_QUALITY, 2, "宋体"); m_InfoBrush.CreateSolidBrush(CBrush.RGB(79, 87, 100)); GameGraphics.ZeroMemory(m_lLastRound); m_lPlayerScore = 0; m_lTheNote = 5; InitDialog(); }