home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
dho.zip
/
DHO
/
INCLUDE
/
VSET.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-09-02
|
1KB
|
68 lines
/****************************************/
/* Developer Helper Object Set */
/* (C) 1994-95 Thomas E. Bednarz, Jr. */
/* All rights reserved */
/***************************************/
/* $Id: vset.h 1.10 1995/09/02 22:43:36 teb Exp teb $ */
#ifndef __VSET_H__
#define __VSET_H__
#define INCL_WIN
#include<os2.h>
#include<pmwrap.h>
enum setType {colors, bitmaps, icon, text, colorindex};
struct ValSetAttrib
{
setType items;
BOOL itemBorder;
BOOL setBorder;
BOOL scaleItems;
SHORT x;
SHORT y;
SHORT width;
SHORT height;
};
class TValueSet: public TWinBase
{
USHORT fRows, fCols;
VSCDATA vscData;
ULONG ulVSetStyle;
ULONG fData;
SHORT fX, fY, fcX, fcY;
ULONG fId;
TWinBase *fParent;
public:
ValSetAttrib fVSetAttr;
TValueSet(ULONG id, TWinBase *parent, USHORT rows, USHORT cols);
TValueSet(ULONG id, TWinBase *parent);
~TValueSet();
USHORT getNumRows();
USHORT getNumCols();
const char *getClassName(void);
virtual BOOL init();
void setItem(USHORT row, USHORT col, VOID *item);
void getSelection(USHORT &row, USHORT &col);
void setSelection(USHORT row, USHORT col);
};
#endif