?? dt.cpp
字號(hào):
#include "stdafx.h"
#include "DT.h"
#include <stdio.h>
BOOL DebugTrace(LPCTSTR lpszFormat,...)
{
// no MFC used
static HWND hwnd = ::FindWindow(NULL,_T("DebugHelper "));
if(!IsWindow(hwnd))
hwnd = ::FindWindow(NULL,_T("DebugHelper "));
if(hwnd)
{
TCHAR szMsg[1000];
va_list argList;
va_start(argList, lpszFormat);
try
{
_vstprintf(szMsg,lpszFormat, argList);
}
catch(...)
{
_tcscpy(szMsg ,_T("DebugHelper輸出字符串格式錯(cuò)誤!"));
}
va_end(argList);
::SendMessage(hwnd,WM_SETTEXT,0,(LPARAM)(LPCTSTR)szMsg);
}
return TRUE;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -