资源简介

Visual C++程序设计学习笔记 电子工业出版社 只有2-12章才有源码

资源截图

代码片段和文件信息

// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “Mysdi.h“

#include “MainFrm.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMainframe

IMPLEMENT_DYNCREATE(CMainframe CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

static UINT indicators[] =
{
ID_SEPARATOR           // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};

/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction

CMainframe::CMainframe()
{
// TODO: add member initialization code here

}

CMainframe::~CMainframe()
{
}

int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1;      // fail to create
}

// TODO: Delete these three lines if you don‘t want the toolbar to
//  be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

return 0;
}

BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
//  the CREATESTRUCT cs

return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics

#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}

void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers


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

     文件        205  2007-12-12 10:58  chapter2-12\chapter12\Readme.txt

     文件         29  2007-04-22 11:00  chapter2-12\chapter12\运行程序\loginmsg.msg

    ..A..H.     52224  2007-08-06 08:20  chapter2-12\chapter12\运行程序\picture\Thumbs.db

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\bgbmp.bmp

     文件    1440056  2004-05-14 22:44  chapter2-12\chapter12\运行程序\picture\bgpicture.bmp

     文件    1432864  2004-05-15 20:04  chapter2-12\chapter12\运行程序\picture\login.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer1.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer2.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer3.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer4.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer5.bmp

     文件     720056  2004-05-14 22:40  chapter2-12\chapter12\运行程序\picture\singer6.bmp

     文件    1048576  2007-03-09 22:14  chapter2-12\chapter12\数据库\song_Data.MDF

     文件    1048576  2007-03-09 22:14  chapter2-12\chapter12\数据库\song_Log.LDF

     文件      10250  2007-04-12 21:50  chapter2-12\chapter12\songserver\AddRecord.cpp

     文件       1411  2007-04-12 21:50  chapter2-12\chapter12\songserver\AddRecord.h

     文件       2372  2007-04-15 14:18  chapter2-12\chapter12\songserver\BackupRestoreDB.cpp

     文件       1568  2004-05-13 15:15  chapter2-12\chapter12\songserver\BackupRestoreDB.h

     文件       1436  2004-05-13 16:07  chapter2-12\chapter12\songserver\ConnectDB.cpp

     文件       1369  2004-05-13 03:26  chapter2-12\chapter12\songserver\ConnectDB.h

     文件       1536  2004-05-14 00:00  chapter2-12\chapter12\songserver\Login.cpp

     文件       1310  2004-05-13 23:56  chapter2-12\chapter12\songserver\Login.h

     文件       7448  2007-04-13 23:28  chapter2-12\chapter12\songserver\MainFrm.cpp

     文件       2033  2004-05-25 13:47  chapter2-12\chapter12\songserver\MainFrm.h

     文件       1434  2004-04-27 22:50  chapter2-12\chapter12\songserver\MyStatusBar.cpp

     文件       1189  2004-04-25 20:17  chapter2-12\chapter12\songserver\MyStatusBar.h

     文件       4407  2004-05-10 10:01  chapter2-12\chapter12\songserver\ReadMe.txt

     文件       2579  2004-05-14 17:49  chapter2-12\chapter12\songserver\Resource.h

     文件       9123  2008-03-20 16:24  chapter2-12\chapter12\songserver\ServerSocket.cpp

     文件       1490  2007-04-19 15:01  chapter2-12\chapter12\songserver\ServerSocket.h

............此处省略1210个文件信息

评论

共有 条评论