Files
Work/thtest/FOO.HPP
2024-08-07 09:16:27 -04:00

44 lines
906 B
C++

#ifndef _THREAD_FOO_HPP_
#define _THREAD_FOO_HPP_
#include <thread/mthread.hpp>
#include <thtest/led.hpp>
#include <common/window.hpp>
class Foo : public MessageThread, public Window
{
public:
enum{FooStart};
Foo(void);
virtual ~Foo();
WORD operator==(const Foo &someFoo)const;
void setPoint(const Point &windowPoint);
private:
void createWindow(HINSTANCE hInstance,const Point &windowPoint);
DWORD threadHandler(ThreadMessage &someThreadMessage);
void destroyWindow(void);
void cycle(void);
CallbackData::ReturnType timerHandler(CallbackData &someCallbackData);
Callback<Foo> mTimerHandler;
HWND mhDisplay;
WORD mCounter;
LedDisplay *mlpLedDisplay;
ThreadCallback<Foo> mThreadHandler;
Point mWindowPoint;
};
inline
WORD Foo::operator==(const Foo &/*someFoo*/)const
{
return FALSE;
}
inline
void Foo::setPoint(const Point &windowPoint)
{
mWindowPoint=windowPoint;
}
#endif