mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 06:06:00 -06:00
18 lines
377 B
C++
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
|