Initial
This commit is contained in:
43
thtest/FOO.HPP
Normal file
43
thtest/FOO.HPP
Normal file
@@ -0,0 +1,43 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user