OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
animctrl.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
4//
5//
6/// \file
7/// Definition of class TAnimateCtrl
8//----------------------------------------------------------------------------
9
10#if !defined(OWL_ANIMCTRL_H)
11#define OWL_ANIMCTRL_H
12
13#include <owl/private/defs.h>
14#if defined(BI_HAS_PRAGMA_ONCE)
15# pragma once
16#endif
17
18#include <owl/defs.h>
19#include <owl/commctrl.h>
20
21
22namespace owl {
23
24#include <owl/preclass.h>
25
26/// \addtogroup commctrl
27/// @{
28
29//
30/// Encapsulates the Animation Control (a window that silently displays
31/// an Audio Video Interleaved, AVI clip).
32/// \note This control can only display uncompressed or RLE-compressed
33/// AVI files.
34//
36{
37 public:
38 TAnimateCtrl(TWindow* parent, int id, int x, int y, int w, int h,
39 TModule* module = nullptr);
40 TAnimateCtrl(TWindow* parent, int resourceId, TModule* module = nullptr);
42
43 // Operations on the object
44 //
45 bool Open(LPCTSTR fileOrRes, TModule* module=nullptr);
46 bool Open(const tstring& fileOrRes, TModule* module = nullptr) {return Open(fileOrRes.c_str(), module);}
47 bool Play(uint16 start = 0, uint16 end = -1, uint repeat = 1);
48 bool Seek(uint16 frame);
49 void Stop();
50
51 protected:
52 virtual auto GetWindowClassName() -> TWindowClassName;
53};
54
55/// @}
56
57#include <owl/posclass.h>
58
59
60} // OWL namespace
61
62
63#endif // OWL_ANIMCTRL_H
Encapsulates the Animation Control (a window that silently displays an Audio Video Interleaved,...
Definition animctrl.h:36
bool Open(const tstring &fileOrRes, TModule *module=nullptr)
Definition animctrl.h:46
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
Definition control.h:38
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition module.h:75
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition module.h:47
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition window.h:414
Definition of classes for CommonControl encapsulation.
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
unsigned short uint16
Definition number.h:33
std::string tstring
Definition defs.h:79
unsigned int uint
Definition number.h:25
General definitions used by all ObjectWindows programs.
#define _OWLCLASS
Definition defs.h:338