00001 #pragma once
00002 #include "resource.h"
00003
00004 #include <commctrl.h>
00005
00006
00007 using namespace std;
00008
00009 class PropsTheoraEncoder
00010 : public CBasePropertyPage
00011 {
00012 public:
00013 static const UINT NOT_USED = 0;
00014 PropsTheoraEncoder(LPUNKNOWN inUnk, HRESULT* outHR);
00015 virtual ~PropsTheoraEncoder(void);
00016
00017 static CUnknown* WINAPI CreateInstance(LPUNKNOWN inUnk, HRESULT* outHR);
00018
00019
00020 HRESULT OnActivate(void);
00021 HRESULT OnConnect(IUnknown *pUnk);
00022 HRESULT OnDisconnect(void);
00023 INT_PTR OnReceiveMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
00024 HRESULT OnApplyChanges(void);
00025
00026 static unsigned long log2(unsigned long inNum);
00027 static unsigned long pow2(unsigned long inNum);
00028
00029 protected:
00030
00031
00032
00033
00034
00035
00036 void SetDirty();
00037 void SetClean();
00038
00039 ITheoraEncodeSettings* mTheoraEncodeSettings;
00040
00041
00042
00043
00044
00045 };