📄 transparent.cpp
字号:
// Transparent.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "Transparent.h"
#include "TransparentWnd.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTransparentApp
BEGIN_MESSAGE_MAP(CTransparentApp, CWinApp)
//{{AFX_MSG_MAP(CTransparentApp)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTransparentApp construction
CTransparentApp::CTransparentApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CTransparentApp object
CTransparentApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CTransparentApp initialization
BOOL CTransparentApp::InitInstance()
{
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T("Local AppWizard-Generated Applications"));
// To create the main window, this code creates a new frame window
// object and then sets it as the application's main window object.
CTransparentWnd* pFrame = new CTransparentWnd;
m_pMainWnd = pFrame;
// create and load the frame with its resources
CRect rect(15, 200, 315, 230);
pFrame->CreateTransparent(NULL,_T("Transparent Test"), rect, IDB_MASK1, IDB_BACK1);
// The one and only window has been initialized, so show and update it.
pFrame->ShowWindow(SW_SHOW);
pFrame->UpdateWindow();
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CTransparentApp message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -