ExtMdiWindowsListDlg.h
上传用户:sesekoo
上传日期:2020-07-18
资源大小:21543k
文件大小:4k
- // This is part of the Professional User Interface Suite library.
- // Copyright (C) 2001-2009 FOSS Software, Inc.
- // All rights reserved.
- //
- // http://www.prof-uis.com
- // mailto:support@prof-uis.com
- //
- // This source code can be used, modified and redistributed
- // under the terms of the license agreement that is included
- // in the Professional User Interface Suite package.
- //
- // Warranties and Disclaimers:
- // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND
- // INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY,
- // FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
- // IN NO EVENT WILL FOSS SOFTWARE INC. BE LIABLE FOR ANY DIRECT,
- // INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES,
- // INCLUDING DAMAGES FOR LOSS OF PROFITS, LOSS OR INACCURACY OF DATA,
- // INCURRED BY ANY PERSON FROM SUCH PERSON'S USAGE OF THIS SOFTWARE
- // EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
- #if (!defined __EXT_MDI_WINDOWS_LIST_DIALOG_H)
- #define __EXT_MDI_WINDOWS_LIST_DIALOG_H
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #if (!defined __EXT_MFC_NO_MDI_WINDOWS_LIST_DIALOG)
- #if (!defined __EXT_MFC_DEF_H)
- #include <ExtMfcDef.h>
- #endif // __EXT_MFC_DEF_H
- #if (!defined __EXT_RESIZABLE_DIALOG_H)
- #include <ExtResizableDialog.h>
- #endif
- #if (!defined __EXT_LABEL_H)
- #include <ExtLabel.h>
- #endif
- #if (!defined __EXT_NC_FRAME_H)
- #include <ExtNcFrame.h>
- #endif
- #if (!defined __EXT_SCROLLWND_H)
- #include <ExtScrollWnd.h>
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CExtMdiWindowsListDlg dialog
- #if (!defined __EXT_MFC_NO_NC_FRAME)
- #define __BASEOF_CExtMdiWindowsListDlg__ CExtNCW < CExtResizableDialog >
- #else
- #define __BASEOF_CExtMdiWindowsListDlg__ CExtResizableDialog
- #endif
- #if _MFC_VER == 0x700
- #ifndef __EXT_PROFUIS_STATIC_LINK
- template class __PROF_UIS_API __BASEOF_CExtMdiWindowsListDlg__;
- #endif // #ifndef __EXT_PROFUIS_STATIC_LINK
- #endif
- class __PROF_UIS_API CExtMdiWindowsListDlg
- : public __BASEOF_CExtMdiWindowsListDlg__
- {
- void _Init( HWND hMDIFrameWnd );
- // Construction
- public:
- DECLARE_DYNAMIC( CExtMdiWindowsListDlg );
- CExtMdiWindowsListDlg(
- CMDIFrameWnd * pMDIFrameWnd,
- CWnd * pParent = NULL
- );
- CExtMdiWindowsListDlg(
- HWND hMDIFrameWnd,
- CWnd * pParent = NULL
- );
- // Dialog Data
- //{{AFX_DATA(CExtMdiWindowsListDlg)
- CExtButton m_btnOk;
- CExtButton m_btnTileVert;
- CExtButton m_btnTileHorz;
- CExtButton m_btnSave;
- CExtButton m_btnMinimize;
- CExtButton m_btnCloseWindows;
- CExtButton m_btnCascade;
- CExtButton m_btnActivate;
- CExtLabel m_labelListWindows;
- //}}AFX_DATA
- CExtNCSB < CExtWFF < CListBox > > m_wndListWindows;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CExtMdiWindowsListDlg)
- public:
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void _SelectMDIActive();
- void _FillMDIWindowList();
- virtual void OnUpdateButtons();
- HICON m_hIcon;
- HWND m_hMDIFrameWnd;
- HWND m_hWndMDIClient;
- virtual bool OnQueryAutomaticRTLTransform() const
- {
- return true;
- }
-
- // Generated message map functions
- //{{AFX_MSG(CExtMdiWindowsListDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDIS);
- afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMIS);
- afx_msg int OnCompareItem(int nIDCtl, LPCOMPAREITEMSTRUCT lpCIS);
- afx_msg void OnSelchangeListboxWindows();
- afx_msg void OnDblclkListboxWindows();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- }; // class CExtMdiWindowsListDlg
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // (!defined __EXT_MFC_NO_MDI_WINDOWS_LIST_DIALOG)
- #endif // (!defined __EXT_MDI_WINDOWS_LIST_DIALOG_H)