12#define DEFAULT_COLUMN0_WIDTH 200
35 _AtlWinModule.AddCreateWndData(&m_thunk.cd,
this);
226 if (
pt.x == -1 &&
pt.y == -1)
280 WCHAR WindowText[256];
310 LPWSTR pszText = pNM->item.pszText;
359 mcs.hOwner = _AtlBaseModule.GetModuleInstance();
367 mcs.lParam = bMaximized || !hWndOld;
409 Node->CacheEntry()->NormalImageIndex(),
410 Node->CacheEntry()->OpenImageIndex(),
492 int iTreeViewWidth, iTreeViewHeight;
493 int iListViewPosX, iListViewPosY = 0;
494 int iListViewWidth, iListViewHeight;
497 int iClientHeight =
Rect.bottom -
Rect.top;
498 int iClientWidth =
Rect.right -
Rect.left;
500 int iStatusHeight = 0;
502 int iDescriptionBarHeight = 0;
514 iListViewWidth = iClientWidth;
517 iTreeViewHeight = iClientHeight;
518 iListViewHeight = iClientHeight;
523 iTreeViewHeight -= iStatusHeight;
524 iListViewHeight -= iStatusHeight;
529 iDescriptionBarHeight = 24;
530 iListViewPosY += iDescriptionBarHeight;
531 iListViewHeight -= iDescriptionBarHeight;
540 m_StatusBar.MoveWindow(0, iClientHeight - iStatusHeight, iClientWidth, iStatusHeight);
543 m_TreeView.MoveWindow(0, 0, iTreeViewWidth, iTreeViewHeight);
546 m_ListView.MoveWindow(iListViewPosX, iListViewPosY, iListViewWidth, iListViewHeight);
649 INT *piScopePanelWidth,
650 INT *piActionsPanelWidth)
652 VARIANT ViewID, ScopePanel, ActionsPanel;
707 INT iScopePanelWidth = 0;
708 INT iActionsPanelWidth = 0;
716 ParseViewAttributes(mscFile, pViewElement, &uViewId, &iScopePanelWidth, &iActionsPanelWidth);
718 hr = pViewElement->get_childNodes(&pChildList);
735 hr = nextItem->get_baseName(&NodeName);
740 if (
_wcsicmp(NodeName,
L"BookMark") == 0)
761 pRootSnapin = pSnapin;
763 pRootSnapin = pSnapin;
772 else if (
_wcsicmp(NodeName,
L"ViewOptions") == 0)
774 VARIANT ViewMode, ScopePane, ActionsPane;
775 VARIANT DescriptionBar, Column0Width;
843 mcs.hOwner = _AtlBaseModule.GetModuleInstance();
848 pConsoleWnd =
new CConsoleWnd(pMainWnd, pRootSnapin, pSelectedSnapin);
856 mcs.lParam = bMaximized || !hWndOld;
893 *ppvObject =
static_cast<IConsole*
>(
this);
897 else if (
riid == IID_IConsole2)
899 *ppvObject =
static_cast<IConsole2*
>(
this);
903 else if (
riid == IID_IConsoleNameSpace)
909 else if (
riid == IID_IConsoleNameSpace2)
#define DEFAULT_COLUMN0_WIDTH
static struct myctx * mcs
#define WM_USER_CLOSE_CHILD
DWORD ViewModeToStyle(LISTVIEW_MODE ListViewMode)
LPWSTR ViewModeToString(LISTVIEW_MODE ListViewMode)
UINT ViewModeToCmdId(LISTVIEW_MODE ListViewMode)
LISTVIEW_MODE StringToViewMode(LPWSTR ViewMode)
BOOL StringToBool(_In_ LPWSTR pszString)
enum _LISTVIEW_MODE LISTVIEW_MODE
#define IDM_VIEW_LARGE_ICONS
#define IDM_TREEVIEW_CONTEXT
PXSTR GetString() noexcept
HWND Create(LPCTSTR lpstrWndClass, HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
BOOL SetWindowText(LPCTSTR lpszString)
BOOL GetWindowRect(LPRECT lpRect) const
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
LRESULT OnActionNewWindow(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
STDMETHODIMP GetParentItem(HSCOPEITEM item, HSCOPEITEM *pItemParent, LONG *plCookie)
static HRESULT ParseViewAttributes(MscFile *mscFile, IXMLDOMElement *pViewElement, UINT *puViewID, INT *piScopePanelWidth, INT *piActionsPanelWidth)
CConsoleWnd(CMainWnd *MainWnd, CSnapin *RootNode, CSnapin *SelectedNode=NULL)
LRESULT OnLButtonDown(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
VOID AddTreeViewItemRecursive(HTREEITEM hParentTreeItem, CSnapin *Node)
LISTVIEW_MODE m_ListViewMode
STDMETHODIMP AddExtension(HSCOPEITEM hItem, LPCLSID lpClsid)
LRESULT OnViewMode(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnMouseMove(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnDrawItem(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHODIMP UpdateAllViews(LPDATAOBJECT lpDataObject, LPARAM data, LONG_PTR hint)
STDMETHODIMP QueryResultImageList(LPIMAGELIST *ppImageList)
STDMETHODIMP DeleteItem(HSCOPEITEM hItem, LONG fDeleteThis)
STDMETHODIMP InsertItem(LPSCOPEDATAITEM item)
LRESULT OnCreate(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHODIMP Expand(HSCOPEITEM hItem, BOOL bExpand)
LRESULT OnActivate(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHODIMP SetStatusText(LPOLESTR pszStatusText)
VOID SetStatusBarText(LPWSTR pszStatusText)
VOID SetStatusBarVisible(BOOL bVisible)
LRESULT OnNotify(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LISTVIEW_MODE GetListViewMode()
STDMETHODIMP MessageBox(LPCWSTR lpszText, LPCWSTR lpszTitle, UINT fuStyle, int *piRetval)
static HRESULT ParseView(CMainWnd *pMainWnd, MscFile *mscFile, IXMLDOMElement *pViewElement)
VOID SetListViewMode(LISTVIEW_MODE ListViewMode)
SPLITTER_SIDE m_iSplitSide
STDMETHODIMP GetMainWindow(HWND *phwnd)
BOOL IsDescriptionBarVisible()
BOOL m_bActionsPaneVisible
CSnapin * m_ViewSelectedNode
STDMETHODIMP GetItem(LPSCOPEDATAITEM item)
STDMETHODIMP GetChildItem(HSCOPEITEM item, HSCOPEITEM *pItemChild, LONG *plCookie)
LRESULT OnContextMenu(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnLButtonUp(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL m_bDescriptionBarVisible
STDMETHODIMP SetHeader(LPHEADERCTRL pHeader)
STDMETHODIMP GetNextItem(HSCOPEITEM item, HSCOPEITEM *pItemNext, LONG *plCookie)
VOID SaveView(MscFile *mscFile, IXMLDOMElement *pParentElement)
VOID SetDescriptionBarVisible(BOOL bVisible)
STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject)
STDMETHODIMP QueryScopeImageList(LPIMAGELIST *ppImageList)
STDMETHODIMP SelectScopeItem(HSCOPEITEM hScopeItem)
LRESULT OnDestroy(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnViewCustomize(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
STDMETHODIMP QueryConsoleVerb(LPCONSOLEVERB *ppConsoleVerb)
LRESULT OnSize(UINT nMessage, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
STDMETHODIMP IsTaskpadViewPreferred()
STDMETHODIMP NewWindow(HSCOPEITEM hScopeItem, ULONG lOptions)
BOOL IsStatusBarVisible()
static LPCWSTR GetWndClassName()
STDMETHODIMP SetToolbar(LPTOOLBAR pToolbar)
STDMETHODIMP QueryResultView(LPUNKNOWN *pUnknown)
LRESULT OnActionRename(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
STDMETHODIMP SetItem(LPSCOPEDATAITEM item)
VOID SetActionsPaneVisible(BOOL bVisible)
VOID SetTreeViewVisible(BOOL bVisible)
BOOL IsActionsPaneVisible()
int GetColumnWidth(int iCol)
int InsertColumn(int iCol, LV_COLUMN *pcol)
HWND Create(HWND hWndParent, _U_RECT rect, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
BOOL SetColumnWidth(int iCol, int width)
VOID UpdateToolbuttons(BOOL bTreeViewVisible, BOOL bActionsPaneVisible)
VOID UpdateUpToolButton(BOOL bShow)
VOID UpdateAboutSnapinMenu(CSnapin *Snapin)
CSnapin * GetRootSnapin()
VOID UpdateViewMenu(LISTVIEW_MODE ListViewMode)
CSimpleMap< UINT, CSnapin * > * m_TempNodeMap
HIMAGELIST SnapinImageList()
LRESULT OnViewMode(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
LRESULT OnViewCustomize(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
VOID RegisterView(CConsoleWnd *pView)
VOID UnregisterView(CConsoleWnd *pView)
const CAtlString & DisplayName() const
void SetDisplayName(LPWSTR pszName)
VOID SetText(LPCWSTR lpszText)
HWND Create(HWND hwndParent, HMENU hMenu)
BOOL Expand(HTREEITEM item, DWORD action)
HIMAGELIST SetImageList(HIMAGELIST himl, int iImageList)
HWND Create(HWND hwndParent, DWORD dwStyles=0)
BOOL DeleteItem(HTREEITEM i)
BOOL SelectItem(HTREEITEM item, DWORD action=TVGN_CARET)
HTREEITEM HitTest(TVHITTESTINFO *phtInfo)
DWORD_PTR GetItemData(HTREEITEM item)
HTREEITEM AddItem(HTREEITEM hParent, LPWSTR lpText, INT Image, INT SelectedImage, LPARAM lParam)
HTREEITEM GetNextItem(HTREEITEM i, WORD flags)
HWND EditLabel(HTREEITEM i)
HRESULT SaveWindowPlacement(CWindow *pWindow, IXMLDOMElement *pParentNode)
HRESULT GetAttribute(IXMLDOMElement *pElement, LPWSTR pszAttributeName, VARIANT *pAttributeValue)
HRESULT CreateAndAddAttributeNode(PCWSTR wszName, PCWSTR wszValue, IXMLDOMElement *pParent)
HRESULT CreateAndAddElementNode(PCWSTR wszName, IXMLDOMNode *pParent, IXMLDOMElement **ppElement=NULL)
HRESULT WINAPI StringFromCLSID(REFCLSID clsid, LPOLESTR *str)
_ACRTIMP __msvcrt_ulong __cdecl wcstoul(const wchar_t *, wchar_t **, int)
_ACRTIMP __msvcrt_long __cdecl wcstol(const wchar_t *, wchar_t **, int)
_ACRTIMP int __cdecl _wtoi(const wchar_t *)
_ACRTIMP int __cdecl _wcsicmp(const wchar_t *, const wchar_t *)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
FxContextHeader * pHeader
HRESULT nextNode([retval, out] IXMLDOMNode **outNode)
PCONFIGURATION_COMPONENT_DATA RootNode
#define _swprintf(buf, format,...)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
enum tagDOMNodeType DOMNodeType
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
#define MAKEINTRESOURCE(i)
interface IDataObject * LPDATAOBJECT
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
#define TVN_BEGINLABELEDIT
#define TVS_SHOWSELALWAYS
#define TreeView_GetItemRect(hwnd, hitem, prc, code)
#define TreeView_SetItem(hwnd, pitem)
struct tagDRAWITEMSTRUCT * LPDRAWITEMSTRUCT
HWND WINAPI SetCapture(_In_ HWND hWnd)
DWORD WINAPI GetSysColor(_In_ int)
BOOL WINAPI ReleaseCapture(void)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
HWND WINAPI GetCapture(void)
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define MDIS_ALLCHILDSTYLES
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
BOOL WINAPI CheckMenuRadioItem(_In_ HMENU, _In_ UINT, _In_ UINT, _In_ UINT, _In_ UINT)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
void __cdecl __debugbreak(void)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)