Sha256: 3539de3c22fb0f23242d9ec14985488ea6a9f3675367a89e0eb86fc9d5d14de5
Contents?: true
Size: 1.07 KB
Versions: 17
Compression:
Stored size: 1.07 KB
Contents
#pragma once enum eViewrWndMode { eConfigurable, eFullScreen }; struct IViewFinderCallBack { virtual void cancel()=0; virtual void captureImage()=0; virtual void close() =0; virtual void ResetViewerWndPos(RECT& pos)=0; }; class CViewFinder { private: IViewFinderCallBack* m_pCallBack; static HWND m_hwndPreview; static HWND m_PreviewWndParent; static HWND m_CancelButton; static HWND m_CaptureButton; HINSTANCE m_appInstance; HWND m_appMainWnd; public: CViewFinder(); void RegisterCallBack(IViewFinderCallBack* pCallBack); HWND CreateViewerWindow(RECT& pos, eViewrWndMode eMode); void DestroyViewerWindow(); void RepositionWindow(const RECT& pos); static LRESULT CALLBACK FullScreenWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam); HWND getViewerWndHandle(); void DisableFullScreenButtons(); protected: HWND createFullScreenWindow(HWND hwndParent, RECT& pos); HWND createPreviewWindow(HWND hwndParent, const RECT& pos); static void ReposFullScreen(RECT& pos); static bool GetPowerButtonPressedValue(); };
Version data entries
17 entries across 17 versions & 2 rubygems