?? staticfilespec.h
字號(hào):
/*
* StaticFilespec.h
*
*功能:靜態(tài)標(biāo)簽擴(kuò)展類,用來顯示長(zhǎng)路徑名
*
*/
#ifndef _StaticFilespec_h
#define _StaticFilespec_h
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CStaticFilespec window
class CStaticFilespec : public CWnd
{
// Construction
public:
CStaticFilespec
(DWORD dwFormat = DT_LEFT | DT_NOPREFIX | DT_VCENTER,
BOOL bPathEllipsis = FALSE);
// Attributes
public:
// Operations
public:
BOOL IsPath() { return m_bPathEllipsis; }
void SetPath (BOOL bPathEllipsis) { m_bPathEllipsis = bPathEllipsis; }
DWORD GetFormat() { return m_dwFormat; }
void SetFormat (DWORD dwFormat) { m_dwFormat = dwFormat; }
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStaticFilespec)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStaticFilespec();
// Generated message map functions
protected:
//{{AFX_MSG(CStaticFilespec)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg BOOL OnSetText (WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
BOOL m_bPathEllipsis; // flag: draw text as path
DWORD m_dwFormat; // text format
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif
// End StaticFilespec.h
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -