1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00
planetblupi/movie.h
Mathieu Schroeter 93047957fd Replace BOOL by bool
And replace structs that are stored from BOOL to int.
2017-01-22 00:15:32 +01:00

34 lines
725 B
C++

// movie.h
//
#pragma once
class CMovie
{
public:
CMovie();
~CMovie();
bool Create();
bool GetEnable();
bool IsExist(char *pFilename);
bool Play(HWND hWnd, RECT rect, char *pFilename);
void Stop(HWND hWnd);
protected:
void playMovie(HWND hWnd, int nDirection);
bool fileOpenMovie(HWND hWnd, RECT rect, char *pFilename);
void fileCloseMovie(HWND hWnd);
void positionMovie(HWND hWnd, RECT rect);
void termAVI();
bool initAVI();
protected:
bool m_bEnable;
MCIDEVICEID m_wMCIDeviceID; // MCI Device ID for the AVI file
HWND m_hwndMovie; // window handle of the movie
bool m_fPlaying; // Play flag: true == playing, false == paused
bool m_fMovieOpen; // Open flag: true == movie open, false = none
};