From c1438d4ecf7d4715bb4c5892c816c790f86152c5 Mon Sep 17 00:00:00 2001 From: mjjo Date: Sat, 20 Jul 2013 23:24:50 +0000 Subject: [PATCH] --- HLStockWindow/HLStockWindowDlg.h | 71 ++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 HLStockWindow/HLStockWindowDlg.h diff --git a/HLStockWindow/HLStockWindowDlg.h b/HLStockWindow/HLStockWindowDlg.h new file mode 100644 index 0000000..93d1df1 --- /dev/null +++ b/HLStockWindow/HLStockWindowDlg.h @@ -0,0 +1,71 @@ +// HLStockWindowDlg.h : header file +// + +#if !defined(AFX_HLSTOCKWINDOWDLG_H__49C1E414_5CFF_4905_8A10_24397B98784B__INCLUDED_) +#define AFX_HLSTOCKWINDOWDLG_H__49C1E414_5CFF_4905_8A10_24397B98784B__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +///////////////////////////////////////////////////////////////////////////// +// CHLStockWindowDlg dialog + +class CHLStockWindowDlg : public CDialog +{ +// Construction +public: + CHLStockWindowDlg(CWnd* pParent = NULL); // standard constructor + +private: + BOOL m_bBkColorStat; // TRUE : Red color, FALSE : Blue color + CBrush m_brushRed, m_brushBlue; + HLSTOCKWINDOWDATA m_cpData; + + BOOL Running(); + + void SaveWindowPlacement(); + void RestoreWindowPlacement(); + +// void SetInfomation(CString strInfo, BOOL bBkColorStat ); + +public: +// Dialog Data + //{{AFX_DATA(CHLStockWindowDlg) + enum { IDD = IDD_HLSTOCKWINDOW_DIALOG }; + CEdit m_hInfomation; + //}}AFX_DATA + + // ClassWizard generated virtual function overrides + //{{AFX_VIRTUAL(CHLStockWindowDlg) + protected: + virtual void OnOK (); + virtual void OnCancel (); + virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support + virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); + //}}AFX_VIRTUAL + +// Implementation +protected: + HICON m_hIcon; + + // Generated message map functions + //{{AFX_MSG(CHLStockWindowDlg) + virtual BOOL OnInitDialog(); + afx_msg void OnPaint(); + afx_msg HCURSOR OnQueryDragIcon(); + afx_msg void OnSize(UINT nType, int cx, int cy); + afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); + afx_msg BOOL OnEraseBkgnd(CDC* pDC); + afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct); + afx_msg void OnClose(); + afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos); + //}}AFX_MSG + afx_msg void OnSysCommand(UINT nID, LPARAM lParam); + DECLARE_MESSAGE_MAP() +}; + +//{{AFX_INSERT_LOCATION}} +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. + +#endif // !defined(AFX_HLSTOCKWINDOWDLG_H__49C1E414_5CFF_4905_8A10_24397B98784B__INCLUDED_)