// CoolBlackDialog.cpp : main source file for CoolBlackDialog.exe
//
#include "stdafx.h"
#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include "resource.h"
#include "aboutdlg.h"
#include "MainDlg.h"
CAppModule _Module;
int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT)
{
CMessageLoop theLoop;
_Module.AddMessageLoop(&theLoop);
CMainDlg dlgMain;
if(dlgMain.Create(NULL, IDB_BKG) == NULL)
{
ATLTRACE(_T("Main dialog creation failed!\n"));
return 0;
}
dlgMain.ShowWindow(nCmdShow);
int nRet = theLoop.Run();
_Module.RemoveMessageLoop();
return nRet;
}
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int nCmdShow)
{
HRESULT hRes = ::CoInitialize(NULL);
// If you are running on NT 4.0 or higher you can use the following call instead to
// make the EXE free threaded. This means that calls come in on a random RPC thread.
// HRESULT hRes = ::CoInitializeEx(NULL, COINIT_MULTITHREADED);
ATLASSERT(SUCCEEDED(hRes));
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
// this resolves ATL window thunking problem when Microsoft Layer for Unicode (MSLU) is used
::DefWindowProc(NULL, 0, 0, 0L);
AtlInitCommonControls(ICC_BAR_CLASSES); // add flags to support other controls
hRes = _Module.Init(NULL, hInstance);
ATLASSERT(SUCCEEDED(hRes));
int nRet = Run(lpstrCmdLine, nCmdShow);
_Module.Term();
::CoUninitialize();
GdiplusShutdown(gdiplusToken);
return nRet;
}
moongoose_rmxming
- 粉丝: 75
- 资源: 19
最新资源
- PowerBI-svg 条形图v2
- 学术规范与论文写作:构建严谨学术生态的基石
- 画伯德图的代码,传递函数需要自己输入
- 三菱FX3U与3台力士乐VFC-x610变频器通讯程序 三菱FX3U与3台力士乐VFC-x610变频器通讯案例程序,有注释 并附送程序,有接线方式,设置 器件:三菱FX3U的PLC,3台力士乐VF
- saleor:一款兼容 Django 的电子商务平台
- 基恩士PLC KV8000+XH16EC总线控制,全ST程序实例,本人自己开发全程序无加密,公司级框架,功能齐全,提供项目源码框架FB源码,触摸屏源码 需要一定ST基础才能看懂 重在分享编程思想
- 012 - 电视机话题介绍.doc
- 014 - 服装行业直播FAB话术.docx
- 016 - 搞笑顺口溜通用大全.docx
- 017 - 搞笑一句话台词.docx
- 020 - 看完100场抖音网红直播之后,总结8大直播话术.docx
- 022 - 口腔学术活动微博直播话术.doc
- 023 - 快手搞笑直播台词.docx
- 021 - 抗日神剧搞笑台词大全.pdf
- 025 - 快手直播词和控场话术.docx
- 024 - 快手直播词.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
- 3
- 4
- 5
- 6
前往页