41 lines
1 KiB
C
41 lines
1 KiB
C
|
//=======================================================================
|
||
|
//
|
||
|
// Copyright (c) 2001 Microsoft Corporation. All Rights Reserved.
|
||
|
//
|
||
|
// File: AUCatItem.h
|
||
|
//
|
||
|
// Creator: PeterWi
|
||
|
//
|
||
|
// Purpose: AU Catalog Item
|
||
|
//
|
||
|
//=======================================================================
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include "AUBaseCatalog.h"
|
||
|
|
||
|
//const DWORD AUCATITEM_UNSELECTED = 0;
|
||
|
//const DWORD AUCATITEM_SELECTED = 1;
|
||
|
//const DWORD AUCATITEM_HIDDEN = 2;
|
||
|
|
||
|
struct CatalogItem
|
||
|
{
|
||
|
void init(PUID puid, DWORD index, DWORD dwStatus = AUCATITEM_SELECTED)
|
||
|
{
|
||
|
m_puid = puid;
|
||
|
m_dwStatus = dwStatus;
|
||
|
m_index = index;
|
||
|
}
|
||
|
void SetStatus(DWORD dwStatus) { m_dwStatus = dwStatus; }
|
||
|
void SetStatusHidden(void) { m_dwStatus = AUCATITEM_HIDDEN; }
|
||
|
|
||
|
DWORD GetStatus(void) { return m_dwStatus; }
|
||
|
BOOL Selected(void) { return (AUCATITEM_SELECTED == m_dwStatus); }
|
||
|
BOOL Unselected(void) { return (AUCATITEM_UNSELECTED == m_dwStatus); }
|
||
|
BOOL Hidden(void) { return (AUCATITEM_HIDDEN == m_dwStatus); }
|
||
|
|
||
|
PUID m_puid;
|
||
|
BOOL m_dwStatus;
|
||
|
DWORD m_index;
|
||
|
};
|