📄 liveviewwtl.cpp
字号:
//-----------------------------------------------------------------------------
// (c) 2002 by Basler Vision Technologies
// Section: Vision Components
// Project: BCAM
// $Header: LiveViewWTL.cpp, 5, 26.11.2002 18:49:16, Happe, A.$
//-----------------------------------------------------------------------------
/**
\file LiveViewWTL.cpp
\brief Main source file for LiveViewWTL.exe
*/
#include "stdafx.h"
#include "resource.h"
#include "MainFrame.h"
#include "BitmapView.h"
//! The one and only application module
CAppModule _Module;
//! The function running the message loop
int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT)
{
CMessageLoop theLoop;
_Module.AddMessageLoop(&theLoop);
CMainFrame wndMain;
HANDLE hRes = wndMain.CreateEx();
ATLASSERT(hRes != NULL);
wndMain.ShowWindow(nCmdShow);
int nRet = theLoop.Run();
_Module.RemoveMessageLoop();
return nRet;
}
//! Windows entry function
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
INITCOMMONCONTROLSEX iccx;
iccx.dwSize = sizeof(iccx);
iccx.dwICC = ICC_COOL_CLASSES | ICC_BAR_CLASSES;
BOOL bRet = ::InitCommonControlsEx(&iccx);
bRet;
ATLASSERT(bRet);
HRESULT hRes = _Module.Init(NULL, hInstance);
hRes;
ATLASSERT(SUCCEEDED(hRes));
int nRet = Run(lpstrCmdLine, nCmdShow);
_Module.Term();
return nRet;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -