04创建插入符、输出不同效果的文字.docVIP

  • 7
  • 0
  • 约1.14万字
  • 约 7页
  • 2018-04-02 发布于江苏
  • 举报
04创建插入符、输出不同效果的文字

创建插入符、输出不同效果的文字 创建一个MFC单文档应用程序 创建插入符 在窗口创建完成之后,再创建插入符,在View类当中去完成,增加一个Windows Message Handle…..,WM_CREATE消息处理函数。 1.创建一个文字插入符 CClientDC dc(this);//构造一个DC /* The CClientDC class is derived from CDC and takes care of calling the Windows functionsGetDC at construction time andReleaseDC at destruction time. This means that the device context associated with a CClientDC object is the client area of a window. */ TEXTMETRIC tm; /* The TEXTMETRIC structure contains basic information about a physical font. All sizes are given in logical units; that is, they depend on the current mapping mode of the disp

文档评论(0)

1亿VIP精品文档

相关文档