#pragma comment(lib, "XCGUI.lib")
#include "xcgui.h"
HWINDOW hWindow=NULL;
HELE hButton=NULL;
int CALLBACK OnDrawButton(HDRAW hDraw, BOOL *pbHandled)
{
*pbHandled=TRUE;
RECT rect;
switch(nState)
{
break;
break;
break;
break;
break;
}
return 0;
}
int APIENTRY _tWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPTSTR lpCmdLine, int nCmdShow)
{
if(hWindow)
{
}
return 0;
}
@ textAlignFlag_vcenter
垂直居中
Definition: XCGUI.h:1707
@ textAlignFlag_center
水平居中
Definition: XCGUI.h:1703
#define XE_PAINT
元素绘制事件
Definition: XCGUI.h:778
void WINAPI XDraw_FillRect(HDRAW hDraw, RECT *pRect)
@绘制_填充矩形
Definition: DrawDC.cpp:2633
void WINAPI XDraw_DrawText(HDRAW hDraw, const wchar_t *pString, int nCount, RECT *pRect)
@绘制_文本指定矩形
Definition: DrawDC.cpp:3331
void WINAPI XDraw_SetTextAlign(HDRAW hDraw, int nFlags)
绘制_置文本对齐 设置文本对齐.
Definition: DrawDC.cpp:2556
void WINAPI XDraw_SetBrushColor(HDRAW hDraw, COLORREF color)
绘制_置画刷颜色 设置画刷颜色.
Definition: DrawDC.cpp:2536
BOOL WINAPI XEle_DrawFocus(HELE hEle, HDRAW hDraw, RECT *pRect)
元素_绘制焦点 绘制元素焦点.
Definition: EleUI.cpp:4543
void WINAPI XEle_GetClientRect(HELE hEle, __out RECT *pRect)
元素_取客户区坐标 获取元素客户区坐标.
Definition: EleUI.cpp:3610
void WINAPI XExitXCGUI()
炫彩_退出 退出界面库释放资源. 不可在dllmain()中卸载, 否则会死锁
Definition: App.cpp:572
void WINAPI XRunXCGUI()
炫彩_运行 运行消息循环,当炫彩窗口数量为0时退出.
Definition: App.cpp:564
BOOL WINAPI XInitXCGUI(BOOL bD2D)
炫彩_初始化 初始化界面库.
Definition: App.cpp:557
XEle_RegEventC(hEle, nEvent, memberFunction)
元素_注册事件C 注册元素事件, 回调函数省略元素自身句柄hEle.
HWINDOW WINAPI XWnd_Create(int x, int y, int cx, int cy, const wchar_t *pTitle, HWND hWndParent, int XCStyle)
窗口_创建 创建窗口
Definition: WindowUI.cpp:5964
void WINAPI XWnd_AdjustLayout(HWINDOW hWindow)
窗口_调整布局 调整窗口布局, 当窗口显示状态才有效.
Definition: WindowUI.cpp:6718
BOOL WINAPI XWnd_ShowWindow(HWINDOW hWindow, int nCmdShow)
@窗口_显示扩展 显示隐藏及控制窗口最大化还原等
Definition: WindowUI.cpp:6387