//Using CFontDialog
void CColorDialogView::OnFont()
{
// TODO: Add your command handler code here
CFontDialog fnt;
fnt.DoModal();
ft.DeleteObject();
ft.CreateFontIndirect (fnt.m_cf.lpLogFont);
//kBC->TextOut (50,50,"AITS VC++",9);
//Invalidate();
}
void CColorDialogView::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CClientDC *kBC = new CClientDC (this);
//RedrawWindow();
kBC->SelectObject (&ft);
kBC->TextOut (point.x,point.y,"AITS VC++ dfgf",9);
CView::OnLButtonDown(nFlags, point);
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment