摘要: // TextEample.cpp : Defines the entry point for the application.//演示了如何创建复选框,下拉列表框,以及字体的使用。遍历系统字体。#include "stdafx.h"#include "resource.h"#include <stdio.h>#include <stdlib.h>#define MAX_LOADSTRING 100// Global Variables:HINSTANCE hInst;// current instanceTCHAR szTitl 阅读全文
posted @ 2007-04-02 16:28 巨巨 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 一、显示文本int DrawText(HDC hdc,LPCTSTR lpString,int nCount,LPRECT lpRect,UINTuFormat);//该函数在由lpRect参数指定的矩形中显示格式化的文本,可以调整左对齐、右对齐以及居中显示。BOOL TextOut(HDC hdc,int nXStart,int nYStart,LPCTSTR lpString,int cbString);//该函数用当前DC中选择的字体在指定的DC上显示字符串,参考点(nXStart,nYStart)的信息依赖于SetTextAlign设置的方式。BOOL GrayString(HDC h 阅读全文
posted @ 2007-04-02 14:38 巨巨 阅读(297) 评论(0) 推荐(0) 编辑