#pragma comment(lib, "XCGUI.lib")
#include "xcgui.h"
class CMyEdit
{
public:
HWINDOW m_hWindow;
HELE m_hEdit;
CMyEdit() {
Init();
}
void Init()
{
int iStyle1 =
XEdit_AddStyleEx(m_hEdit, L
"微软雅黑", 16, xc_fontStyle_regular, COLORREF_MAKE(200, 0, 0,255), TRUE);
int iStyle2 =
XEdit_AddStyleEx(m_hEdit, L
"新宋体", 24, xc_fontStyle_regular, COLORREF_MAKE(0, 200, 0,255), TRUE);
}
};
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
CMyEdit MyWindow;
return 0;
}
@ window_style_default
窗口样式-控制按钮: 居中 图标, 标题, 关闭按钮, 最大化按钮, 最小化按钮
Definition: XCGUI.h:398
void WINAPI XEdit_AddTextEx(HELE hEle, const wchar_t *pString, int iStyle)
@编辑框_添加文本扩展
Definition: EditUI.cpp:7013
HELE WINAPI XEdit_Create(int x, int y, int cx, int cy, HXCGUI hParent)
@编辑框_创建 创建
Definition: EditUI.cpp:6572
void WINAPI XEdit_AddText(HELE hEle, const wchar_t *pString)
@编辑框_添加文本
Definition: EditUI.cpp:6992
void WINAPI XEdit_SetRowHeight(HELE hEle, int nHeight)
@编辑框_置默认行高
Definition: EditUI.cpp:7159
int WINAPI XEdit_AddStyleEx(HELE hEle, const wchar_t *fontName, int fontSize, int fontStyle, COLORREF color, BOOL bColor)
@编辑框_添加样式扩展
Definition: EditUI.cpp:7062
void WINAPI XEle_EnableKeyTab(HELE hEle, BOOL bEnable)
元素_启用接收TAB 启用接收Tab输入.
Definition: EleUI.cpp:4099
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
HWINDOW WINAPI XWnd_Create(int x, int y, int cx, int cy, const wchar_t *pTitle, HWND hWndParent, int XCStyle)
窗口_创建 创建窗口
Definition: WindowUI.cpp:5964
BOOL WINAPI XWnd_ShowWindow(HWINDOW hWindow, int nCmdShow)
@窗口_显示扩展 显示隐藏及控制窗口最大化还原等
Definition: WindowUI.cpp:6387