DrawFrameControl 绘制标准控件
BOOL DrawFrameControl(
HDC hDC, // 设备环境句柄
LPRECT lpRect, // 矩形区域
UINT nType, // 控件类型
UINT nState // 控件状态
);
// 控件类型 uType 参数
DFC_CAPTION = 1; // 标题
DFC_MENU = 2; // 菜单
DFC_SCROLL = 3; // 滚动条
DFC_BUTTON = 4; // 标准按钮
DFC_POPUPMENU = 5; // 弹出菜单
// DFC_CAPTION 控件状态 uState 参数
DFCS_CAPTIONCLOSE = 0;
DFCS_CAPTIONMIN = 1;
DFCS_CAPTIONMAX = 2;
DFCS_CAPTIONRESTORE = 3;
DFCS_CAPTIONHELP = 4;
// DFC_MENU 控件状态 uState 参数
DFCS_MENUARROW = 0;
DFCS_MENUCHECK = 1;
DFCS_MENUBULLET = 2;
DFCS_MENUARROWRIGHT = 4;
// DFC_SCROLL 控件状态 uState 参数
DFCS_SCROLLUP = 0;
DFCS_SCROLLDOWN = 1;
DFCS_SCROLLLEFT = 2;
DFCS_SCROLLRIGHT = 3;
DFCS_SCROLLCOMBOBOX = 5;
DFCS_SCROLLSIZEGRIP = 8;
DFCS_SCROLLSIZEGRIPRIGHT = 10;
// DFC_BUTTON 控件状态 uState 参数
DFCS_BUTTONCHECK = 0;
DFCS_BUTTONRADIOIMAGE = 1;
DFCS_BUTTONRADIOMASK = 2;
DFCS_BUTTONRADIO = 4;
DFCS_BUTTON3STATE = 8;
DFCS_BUTTONPUSH = 10;
// 控件状态 uState 通用参数
DFCS_INACTIVE = 100;
DFCS_PUSHED = 200;
DFCS_CHECKED = 400;
DFCS_TRANSPARENT = 800;
DFCS_HOT = 1000;
DFCS_ADJUSTRECT = 2000;
DFCS_FLAT = 4000;
DFCS_MONO = 8000;
posted on 2014-04-29 17:23 SpringStudio 阅读(1203) 评论(0) 编辑 收藏 举报