资源简介

资源是一个vs2008sp1 IDE中实现对话框(CDialog)的全屏显示,以及同时让对话框中控件居中显示的实例,可供参考。

资源截图

代码片段和文件信息


// Point25.cpp : 定义应用程序的类行为。
//

#include “stdafx.h“
#include “Point25.h“
#include “Point25Dlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CPoint25App

BEGIN_MESSAGE_MAP(CPoint25App CWinAppEx)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CPoint25App 构造

CPoint25App::CPoint25App()
{
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}


// 唯一的一个 CPoint25App 对象

CPoint25App theApp;


// CPoint25App 初始化

BOOL CPoint25App::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinAppEx::InitInstance();

AfxEnableControlContainer();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));

CPoint25Dlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用
//  “确定”来关闭对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用
//  “取消”来关闭对话框的代码
}

// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
//  而不是启动应用程序的消息泵。
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     105228  2012-04-11 16:56  Point25\Point25.aps

     文件       1666  2012-04-11 16:54  Point25\Point25.cpp

     文件        451  2012-04-11 16:54  Point25\Point25.h

     文件       5319  2012-04-11 16:56  Point25\Point25.rc

     文件        879  2012-04-11 16:54  Point25\Point25.sln

    ..A..H.     13312  2013-12-23 10:19  Point25\Point25.suo

     文件       5482  2012-04-11 16:56  Point25\Point25.vcproj

     文件       4278  2013-12-23 10:13  Point25\Point25Dlg.cpp

     文件        611  2012-04-11 16:56  Point25\Point25Dlg.h

     文件       2869  2012-04-11 16:54  Point25\ReadMe.txt

     文件      67777  2007-11-28 16:21  Point25\res\Point25.ico

     文件        363  2012-04-11 16:54  Point25\res\Point25.rc2

     文件        863  2012-04-11 16:56  Point25\resource.h

     文件        140  2012-04-11 16:54  Point25\stdafx.cpp

     文件       1854  2012-04-11 16:54  Point25\stdafx.h

     文件       1030  2012-04-11 16:54  Point25\targetver.h

     目录          0  2012-04-11 17:42  Point25\res

     目录          0  2013-12-24 10:42  Point25

----------- ---------  ---------- -----  ----

               212122                    18


评论

共有 条评论