| 36 | DEFINE_ENUM_FLAG_OPERATORS(TabColumn); |
| 37 | |
| 38 | class CMainFrame : |
| 39 | public CFrameWindowImpl<CMainFrame>, |
| 40 | public CAutoUpdateUI<CMainFrame>, |
| 41 | public CMessageFilter, |
| 42 | public CIdleHandler, |
| 43 | public IMainFrame, |
| 44 | public IQuickFind |
| 45 | { |
| 46 | public: |
| 47 | DECLARE_FRAME_WND_CLASS(nullptr,IDR_MAINFRAME) |
| 48 | |
| 49 | CMainFrame() :m_TabCtrl(this) {}; |
| 50 | // ����������������ͣ�������ڹ��캯���г�ʼ�� |
| 51 | |
| 52 | const UINT TabId = 1234; |
| 53 | |
| 54 | virtual BOOL PreTranslateMessage(MSG* pMsg); |
| 55 | virtual BOOL OnIdle(); |
| 56 | // Inherited via IQuickFind |
| 57 | void DoFind(PCWSTR text, const QuickFindOptions& options) override; |
| 58 | void WindowClosed() override; |
| 59 | |
| 60 | // Inherited via IMainFrame |
| 61 | BOOL TrackPopupMenu(HMENU hMenu, HWND hWnd, POINT* pt = nullptr, UINT flags = 0) override; |
| 62 | HFONT GetMonoFont() override; |
| 63 | void ViewDestroyed(void*) override; |
| 64 | TraceManager& GetTraceManager() override; |
| 65 | BOOL SetPaneText(int index, PCWSTR text) override; |
| 66 | BOOL SetPaneIcon(int index, HICON hIcon) override; |
| 67 | CUpdateUIBase* GetUpdateUI() override; |
| 68 | |
| 69 | void UpdateUI(); |
| 70 | |
| 71 | void SetStartKey(const CString& key); |
| 72 | void SetStatusText(PCWSTR text); |
| 73 | |
| 74 | CUpdateUIBase* GetUIUpdate() { |
| 75 | return this; |
| 76 | } |
| 77 | |
| 78 | UINT TrackPopupMenu(CMenuHandle menu, int x, int y); |
| 79 | |
| 80 | bool CanPaste() const; |
| 81 | |
| 82 | LRESULT OnTcnSelChange(int /*idCtrl*/, LPNMHDR hdr, BOOL& /*bHandled*/); |
| 83 | |
| 84 | void CloseDialog(int nVal); |
| 85 | void OnGetMinMaxInfo(LPMINMAXINFO lpMMI); |
| 86 | |
| 87 | void InitProcessTable(); |
| 88 | void InitNetworkTable(); |
| 89 | void InitKernelModuleTable(); |
| 90 | void InitDriverTable(); |
| 91 | void InitServiceTable(); |
| 92 | void InitDriverInterface(); |
| 93 | void InitRegistryView(); |
| 94 | void InitDeviceView(); |
| 95 | void InitWindowsView(); |
nothing calls this directly
no outgoing calls
no test coverage detected