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.
36 lines
470 B
36 lines
470 B
/*++
|
|
|
|
Copyright (c) 2001, Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
toggle.h
|
|
|
|
Abstract:
|
|
|
|
This file defines the CToggle Interface Class.
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Notes:
|
|
|
|
--*/
|
|
|
|
#ifndef _TOGGLE_H_
|
|
#define _TOGGLE_H_
|
|
|
|
class CToggle
|
|
{
|
|
public:
|
|
CToggle() { m_flag = FALSE; }
|
|
|
|
BOOL Toggle() { return m_flag = ! m_flag; }
|
|
BOOL IsOn() { return m_flag; }
|
|
|
|
private:
|
|
BOOL m_flag : 1;
|
|
};
|
|
|
|
#endif // _TOGGLE_H_
|