CTitleOverlayProp.h
上传用户:hhs829
上传日期:2022-06-17
资源大小:586k
文件大小:2k
- //
- // CTitleOverlayProp.h
- //
- #ifndef __H_CTitleOverlayProp__
- #define __H_CTitleOverlayProp__
- #include "ITitleOverlay.h"
- class CTitleOverlayProp : public CBasePropertyPage
- {
- private:
- ITitleOverlay * mIOverlay;
- HWND m_hOverlayType;
- HWND m_hEditTilte;
- HWND m_hEditStartX;
- HWND m_hEditStartY;
- HWND m_hEditStartTime;
- HWND m_hEditEndTime;
- HWND m_hEditColorR;
- HWND m_hEditColorG;
- HWND m_hEditColorB;
- DWORD mTitleColor;
- LOGFONT mTitleFont;
- BOOL mIsFontChanged;
- public:
- static CUnknown * WINAPI CreateInstance(LPUNKNOWN lpunk, HRESULT *phr);
- DECLARE_IUNKNOWN;
- private:
- CTitleOverlayProp(LPUNKNOWN lpunk, HRESULT *phr);
- private:
- BOOL OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
- HRESULT OnConnect(IUnknown *pUnknown);
- HRESULT OnDisconnect();
- HRESULT OnActivate();
- HRESULT OnApplyChanges();
- void SetDirty();
- private:
- void FillOverlayTypeComboBox(void);
- int GetOverlayTypeComboIndex(int inType);
- void ReflectOverlayType(void);
- void ReflectOverlayStyle(void);
- void ReflectTitle(void);
- void ReflectTitleStartPosition(void);
- void ReflectTitleDuration(void);
- void ReflectTitleColor(void);
- void ReflectTitleColor(BYTE inR, BYTE inG, BYTE inB);
- void ReflectTitleFont(void);
- void EnterOverlayType(void);
- void EnterOverlayStyle(void);
- void EnterTitle(void);
- void EnterTitleStartPosition(void);
- void EnterTitleDuration(void);
- void EnterTitleColor(void);
- void EnterTitleFont(void);
- void OnButtonChangeFont(void);
- };
- #endif // __H_CTitleOverlayProp__