9#if !defined(OWL_FRAMEWIN_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
47 using TCommandEnabler::SetText;
48 void SetCheck(
int check);
114 std::unique_ptr<TWindow>
client =
nullptr,
134 virtual bool RestoreBar();
138 HICON GetIcon()
const;
139 HICON GetIconSm()
const;
145 virtual TWindow* GetClientWindow();
147 auto SetClientWindow(std::unique_ptr<TWindow>) -> std::unique_ptr<TWindow>;
148 void RemoveChild(
TWindow*)
override;
149 virtual HWND GetCommandTarget();
154 bool GetKeyboardHandling()
const;
155 void SetKeyboardHandling(
bool kh=
true);
156 void EnableKBHandler();
160 auto PreProcessMsg(
MSG&) ->
bool override;
161 auto IdleAction(
long idleCount) ->
bool override;
164 using TWindow::SetDocTitle;
189 HICON EvQueryDragIcon();
194 bool EvQueryNewPalette();
198 void SetupWindow()
override;
199 void CleanupWindow()
override;
203 HWND GetHWndRestoreFocus();
205 int GetDocTitleIndex()
const;
206 void SetDocTitleIndex(
int index);
207 void SetMergeModule(
TModule* module);
211 bool KeyboardHandling;
241 bool ResizeClientWindow(
bool redraw =
true);
273 if (::GetMenuItemID(HMenu, Position) ==
uint(-1))
352 return KeyboardHandling;
361 KeyboardHandling =
kh;
382 return HWndRestoreFocus;
398 return DocTitleIndex;
406 DocTitleIndex = index;
422 MergeModule =
module;
Descriptor of Bar Implementation.
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
uint Flags
TCommandStatus flags Is TCommandStatus::WasHandled if the command enabler has been handled.
@ NonSender
Command does not generate WM_COMMAND messages.
Derived from TWindow, TFrameWindow controls such window-specific behavior as keyboard navigation and ...
void SetDocTitleIndex(int index)
Sets the current document's title index.
void EnableKBHandler()
Sets the keyboard handling flag to true.
HICON GetIconSm() const
Retrieve handle of icon of frame window.
virtual bool MergeBar(const TBarDescr &childBarDescr)
Do nothing. Return false. Overriden in TDecoratedFrame.
virtual bool RestoreBar()
Do nothing in TFrameWindow. Overriden in TDecoratedFrame.
HWND GetHWndRestoreFocus()
Returns the handle of the window to restore the focus to.
int GetDocTitleIndex() const
Returns the document title index.
void SetKeyboardHandling(bool kh=true)
Sets flag indicating that the receiver has requested "keyboard handling" (translation of keyboard inp...
void SetHWndRestoreFocus(HWND hwndRestoreFocus)
Sets the remembered focused window.
const TMenuDescr * GetMenuDescr() const
Returns a pointer to the menu descriptor for the frame window.
void SetMergeModule(TModule *module)
Remembers where the merged menu came from.
const TBarDescr * GetBarDescr() const
Returns a pointer to the control bar descriptor.
bool GetKeyboardHandling() const
Returns flag indicating that the receiver has requested "keyboard handling" (translation of keyboard ...
TModule * GetMergeModule()
Returns the module of the merge menu.
HICON GetIcon() const
Retrieve handle of icon of frame window.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
#define DECLARE_RESPONSE_TABLE(cls)
#define DECLARE_STREAMABLE_OWL(cls, ver)
TAutoDelete
Flag for Handle ctors to control Handle deletion in dtor.
#define DECLARE_STREAMABLE_INLINES(cls)
Object Windows Library (OWLNext Core)
const unsigned int IDW_MDICLIENT
ID of MDI client window.
TDispatch< WM_PARENTNOTIFY >::TArgs TParentNotify
Alias for convenience.
const unsigned int IDW_FIRSTMDICHILD
child window IDs, 32 max to 32032
Base window class TWindow definition, including HWND encapsulation.