//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);
}
Showing posts with label OnFont(). Show all posts
Showing posts with label OnFont(). Show all posts
Wednesday, November 4, 2009
Subscribe to:
Posts (Atom)