⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chprop.h

📁 希望我上传的这些东西可以对搞编程的程序员有点小小的帮助!谢谢!
💻 H
字号:
/***********************************************************************
**      C P R O P . H												   *
**                                                                     *
************************************************************************
** Copyright (C) 1996 - 1999 Microsoft Corporation                         *
**                 All Rights Reserved                                 *
************************************************************************/
/*
        CPROP.H

        ChannelProperty record object class definitions for Microsoft Guide
*/


#ifndef _CPROP_H_
#pragma option push -b -a8 -pc -A- /*P_O_Push*/
#define _CPROP_H_


#include "dbsets.h"


/*

ChannelProperty objects are constructed from database records of the ChannelProperty table.

The CChannelPropertyRecordset class is used to select and create CChannelProperty objects
from the ChannelProperty table via functions in the CDatabaseRecordset parent class.

*/


class  COMMMSTVEXPORT CChannelPropertyRecordset : public CDatabaseRecordset
{
// This class provides ChannelProperty recordset manipulation via parent functions

virtual CString GetTableName( VOID);

virtual BOOL    SetRecordsetObject( VOID* cRecordsetObject);

public:
virtual VOID*   GetRecordsetObject( VOID);
virtual BOOLEAN Seek(LPCTSTR lpszComparison, CObject &coo);
};


class COMMMSTVEXPORT CChannelProperty : public CObject
{
    friend class CChannelPropertyRecordset; // generates the CChannelProperty record object

private:

    LONG            m_lChannelID;
    LONG            m_lBroadcastPropertyID;

public:

	CChannelProperty(LONG lChannelID = 0,
						LONG lBroadcastPropertyID = 0) :
					    m_lChannelID(lChannelID),
					    m_lBroadcastPropertyID(lBroadcastPropertyID) { }

	~CChannelProperty(VOID) { }


    VOID    SetChannelID( LONG lChannelID) { m_lChannelID = lChannelID; }
    VOID    SetBroadcastPropertyID( LONG lBroadcastPropertyID) { m_lBroadcastPropertyID = lBroadcastPropertyID; }

    LONG            ChannelID() { return m_lChannelID; }
    LONG            BroadcastPropertyID() { return m_lBroadcastPropertyID; }
};


// Table: Channel

#define  TBL_ChannelProperty  _T("[Channel Property]")

//      Field:                                        Name                          Type    	Size

#define FLD_ChannelProperty_ChannelID				_T("CP Channel ID")          	// Long		4
#define FLD_ChannelProperty_BroadcastPropertyID		_T("CP Broadcast Property ID") 	// Long		4

#pragma option pop /*P_O_Pop*/
#endif


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -