⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filetransferkitview.h

📁 IC卡读写 IC卡读写 IC卡读写
💻 H
字号:
// FileTransferKitView.h : interface of the CFileTransferKitView class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once

#include "TransferLog.h"

class CFileTransferKitView : public CWindowImpl<CFileTransferKitView, CListViewCtrl>
{
    typedef CWindowImpl<CFileTransferKitView, CListViewCtrl> Base;
    static const int IconWidth = 33;  /**< Width of type icon. */
    static const int TypeWidth = 50;  /**< Width of type text. */

public:  // Operation
    void AddTransferLog(const TransferLog & log);

public:
	DECLARE_WND_SUPERCLASS(NULL, CListViewCtrl::GetWndClassName())

	BOOL PreTranslateMessage(MSG* pMsg);

    HWND Create(HWND parent, const ATL::_U_RECT & rect);

    BEGIN_MSG_MAP(CFileTransferKitView)
        MSG_WM_SIZE(OnSize)
    END_MSG_MAP()

private:
// Handler prototypes (uncomment arguments if needed):
// LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
// LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)

    void OnSize(UINT /*type*/, const CSize & /*size*/)
    {
        CRect rect;
        GetClientRect(rect);

        if (rect.Width() > IconWidth + TypeWidth)
        {
            SetColumnWidth(2, rect.Width() - IconWidth - TypeWidth);
        }
    }
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -