字体选择
CHOOSEFONT结构体,用于ChooseFont函数选择字体的返回值
typedef struct tagCHOOSEFONTA {
DWORD lStructSize; //CHOOSE结构体的大小,sizeof(CHOOSEFONT)个字节大小
HWND hwndOwner; //指向所有者的对话框句柄,如果对话框没有所有者,可以设置为NULL
HDC hDC; // 绘图上下文环境
LPLOGFONTA lpLogFont; // 选中的字体的返回值 LOGFONT struct ,字体是逻辑字体
INT iPointSize; // 选中的字体的大小
DWORD Flags; // 字体位标记,用于初始化对话框
COLORREF rgbColors; // 字体的颜色
LPARAM lCustData; // 自定义数据
LPCFHOOKPROC lpfnHook; //钩子程序用的回调函数
LPCSTR lpTemplateName; // 指向一个以空字符结束的字符串,字符串是对话框模板资源的名字,资源保存在能被hInstance成员识别的模块中
HINSTANCE hInstance; // 实例句柄
// contains cust. dlg. template
LPSTR lpszStyle; // 字体风格
// must be LF_FACESIZE or bigger
WORD nFontType; // 字体类型
// call back with the extra FONTTYPE_
// bits added
WORD ___MISSING_ALIGNMENT__;
INT nSizeMin; // 字体允许的最小尺寸
INT nSizeMax; // 字体允许的最大尺寸
// 只有在CF_LIMITSIZE 标记被使用时,才会生效
} CHOOSEFONTA;
typedef struct tagCHOOSEFONTW {
DWORD lStructSize;
HWND hwndOwner; // caller's window handle
HDC hDC; // printer DC/IC or NULL
LPLOGFONTW lpLogFont; // ptr. to a LOGFONT struct
INT iPointSize; // 10 * size in points of selected font
DWORD Flags; // enum. type flags
COLORREF rgbColors; // returned text color
LPARAM lCustData; // data passed to hook fn.
LPCFHOOKPROC lpfnHook; /