11 class CLogList :
public CEdit, Base::CFLBase
20 virtual
void AddString(Base::CFLString<
wchar_t> str);
24 DeclareGetClassType();
27 CGUISplashWnd* m_pParent;
28 COLORREF m_clrLogText;
32 afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
35 class FL_EXPORT CGUISplashWnd :public CWnd
37 friend class CLogList;
40 virtual ~CGUISplashWnd();
45 ESplashScreenMenu_QuitProgram,
46 ESplashScreenMenu_QuitProgramYESNO,
47 ESplashScreenMenu_CloseSplashScreen,
52 ESplashScreenBtnStatus_Disable,
53 ESplashScreenBtnStatus_Enable,
54 ESplashScreenBtnStatus_Hide,
57 static BOOL ShowSplashScreen(
bool bShow);
58 static bool SetBitmapResourceID(UINT uBmpID);
59 static void SetTextColor(COLORREF clrText);
60 static void SetBkColor(COLORREF clrBk);
61 static bool SetStatusText(Base::CFLString<wchar_t> strStatus);
62 static void SetProgressBar(
bool bActivate);
63 static void SetProgressPos(
int nStartPos,
int nEndPos);
64 static void SetCloseButton(EBtnStatus eCloseBtn, EBehavior eCloseBehavior, COLORREF clrCloseBtn =
RGB(200, 200, 200));
65 static void SetTimeElapse(int32_t i32TimeElapse);
66 static void SetCloseTimer(
bool bSetTimer, UINT nTimeout);
67 static Base::CFLString<wchar_t> GetLogString();
70 BOOL PreTranslateMessage(MSG* pMsg);
73 afx_msg
void OnPaint();
74 afx_msg
void OnTimer(UINT_PTR nIDEvent);
75 afx_msg
void OnLButtonUp(UINT nFlags, CPoint point);
78 static BOOL Activate();
79 virtual
void PostNcDestroy();
80 virtual
void Close(EBehavior eCloseBehavior);
81 virtual
void OnClickShowLogView();
84 static BOOL m_bShowSplashWnd;
85 static CGUISplashWnd* m_pWnd;
86 static CProgressCtrl* m_pProgress;
87 static UINT m_uTimeOut;
88 static UINT m_uTimePast;
90 static
bool m_bActivateProgressBar;
91 static
bool m_bCloseTimer;
92 static COLORREF m_clrText;
93 static COLORREF m_clrBackground;
94 static COLORREF m_clrCloseBtn;
95 static Base::CFLString<
wchar_t> m_strStatus;
96 static Base::CFLString<
wchar_t> m_strPercent;
97 static Base::CFLString<
wchar_t> m_strLog;
98 static EBtnStatus m_eCloseBtn;
99 static EBehavior m_eTimeOutBehavior;
100 static EBehavior m_eCloseBtnBehavior;
101 static int32_t m_i32TimeElapse;
103 bool m_bProgressInverse;
105 CLogList* m_pLogView;
110 int32_t m_i32ImgWidth;
111 int32_t m_i32ImgHeight;
112 int32_t m_i32BtnSize;
113 int32_t m_i32BtnMargin;
114 int32_t m_i32ProgressPos;
116 CRect m_rtProgressBar;
117 CRect m_rtStatusText;
118 CRect m_rtShowLogText;
120 CRect m_rtPercentText;