• 大小: 128KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-11
  • 语言: 其他
  • 标签: labview  

资源简介

在项目开发时,可能遇到动态创建控件的情况。如根据当前用户的数量,动态创建控件显示用户信息等情况,需要动态常见静态文本框和编辑框等,这里提供一个例程供大家参考。

资源截图

代码片段和文件信息


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

#include “stdafx.h“
#include “DynamicMultiCtrls.h“
#include “DynamicMultiCtrlsDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CDynamicMultiCtrlsApp

BEGIN_MESSAGE_MAP(CDynamicMultiCtrlsApp CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()


// CDynamicMultiCtrlsApp 构造

CDynamicMultiCtrlsApp::CDynamicMultiCtrlsApp()
{
// 支持重新启动管理器
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;

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


// 唯一的一个 CDynamicMultiCtrlsApp 对象

CDynamicMultiCtrlsApp theApp;


// CDynamicMultiCtrlsApp 初始化

BOOL CDynamicMultiCtrlsApp::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 In

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

     文件     106060  2017-12-11 17:21  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.aps

     文件       2136  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.cpp

     文件        508  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.h

     文件      10406  2017-12-11 17:21  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.rc

     文件       6011  2017-12-11 17:21  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.vcxproj

     文件       2058  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.vcxproj.filters

     文件        143  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrls.vcxproj.user

     文件       5532  2017-12-11 17:52  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrlsDlg.cpp

     文件        744  2017-12-11 17:18  DynamicMultiCtrls\DynamicMultiCtrls\DynamicMultiCtrlsDlg.h

     文件       3203  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\ReadMe.txt

    .......     67777  2009-08-31 02:31  DynamicMultiCtrls\DynamicMultiCtrls\res\DynamicMultiCtrls.ico

     文件        690  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\res\DynamicMultiCtrls.rc2

     文件       1472  2017-12-11 17:21  DynamicMultiCtrls\DynamicMultiCtrls\resource.h

     文件        150  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\stdafx.cpp

     文件       1632  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\stdafx.h

     文件        234  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\targetver.h

     文件        918  2017-12-11 17:05  DynamicMultiCtrls\DynamicMultiCtrls.sln

     目录          0  2017-12-11 17:04  DynamicMultiCtrls\DynamicMultiCtrls\res

     目录          0  2017-12-11 18:04  DynamicMultiCtrls\DynamicMultiCtrls

     目录          0  2017-12-11 18:04  DynamicMultiCtrls

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

               209674                    20


评论

共有 条评论