ultimatepp/uppdev/TopMost/TopMost.h
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

18 lines
377 B
C++

#ifndef _TopMost_TopMost_h
#define _TopMost_TopMost_h
#include <CtrlLib/CtrlLib.h>
class TopMost : public TopWindow {
public:
void SyncTitle()
{
Title(GetExStyle() & WS_EX_TOPMOST ? "TOPMOST" : "NORMAL");
}
virtual void LeftDown(Point, dword) { ExStyle(GetExStyle() ^ WS_EX_TOPMOST); SyncTitle(); }
typedef TopMost CLASSNAME;
TopMost();
};
#endif