📄 duckint.cpp
字号:
// duckint.cpp: Implementation of CDuckInt
//
// This is a part of the Active Template Library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Active Template Library Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Active Template Library product.
#include "stdafx.h"
#include "resource.h"
#include "duckint.h"
#include "mydlg.h"
extern CMyDlg mydlg;
static void ShowStatus(LPCTSTR szWhosCalling)
{
HWND hwndStatus = mydlg.GetDlgItem(IDC_STATUS);
::SetWindowText(hwndStatus, szWhosCalling);
}
STDMETHODIMP CDuckInt::Quack(BSTR szWhosCalling)
{
USES_CONVERSION;
LPTSTR szCaller = COLE2T(szWhosCalling);
ShowStatus(szCaller);
return S_OK;
}
STDMETHODIMP CDuckInt::Flap(BSTR szWhosCalling)
{
USES_CONVERSION;
LPTSTR szCaller = COLE2T(szWhosCalling);
ShowStatus(szCaller);
return S_OK;
}
STDMETHODIMP CDuckInt::Paddle(BSTR szWhosCalling)
{
USES_CONVERSION;
LPTSTR szCaller = COLE2T(szWhosCalling);
ShowStatus(szCaller);
return S_OK;
}
STDMETHODIMP CDuckInt::Walk(BSTR szWhosCalling)
{
USES_CONVERSION;
LPTSTR szCaller = COLE2T(szWhosCalling);
ShowStatus(szCaller);
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -