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

📄 tipdlg.h

📁 一个完整的编辑器的代码(很值得参考
💻 H
字号:
#ifndef __TIPDLG_H__INCLUDED__
#define __TIPDLG_H__INCLUDED__

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// tipdlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CTipDlg dialog

class EDITPADC_CLASS CTipDlg : public CDialog
{
// Construction
  public :
    CTipDlg (CWnd * pParent = NULL);    // standard constructor

// Dialog Data
  //{{AFX_DATA(CTipDlg)
  enum { IDD = IDD_TIP };
  BOOL m_bStartup;
  CString m_strTip;
  //}}AFX_DATA
  FILE *m_pStream;
  int m_id;

// Operations
  public :
  void RedrawCaption (void);

// Overrides
  // ClassWizard generated virtual function overrides
  //{{AFX_VIRTUAL(CTipDlg)
  protected :
  virtual void DoDataExchange (CDataExchange * pDX);    // DDX/DDV support

  virtual BOOL OnInitDialog ();
  //}}AFX_VIRTUAL

// Implementation
  public :
  virtual ~CTipDlg ();
  virtual int DoModal ();

  protected :
  // Generated message map functions
  //{{AFX_MSG(CTipDlg)
    afx_msg void OnNextTip ();
  afx_msg HBRUSH OnCtlColor (CDC * pDC, CWnd * pWnd, UINT nCtlColor);
  virtual void OnOK ();
  afx_msg void OnPaint ();
  afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct);
  //}}AFX_MSG
    DECLARE_MESSAGE_MAP ()

  void DoPaint (CDC * pdc, BOOL updatetext);

  void GetNextTipString (CString & strNext);
};

/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // __TIPDLG_H__INCLUDED__

⌨️ 快捷键说明

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