📄 tbadderwnd.cpp
字号:
/***************************************************************************/
/* NOTE: */
/* This document is copyright (c) by Oz Solomonovich, and is bound by the */
/* MIT open source license (www.opensource.org/licenses/mit-license.html). */
/* See License.txt for more information. */
/***************************************************************************/
// TBAdderWnd.cpp : implementation file
//
#include "stdafx.h"
//#include "wtsdk_samp.h"
#include "TBAdderWnd.h"
#include "DSAddin.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern CDSAddIn* g_pDSAddin;
/////////////////////////////////////////////////////////////////////////////
// CTBAdderWnd
CTBAdderWnd::CTBAdderWnd()
{
}
CTBAdderWnd::~CTBAdderWnd()
{
}
BEGIN_MESSAGE_MAP(CTBAdderWnd, CWnd)
//{{AFX_MSG_MAP(CTBAdderWnd)
ON_WM_CLOSE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTBAdderWnd message handlers
void CTBAdderWnd::OnClose()
{
// the following code is here because calls to
// IApplication->AddCommandBarButton are not valid in
// CDSAddIn::OnConnection if bFirstTime isn't true.
// this is an alternate location for that call
g_pDSAddin->CreateToolbar();
CWnd::OnClose();
}
void CTBAdderWnd::PostNcDestroy()
{
CWnd::PostNcDestroy();
delete this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -