?? channels.cpp
字號:
// Channels.cpp : main source file for Channels.exe
//
#include "stdafx.h"
#include "resource.h"
#include "aboutdlg.h"
#include "MainDlg.h"
CAppModule _Module;
int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWNORMAL)
{
CMessageLoop theLoop;
_Module.AddMessageLoop(&theLoop);
CMainDlg dlgMain;
if(dlgMain.Create(NULL) == NULL)
{
ATLTRACE(_T("Main dialog creation failed!\n"));
return 0;
}
dlgMain.ShowWindow(nCmdShow);
int nRet = theLoop.Run();
_Module.RemoveMessageLoop();
return nRet;
}
BOOL ActivatePreviousInstance()
{
TCHAR TITLE[100] = {0};
::LoadString(_Module.m_hInstResource,IDR_MAINFRAME,TITLE,100);
HWND hwnd = ::FindWindow(NULL,TITLE);
if(NULL != hwnd)
{
return ::SetForegroundWindow(hwnd);
}
return false;
}
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
if(ActivatePreviousInstance())
{
return 0;
}
HRESULT hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
ATLASSERT(SUCCEEDED(hRes));
// Calling AtlInitCommonControls is not necessary to utilize picture,
// static text, edit box, group box, button, check box, radio button,
// combo box, list box, or the horizontal and vertical scroll bars.
// Calling AtlInitCommonControls with 0 is required to utilize the spin,
// progress, slider, list, tree, and tab controls.
// Adding the ICC_DATE_CLASSES flag is required to initialize the
// date time picker and month calendar controls.
// Add additional flags to support additoinal controls not mentioned above.
AtlInitCommonControls(ICC_DATE_CLASSES);
hRes = _Module.Init(NULL, hInstance);
ATLASSERT(SUCCEEDED(hRes));
int nRet = Run(lpstrCmdLine, nCmdShow);
_Module.Term();
::CoUninitialize();
return nRet;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -