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

📄 mypropertysheet2.cpp

📁 实时监控
💻 CPP
字号:
// MyPropertySheet2.cpp : implementation file
//

#include "stdafx.h"
#include "../Resource.h"
#include "Right_add_new.h"
#include "MyPropertySheet2.h"

#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMyPropertySheet2

IMPLEMENT_DYNAMIC(CMyPropertySheet2, CPropertySheet)

CMyPropertySheet2::CMyPropertySheet2(CWnd* pWndParent)
	 : CPropertySheet(IDS_PROPSHT_CAPTION, pWndParent)
{
	// Add all of the property pages here.  Note that
	// the order that they appear in here will be
	// the order they appear in on screen.  By default,
	// the first page of the set is the active one.
	// One way to make a different property page the 
	// active one is to call SetActivePage().

	AddPage(&m_Page1);
	AddPage(&m_Page2);
}

CMyPropertySheet2::~CMyPropertySheet2()
{

}


BEGIN_MESSAGE_MAP(CMyPropertySheet2, CPropertySheet)
	//{{AFX_MSG_MAP(CMyPropertySheet2)

		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
    ON_MESSAGE(ID_CLOSE_LOGWHOW,LogshowClose)
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CMyPropertySheet2 message handlers
LRESULT CMyPropertySheet2::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) 
{
    if(wParam==SC_CLOSE)
	{
		if(CRight_add_new::m_show_log_file)
		{
			CRight_add_new::m_show_log_file->DestroyWindow();
			delete CRight_add_new::m_show_log_file;
		}
		CRight_add_new::m_show_log_file = NULL;
		return 0;
	}
	return CPropertySheet::WindowProc(message, wParam, lParam);
}
LRESULT CMyPropertySheet2::LogshowClose(WPARAM , LPARAM)
{
	if(CRight_add_new::m_show_log_file)
		CRight_add_new::m_show_log_file->DestroyWindow();
   return 0;
}



⌨️ 快捷键说明

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