Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
LedLineItMainFrame.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef __LedLineItMainFrame_h__
5#define __LedLineItMainFrame_h__ 1
6
7#include "Stroika/Frameworks/StroikaPreComp.h"
8
9DISABLE_COMPILER_MSC_WARNING_START (4459)
10#include <afxwin.h>
11DISABLE_COMPILER_MSC_WARNING_END (4459)
12
13#include "Stroika/Frameworks/Led/Support.h"
14
15#include "LedLineItConfig.h"
16
17class LedLineItMainFrame : public CMDIFrameWnd {
18private:
19 using inherited = CMDIFrameWnd;
20
21public:
22 LedLineItMainFrame ();
23
24protected:
25 DECLARE_DYNCREATE (LedLineItMainFrame)
26
27public:
28 nonvirtual bool GetStatusBarShown () const;
29 nonvirtual void SetStatusBarShown (bool shown);
30
31public:
32 nonvirtual void TrackInGotoLineField ();
33
34public:
35 class StatusBar : public CStatusBar {
36 private:
37 using inherited = CStatusBar;
38
39 public:
40 StatusBar ()
41 : CStatusBar ()
42 , fGotoEdit ()
43 {
44 }
45
46 protected:
47 afx_msg void OnLButtonDown (UINT nFlags, CPoint oPoint);
48 afx_msg void OnMagicLoseFocus ();
49 afx_msg void OnMagicEdited ();
50
51 protected:
52 nonvirtual void TrackInGotoLineField ();
53
54 public:
55 class GotoEdit : public CEdit {
56 public:
57 afx_msg UINT OnGetDlgCode ();
58 afx_msg void OnKeyDown (UINT nChar, UINT /*nRepCnt*/, UINT /*nFlags*/);
59 DECLARE_MESSAGE_MAP ()
60 };
61 GotoEdit fGotoEdit;
62
63 DECLARE_MESSAGE_MAP ()
64 friend class LedLineItMainFrame;
65 };
66 StatusBar fStatusBar;
67 CToolBar fToolBar;
68
69protected:
70 afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
71 afx_msg void OnInitMenuPopup (CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
72
73protected:
74 afx_msg void OnUpdateLineIndicator (CCmdUI* pCmdUI);
75 afx_msg void OnCloseWindowCommand ();
76 afx_msg void OnCloseAllWindowsCommand ();
77
78protected:
79 DECLARE_MESSAGE_MAP ()
80};
81
82/*
83 ********************************************************************************
84 ***************************** Implementation Details ***************************
85 ********************************************************************************
86 */
87inline LedLineItMainFrame::LedLineItMainFrame ()
88 : inherited ()
89 , fStatusBar ()
90 , fToolBar ()
91{
92}
93
94#endif /*__LedLineItMainFrame_h__*/