?? shellview.h
字號:
// ShellView.h : interface of the CShellView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHELLVIEW_H__C54F7644_DDF0_4AC6_8069_04D68F2B4C73__INCLUDED_)
#define AFX_SHELLVIEW_H__C54F7644_DDF0_4AC6_8069_04D68F2B4C73__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CShellView : public CEditView
{
protected: // create from serialization only
CShellView();
DECLARE_DYNCREATE(CShellView)
// Attributes
public:
CShellDoc* GetDocument();
// Operations
public:
void GetUserInput( CString& input );
void AddTexts( LPCTSTR string );
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CShellView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CShellView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
BOOL CreateShellRedirect();
//{{AFX_MSG(CShellView)
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void AddTexts( TCHAR ch );
void WriteToPipe(LPCTSTR line);
BOOL CreateChildProcess(DWORD& dwProcessId);
static UINT ReadPipeThreadProc( LPVOID pParam );
private:
int GetSelLength();
int GetCurrentPosition();
void MoveToEnd();
int m_nLength;
private:
HANDLE hChildStdinRd, hChildStdinWr, hChildStdinWrDup,
hChildStdoutRd, hChildStdoutWr, hChildStdoutRdDup,
hSaveStdin, hSaveStdout;
CWinThread* m_pReadThread;
DWORD dwProcessId;
LOGFONT m_lf;
CFont m_defFont;
};
#ifndef _DEBUG // debug version in ShellView.cpp
inline CShellDoc* CShellView::GetDocument()
{ return (CShellDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SHELLVIEW_H__C54F7644_DDF0_4AC6_8069_04D68F2B4C73__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -