Play-/tools/MediaCenter/Source/win32ui/MainWindow.h
2019-08-17 11:03:53 -04:00

27 lines
578 B
C++

#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_
#include "win32/Window.h"
#include "FrameBufferWindow.h"
#include "../VideoDecoder.h"
#include <memory>
class CMainWindow : public Framework::Win32::CWindow
{
public:
CMainWindow();
virtual ~CMainWindow();
protected:
long OnCommand(unsigned short, unsigned short, HWND);
private:
void OnNewFrame(const Framework::CBitmap&);
void OnFileOpen();
CFrameBufferWindow* m_frameBufferWindow;
std::shared_ptr<CVideoDecoder> m_videoDecoder;
NewFrameEvent::Connection m_onNewFrameConnection;
};
#endif