|
// TranslucentDialogLib.cpp
//
#include "stdafx.h"
#include "TranslucentDialogLib.h"
#include "DemoTranslucentDlg.h"
// CTranslucentApp
BEGIN_MESSAGE_MAP(CTranslucentApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
// CTranslucentApp ����
CTranslucentApp::CTranslucentApp()
{
}
CTranslucentApp theApp;
ULONG_PTR gdiplusToken;
BOOL CTranslucentApp::InitInstance()
{
CWinApp::InitInstance();
AfxEnableControlContainer();
Gdiplus::GdiplusStartupInput gdiplusStartupInput;
Gdiplus::GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
CDemoTranslucentDlg dlg(_T("res\\girl.png"));
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
int CTranslucentApp::ExitInstance()
{
Gdiplus::GdiplusShutdown(gdiplusToken);
return CWinApp::ExitInstance();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
D.K.Wang is working for a leading interactive entertainment media company located in Shanghai, China. Skilled in Windows C++, MFC, WTL, PHP etc. Started with professional games development since 2005, now devoted to the core functionality such as graphics rendering, physics simulation and scene management for a household game engine.