SimpleWindow
载入中...
搜索中...
未找到
Animation.h
1#pragma once
2
3#include "Control.h"
4#include <CommCtrl.h>
5
6namespace sw
7{
11 class Animation : public Control
12 {
13 public:
18
23
28
29 public:
34
41 bool Open(HINSTANCE hInstance, int resourceId);
42
48 bool Open(const std::wstring &fileName);
49
55 bool Open(const wchar_t *fileName);
56
64 bool Play(int times, int beginFrame, int endFrame);
65
71 bool Play(int times = -1);
72
77 bool Stop();
78 };
79}
动画控件,仅支持无音频的avi动画
Definition Animation.h:12
bool Play(int times=-1)
播放动画
const Property< bool > AutoPlay
是否在打开avi文件后自动播放
Definition Animation.h:22
bool Open(const std::wstring &fileName)
从本地文件打开avi动画
bool Stop()
停止播放
const ReadOnlyProperty< bool > IsPlaying
动画是否正在播放
Definition Animation.h:27
bool Open(const wchar_t *fileName)
从本地文件打开avi动画,传入nullptr可以关闭打开的动画
Animation()
初始化动画控件
const Property< bool > Center
是否将动画居中显示
Definition Animation.h:17
bool Open(HINSTANCE hInstance, int resourceId)
从指定模块中打开avi动画
bool Play(int times, int beginFrame, int endFrame)
播放动画
控件
Definition Control.h:12
属性
Definition Property.h:1743
只读属性
Definition Property.h:1828