16#define BTN_SCOPE_PANE 3
17#define BTN_EXPORT_LIST 4
19#define BTN_ACTIONS_PANE 6
21#define MAX_RECENT_FILES 4
24 public CWindowImpl<CMainWnd>
95 static CWndClassInfo wc =
108 TEXT(
"MMCMainFrame"),
152 if (hWndMDIChild ==
NULL)
#define WM_USER_CLOSE_CHILD
#define IDM_MDI_FIRSTCHILD
enum _DOCUMENT_MODE DOCUMENT_MODE
#define IDM_WINDOWS_ARRANGE
#define IDM_VIEW_CUSTOMIZE
#define IDM_TB_ACTIONS_PANE
#define IDM_HELP_ABOUT_MMC
#define IDM_WINDOWS_CASCADE
#define IDM_TB_SCOPE_PANE
LRESULT OnFileRecent(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
void SetPreventViewCustomization(BOOL PreventCustomization)
CWndProcThunk m_FrameThunk
BOOL GetPreventViewCustomization()
LRESULT OnFileExit(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnWindowsCascade(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnDestroy(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CAtlString m_ConsoleTitle
HIMAGELIST m_hToolBarImageList
BOOL GetLogicalReadOnly()
static LRESULT CALLBACK XDefFrameProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LPWSTR ProgramModeToString()
CAtlString * GetConsoleTitle()
int RegisterView(CConsoleWnd *pView)
VOID SetToolBarVisible(BOOL bVisible)
VOID AddToRecentFiles(const CAtlString &FileName)
int GetSnapinCacheCount()
CAtlList< CRecentFileEntry * > m_RecentFilesList
LRESULT OnFileAdd(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileOptions(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnWindowsNew(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnCreate(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSnapin * GetRootSnapin()
void CreateNewConsoleTitle(CAtlString &str)
DWORD CreateNewFilename(PWSTR pBuffer, DWORD dwSize, DWORD Number)
LRESULT LoadMscFile(const CAtlString &FileName)
HMENU m_hMenuConsoleSmall
LRESULT OnFileSaveAs(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
static LPCTSTR GetWndClassName()
DOCUMENT_MODE GetDocumentMode()
CSnapinCacheEntry * GetSnapinCacheEntry(int nIndex)
HIMAGELIST SnapinImageList()
void UnregisterView(CConsoleWnd *pView)
HIMAGELIST m_hSnapinImageList
LRESULT LoadSnapinCache()
CConsoleWnd * GetActiveChildInfo()
LRESULT OnHelpAboutMMC(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
DOCUMENT_MODE m_DocumentMode
void SetLogicalReadOnly(BOOL LogicalReadOnly)
VOID UpdateRecentFilesMenu()
static CWndClassInfo & GetWndClassInfo()
LRESULT OnWindowsArrange(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CToolbar< DWORD_PTR > m_ToolBar
BOOL m_PreventViewCustomization
CSimpleArray< CSnapinCacheEntry * > m_SnapinCache
LRESULT OnViewCustomize(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
CAtlList< CConsoleWnd * > m_ViewList
HMENU m_hMenuConsoleLarge
BOOL m_bStandardMenusVisible
LRESULT OnCloseChild(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnWindowsTile(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
VOID SetStandardMenusVisible(BOOL bVisible)
LRESULT OnClose(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnFileSave(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileNew(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
BOOL AreStandardMenusVisible()
LRESULT OnToolbarScopePane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnFileOpen(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnToolbarActionsPane(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnSize(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMDIForward(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT SaveMscFile(const CAtlString &FileName)
void SetDocumentMode(DOCUMENT_MODE DocumentMode)
CSnapinCacheEntry * GetSnapinCacheEntryByGuid(PWSTR pszGuid)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
#define MESSAGE_HANDLER(msg, func)
#define BEGIN_MSG_MAP(theClass)
#define COMMAND_ID_HANDLER(id, func)
#define COMMAND_RANGE_HANDLER(idFirst, idLast, func)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define MAKEINTRESOURCE(i)
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
#define FORMAT_MESSAGE_FROM_STRING
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define FORMAT_MESSAGE_ARGUMENT_ARRAY