// AppBarTest.cpp : main source file for AppBarTest.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) == 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));
// 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();
return nRet;
}
没有合适的资源?快使用搜索试试~ 我知道了~
MFC AppBar 侧边栏 demo
共15个文件
h:6个
cpp:3个
sln:1个
需积分: 12 7 下载量 122 浏览量
2018-01-05
17:50:37
上传
评论
收藏 34KB ZIP 举报
温馨提示
MFC下AppBar 侧边栏 demo,可以设置上、下、左、右靠边停靠。
资源推荐
资源详情
资源评论
收起资源包目录
AppBarTest.zip (15个子文件)
AppBarTest
AppBarTest.rc 9KB
Release
AppBarTest.exe 48KB
AppBarTest.sln 879B
AppBar.h 23KB
res
AppBarTest.ico 1KB
AppBarTest.exe.manifest 594B
AppBarTest.h 17B
AppBarTest.cpp 1KB
MainDlg.h 4KB
AboutDlg.h 1KB
stdafx.h 532B
MainDlg.cpp 53B
stdafx.cpp 287B
resource.h 960B
AppBarTest.vcproj 6KB
共 15 条
- 1
资源评论
vcipce
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功