📄 dlg.h
字号:
// Dlg.h: interface for the CDlg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DLG_H__C48CD184_4662_11D5_8DCF_ADB8C56AA13D__INCLUDED_)
#define AFX_DLG_H__C48CD184_4662_11D5_8DCF_ADB8C56AA13D__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "WinContainer.h"
class CDlg : public CAbProcClient
{
public:
virtual LRESULT Proc(HWND h,UINT m,WPARAM w,LPARAM l) { return DlgProc(h,m,w,l); }
virtual const char *GetDesc() const { return "CDlg"; }
private:
string m_strModName;
HWND m_hWnd,m_hParWnd;
HMODULE m_hMod;
public:
CDlg(const char* sz) : CAbProcClient(),m_hWnd(0),m_hParWnd(0),m_strModName(sz),
m_hMod(0) {}
virtual ~CDlg();
virtual LRESULT DlgProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
virtual void Create(const char *szRes,HWND hPar,LPARAM lParam);
virtual void PostCreate();
virtual void DeInit();
//
const HWND GetWndHandle() const { return m_hWnd; }
const HWND GetParHandle() const { return m_hParWnd; }
bool IsWindow() const { return (m_hWnd != 0)?true:false; }
void ShowWindow() const { ::ShowWindow(m_hWnd,SW_SHOW); }
void HideWindow() const { ::ShowWindow(m_hWnd,SW_HIDE); }
public:
const char *GetModuleName() const { return m_strModName.c_str(); }
public:
virtual bool OnWMInitDialog(HWND,HWND,long);
virtual bool OnClickOK();
virtual bool OnClickCancel();
virtual bool OnWMCommand(int id,HWND,int);
};
class CDlgProc : public CAbProcData
{
public:
CDlgProc() : CAbProcData() {};
CDlgProc(CDlg *pC,HWND hWnd) : CAbProcData(pC,hWnd) {};
virtual ~CDlgProc() {};
};
#endif // !defined(AFX_DLG_H__C48CD184_4662_11D5_8DCF_ADB8C56AA13D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -