Button 动画按钮.
#pragma comment(lib, "XCGUI.lib")
#include "xcgui.h"
struct my_image_info
{
HIMAGE hImage1;
HIMAGE hImage2;
HIMAGE hImage3;
HIMAGE hImage4;
HIMAGE hImage5;
HIMAGE hImage6;
};
void CreateButton(int left,int top,my_image_info *pInfo,HWINDOW hWindow)
{
}
void CreateButtonLoop(int left,int top,my_image_info *pInfo,HWINDOW hWindow)
{
}
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
my_image_info info;
int left=20;
int top=50;
CreateButton(left,top,&info,hWindow); left+=50;
CreateButton(left,top,&info,hWindow); left+=50;
CreateButton(left,top,&info,hWindow); left+=50;
CreateButton(left,top,&info,hWindow); left+=50;
CreateButton(left,top,&info,hWindow); left+=50;
left=20; top=100;
CreateButtonLoop(left,top,&info,hWindow); left+=50;
CreateButtonLoop(left,top,&info,hWindow); left+=50;
CreateButtonLoop(left,top,&info,hWindow); left+=50;
CreateButtonLoop(left,top,&info,hWindow); left+=50;
CreateButtonLoop(left,top,&info,hWindow); left+=50;
return 0;
}
@ window_style_default
窗口样式-控制按钮: 居中 图标, 标题, 关闭按钮, 最大化按钮, 最小化按钮
Definition: XCGUI.h:398
HIMAGE WINAPI XImage_LoadFile(const wchar_t *pFileName)
图片_加载从文件 加载图片从文件.
Definition: ImageFrame.cpp:1014
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