⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 splashwindow.cpp

📁 这是一些Huffman编码的代码
💻 CPP
字号:
// SplashWindow.cpp : implementation file
//

#include "stdafx.h"
#include "Huffman.h"
#include "SplashWindow.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSplashWindow

CSplashWindow::CSplashWindow()
{
	m_bBitmap.LoadBitmap(IDB_QIDONG);
}

CSplashWindow::~CSplashWindow()
{
}


BEGIN_MESSAGE_MAP(CSplashWindow, CWnd)
	//{{AFX_MSG_MAP(CSplashWindow)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CSplashWindow message handlers

void CSplashWindow::CreateSplash()
{
	CreateEx(0,
		     AfxRegisterWndClass(
			 0,
			 AfxGetApp()->LoadStandardCursor(IDC_UPARROW)),
			 "SplashWindow Sample",
			 WS_POPUP,
			 0,
			 0,
			 398,
             198, 
			 NULL,
			 NULL,
			 NULL);

}

void CSplashWindow::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	MemDC.CreateCompatibleDC(NULL); 
    MemDC.SelectObject(&m_bBitmap);
    dc.StretchBlt(0,
                0,
                398,
                198, 
                &MemDC, 
                0,
                0,
                398, 
                198,
                SRCCOPY);
    dc.Draw3dRect(0,0,398,198,RGB(0,0,0),RGB(0,0,0));
	// Do not call CWnd::OnPaint() for painting messages
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -