14#if defined(__BORLANDC__)
23#if !defined(WS_EX_MDICHILD)
24# define WS_EX_MDICHILD 0x00000040L
239 w.EnableAutoCreate();
351 if (
w &&
w->IsWindow())
376#if OWL_PERSISTENT_STREAMS
392TMDIChild::Streamer::Write(opstream&
os)
const
Definition of class TApplication.
#define WARNX(group, condition, level, message)
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
void ResumeThrow()
Rethrows the suspended exception stored by a previous call to SuspendThrow.
Derived from TWindow, TFrameWindow controls such window-specific behavior as keyboard navigation and ...
void Init(TWindow *clientWnd, bool shrinkToClient)
Normal initialization of a default constructed TFrameWindow.
virtual bool MergeMenu(const TMenuDescr &childMenuDescr)
Merges the given menu descriptor with this frame's own menu descriptor and displays the resulting men...
virtual TWindow * GetClientWindow()
Returns a pointer to the client window.
virtual bool MergeBar(const TBarDescr &childBarDescr)
Do nothing. Return false. Overriden in TDecoratedFrame.
virtual bool RestoreBar()
Do nothing in TFrameWindow. Overriden in TDecoratedFrame.
auto PreProcessMsg(MSG &) -> bool override
Overrides TWindow's virtual function.
const TMenuDescr * GetMenuDescr() const
Returns a pointer to the menu descriptor for the frame window.
const TBarDescr * GetBarDescr() const
Returns a pointer to the control bar descriptor.
TMDIChild defines the basic behavior of all MDI child windows.
virtual TResult DefWindowProc(TMsgId, TParam1, TParam2)
Overrides TWindow::DefWindowProc to provide default processing for any incoming message the MDI child...
void Destroy(int retVal=0) override
Destroys the interface element associated with the TMDIChild.
auto ShowWindow(int cmdShow) -> bool override
Overrides TWindow's virtual function.
auto EnableWindow(bool enable) -> bool override
Overrides TWindow's virtual function.
TMDIChild(TMDIClient &parent, LPCTSTR title=0, TWindow *clientWnd=0, bool shrinkToClient=false, TModule *module=0)
Constructor for a TMDIChild.
auto PerformCreate() -> THandle override
Creates the interface element associated with the MDI child window.
void EvEnterIdle(uint source, HWND hWndDlg)
void EvMenuSelect(uint menuItemId, uint flags, HMENU hMenu)
bool EvNCActivate(bool active)
Responds to a request to change a title bar or icon.
auto PreProcessMsg(MSG &) -> bool override
Performs preprocessing of window messages for the MDI child window.
void EvMDIActivate(HWND hWndActivated, HWND hWndDeactivated)
Instructs a client window to activate or deactivate an MDI child window and then sends a message to t...
Multiple Document Interface (MDI) client windows (represented by a TMDIClient object) manage the MDI ...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
void EvEnterIdle(uint source, HWND hWndDlg)
The default message handler for WM_ENTERIDLE.
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
virtual bool EnableWindow(bool enable)
Allows the given window to receive input from the keyboard of mouse.
HWND GetWindow(uint cmd) const
Returns the handle of the window that has the indicated relationship to this window.
auto GetChildren()
Returns a TWindow::TChildrenRange that can be iterated by standard means.
TWindow * GetParent() const
Retrieves the OWL object of the parent window. If none exists, returns 0.
void SetHandle(THandle)
Sets the window handle in a derived class.
virtual auto GetWindowClassName() -> TWindowClassName
virtual TResult DefWindowProc(TMsgId, TParam1, TParam2)
Virtual function provides final default processing for an incoming message Calls original window proc...
void Init(TWindow *parent, LPCTSTR title, TModule *module)
Normal initialization of a default constructed TWindow.
TWindow * GetParentO() const
Return the OWL's parent for this window.
TModule * GetModule() const
Returns a pointer to the module object.
TResult HandleMessage(TMsgId, TParam1=0, TParam2=0)
Dispatches the given message using the response table.
LPCTSTR GetCaption() const
Returns the Title member of TWindow.
bool EvNCActivate(bool active)
The default message handler for WM_NCACTIVATE.
TResult DefaultProcessing()
Handles default processing of events, which includes continued processing of menu/accelerators comman...
virtual bool ShowWindow(int cmdShow)
Displays this TWindow in a given state.
bool IsFlagSet(uint mask)
Returns the state of the bit flag in Attr.Flags whose mask is supplied.
static HWND GetFocus()
Gets a handle to the window that has the focus.
void EvMenuSelect(uint menuItemId, uint flags, HMENU hMenu)
The default message handler for WM_MENUSELECT.
HWND THandle
TWindow encapsulates an HWND.
HWND GetHandle() const
Returns the handle of the window.
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
void ReadVirtualBase(Base *base, ipstream &in)
void WriteVirtualBase(Base *base, opstream &out)
#define IMPLEMENT_STREAMABLE2(cls, base1, base2)
@ wfUnHidden
Used temporarily when destroying MDI child.
@ wfAlias
TWindow is an alias to a preexisting HWND.
Definition of TMDIClient and TMDIFrame classes.
Definition of class TMDIChild.
Object Windows Library (OWLNext Core)
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
#define TYPESAFE_DOWNCAST(object, toClass)
Holds TWindow attributes set during construction of a window.