39 :
TMDIFrame{title, menuResId, move(clientWnd), module},
40 TOleFrame{title, ClientWnd, trackMenuSelection, module}
47 :
TOleMDIFrame{title.c_str(), menuResId, move(clientWnd), trackMenuSelection, module}
50#if defined(OWL5_COMPAT)
59 bool trackMenuSelection,
61 :
TMDIFrame{title, menuResId, clientWnd, module},
62 TOleFrame{title, &clientWnd, trackMenuSelection, module}
112 compMenuDesc.
Merge(*childMenu);
126 sharedMenu.
Width[5]);
127 shMenuDescr.
Merge(compMenuDesc);
131 for (
int i = 0; i < 6; i++)
138 TRACEX(OcfOleMenu, 0,
_T(
"MDI merged menu ") << hex <<
static_cast<void*
>(sharedMenu.
HMenu));
154 return message == WM_SIZE ?
#define TRACEX(group, level, message)
void EvActivate(bool)
Let BOle know that the main window has [de]activated.
Decorated frame that supports OLE 2 using OCF.
HMENU HOldMenu
Stores the handle to the container's previously saved copy of the menu.
TOleFrame(LPCTSTR title, owl::TWindow *clientWnd, bool trackMenuSelection=false, owl::TModule *module=0)
Constructs a TOleFrame object with the specified caption for the frame window (title),...
TOcApp * OcApp
Points to the ObjectComponents application associated with this frame window.
void StashContainerPopups(const owl::TMenuDescr &shMenuDescr)
Stores a local copy of the pop-up menus so they can be used for menu merging and then destroyed later...
Decorated MDI frame that supports OLE 2 using OCF.
virtual owl::TResult DefWindowProc(owl::TMsgId message, owl::TParam1, owl::TParam2)
Allows default processing for all messages except for a resizing message concerning the frame window,...
bool EvOcAppInsMenus(TOcMenuDescr &sharedMenu)
Inserts menus into a provided menu bar, or merges them with a child window and servers.
~TOleMDIFrame()
Destroys the OLE MDI frame window object.
void EvActivateApp(bool active, DWORD threadId)
Responds to a message indicating that the frame window of this application (hTask) is going to be eit...
TOleMDIFrame(LPCTSTR title, owl::TResId menuResId, std::unique_ptr< owl::TMDIClient > clientWnd=nullptr, bool trackMenuSelection=false, owl::TModule *=nullptr)
Constructs a TOleMDIFrame object with the indicated title, menu resource ID, client window,...
const TMenuDescr * GetMenuDescr() const
Returns a pointer to the menu descriptor for the frame window.
Multiple Document Interface (MDI) client windows (represented by a TMDIClient object) manage the MDI ...
Multiple Document Interface (MDI) frame windows, represented by TMDIFrame, are overlapped windows tha...
auto GetClientWindow() -> TMDIClient *override
Returns a pointer to the MDI client window.
virtual TResult DefWindowProc(TMsgId, TParam1, TParam2)
Overrides TWindow::DefWindowProc and provides default processing for any incoming message the MDI fra...
TMDIFrame(LPCTSTR title, TResId menuResId, std::unique_ptr< TMDIClient > clientWnd=nullptr, TModule *=nullptr)
Constructs an MDI frame window object using the caption (title) and resource ID (menuResId).
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
void EvActivateApp(bool active, DWORD threadId)
The default message handler for WM_ACTIVATEAPP.
Definition of TDecoratedMDIFrame class.
#define DEFINE_RESPONSE_TABLE2(cls, base1, base2)
Macro to define a response table for a class with two bases.
Include for OC, gets common headers when precompiled headers are enabled.
Object Component Framework (COM encapsulation).
UINT TMsgId
Message ID type.
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
DIAG_DECLARE_GROUP(OwlThread)
Definition of OWL signatures for ObjectComponents messages.
Definition of class TStatusBar.