8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-30 19:23:03 +01:00
firebird-mirror/src/utilities/fbcpl/ctrlpan.h
2009-01-18 11:29:24 +00:00

32 lines
801 B
C++

// CtrlPan.h
#if !defined(UTILITIES_CTRLPAN_H)
#define UTILITIES_CTRLPAN_H
#include <cpl.h> // control panel definitions
class CControlPanel
{
public:
CControlPanel();
virtual ~CControlPanel();
// Event handlers
virtual LONG OnDblclk(HWND hwndCPl, UINT uAppNum, LONG lData);
virtual LONG OnExit();
virtual LONG OnGetCount();
virtual LONG OnInit();
virtual LONG OnInquire(UINT uAppNum, NEWCPLINFO* pInfo);
virtual LONG OnSelect(UINT uAppNum, LONG lData);
virtual LONG OnStop(UINT uAppNum, LONG lData);
// static member functions (callbacks)
static LONG APIENTRY CPlApplet(HWND hwndCPl, UINT uMsg, LONG lParam1, LONG lParam2);
// static data
static CControlPanel* m_pThis; // nasty hack to get object ptr
};
#endif // UTILITIES_CTRLPAN_H