10#if !defined(OWL_DECFRAME_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
29template <
class R,
class T1>
class TFunctor1;
33#define TGadgetWnd_FUNCTOR(func) TFunctionTranslator1<TGadgetWindow*,TWindow*, TGadgetWindow* (*)(TWindow*)>(func)
34#define TGadgetWnd_MFUNCTOR(obj,memberFunc) TMemberTranslator1<TGadgetWindow*,TWindow*, TGadgetWindow* (obj::*)(TWindow*)>(obj, memberFunc);
41template <
class R,
class T1,
class T2,
class T3>
class TFunctor3;
44#define TBarInsert_FUNCTOR(func) TFunctionTranslator3<bool, TDecoratedFrame&, TGadgetWindow&, TAbsLocation, bool (*)(TDecoratedFrame&, TGadgetWindow&, TAbsLocation)>(func)
45#define TBarInsert_MFUNCTOR(obj,memberFunc) TMemberTranslator3<bool, TDecoratedFrame&, TGadgetWindow&, TAbsLocation, bool (obj::*)(TDecoratedFrame&, TGadgetWindow&, TAbsLocation)>(obj, memberFunc);
106 auto PreProcessMsg(
MSG&) ->
bool override;
107 auto SetClientWindow(
TWindow*) ->TWindow*
override;
108 using TFrameWindow::SetClientWindow;
124 auto MergeBar(
const TBarDescr&) ->
bool override;
125 auto RestoreBar() ->
bool override;
126 virtual bool CreateBar();
128 bool GetTrackMenuSelection()
const;
129 void SetTrackMenuSelection(
bool tr=
true);
131 uint GetMenuItemId()
const;
136 void SetupWindow()
override;
137 void CleanupWindow()
override;
138 void RemoveChild(
TWindow*)
override;
152 bool TrackMenuSelection;
191 return TrackMenuSelection;
199 TrackMenuSelection =
tr;
223 return BarCreatorFunct;
230 return BarInserterFunct;
Class definition for TBarDescr.
Descriptor of Bar Implementation.
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
TDecoratedFrame automatically positions its client window (you must supply a client window) so that i...
void SetMenuItemId(uint menuitemid)
Set the cached id of the current menu item.
TBarInsertFunctor * GetBarInserter()
TGadgetWndFunctor * GetBarCreator()
uint GetMenuItemId() const
Return cached id of the current menu item.
bool GetTrackMenuSelection() const
Returns true if the decorated frame is tracking the menu selections.
void SetTrackMenuSelection(bool tr=true)
Set the flag for tracking menu selection.
TLocation
Enumeration describing the possible locations of a Gadgetwindow [Used mainly for location of Toolbar ...
Derived from TWindow, TFrameWindow controls such window-specific behavior as keyboard navigation and ...
Functor with 1 parameter, return R.
Functor with 3 parameters, return R.
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
#define DECLARE_RESPONSE_TABLE(cls)
Definition of class TFrameWindow.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
@ htUserDefined
Can be used when enhancing 'GetHintText'.
@ htStatus
Text displayed on status bar.
@ htTooltip
Shorter text displayed in a tooltip.
@ alTop
Refers to top edge of frame.
@ alRight
Refers to right edge of frame.
@ alBottom
Refers to bottom edge of frame.
@ alLeft
Refers to left edge of frame.
@ alNone
No location specified.
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core)
TFunctor3< bool, TDecoratedFrame &, TGadgetWindow &, TAbsLocation > TBarInsertFunctor
LRESULT TResult
Result type.
TFunctor1< TGadgetWindow *, TWindow * > TGadgetWndFunctor