📄 prlistviewdialog.h
字号:
/* * * prlistviewdialog.h * Copyright (C) 2006 Michael H. Overlin This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Contact at poster_printer@yahoo.com * */#ifndef PRLISTVIEWDIALOG_H#define PRLISTVIEWDIALOG_H#include "..\lib\listviewwindow.h"#include "..\lib\dialogwindow.h"#include "prrulerdrawerprovider.h"#include <windows.h>class PRListViewDialog : public DialogWindow {public: PRListViewDialog(IN HINSTANCE hinst, IN WORD wTemplateID); ~PRListViewDialog(); BOOL HasList(void) const { return m_plvw->GetList() != NULL; } const ::ListViewWindow* GetListViewWindow(void) const { return m_plvw; } ::ViewableList* SetList(::ViewableList *pvl, const ::RulerDrawerProvider *prdp, ListViewWindow::ArrowSelectionMode arrowSelMode, const SIZED& szdMinSelectionBox) ; //void SetNoSelectionBox(void) { m_plvw->SetNoSelectionBox(); } void SetArrowSelectionBox(IN BOOL bSelection, IN const RECTD *prdSelection, IN BOOL bSendNotification = FALSE); HWND AddListViewNotifyTarget(HWND hwndTarget) { return m_plvw->AddArgumentAsNotifyTarget(hwndTarget); } BOOL HasSelectionItems(void) const { return m_plvw->HasSelectionItems(); } const std::vector<uint>& GetSelectionItems(void) const { return m_plvw->GetSelectionItems(); } void GetItemPointsInMosaic(std::vector<POINT>& vptPages, BOOL bSelected) const ; void SetCursorType(::ListViewWindow::CursorType ct); void SetInfoText(LPCTSTR lptstrLabel, int iIndex);protected: virtual BOOL InitMsg(WPARAM wParam, LPARAM lParam); virtual BOOL CommandMsg(WPARAM wParam, LPARAM lParam); virtual BOOL NotifyMsg(WPARAM wParam, LPARAM lParam) ; virtual BOOL ScrollMsg(UINT msg, WPARAM wParam, LPARAM lParam);private: void CalculateZoomScale(void); void SetButtonsForListViewCursorType(::ListViewWindow::CursorType ct); ListViewWindow *m_plvw; HCURSOR m_hcursHand; HCURSOR m_hcursDottedSel; HCURSOR m_hcursBoxSel; //7/3 double m_dZoomOutMin; double m_dZoomOutMax;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -