mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
40 lines
1.0 KiB
//=======================================================================
|
|
//
|
|
// 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;
|
|
};
|