23 TControl(parent, id,
_T(
""), x, y, w, h, module)
26 Attr.Style = WS_CHILD | WS_VISIBLE | ACS_CENTER | ACS_TRANSPARENT;
69 const auto moduleHandle =
module ? module->GetHandle() :
70 GetModule() ? GetModule()->GetHandle() :
103 return Play(frame, frame, 0);
Definition of class TAnimateCtrl.
#define TRACEX(group, level, message)
bool Seek(uint16 frame)
Seek to frame index 'frame'.
virtual auto GetWindowClassName() -> TWindowClassName
Returns the predefined class registered by the Common Control library for the Animation control.
bool Play(uint16 start=0, uint16 end=-1, uint repeat=1)
Plays the .AVI file from frame index 'start' to frame index 'end'.
bool Open(LPCTSTR fileOrRes, TModule *module=nullptr)
Opens an .AVI file and displays the first frame.
void Stop()
Stops playing the current AVI file.
~TAnimateCtrl()
Destructor.
TAnimateCtrl(TWindow *parent, int id, int x, int y, int w, int h, TModule *module=nullptr)
Constructor for a TAnimateCtrl to be associated with a new underlying control.
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
Object Windows Library (OWLNext Core).
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
uint32 MkUint32(uint16 lo, uint16 hi)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
DIAG_DECLARE_GROUP(OwlThread)