7#if !defined(OCF_OLEFRAME_H)
11#if defined(BI_HAS_PRAGMA_ONCE)
69 bool trackMenuSelection =
false,
82 void Destroy(
int retVal)
override;
119 DontCare, UserInitiated, ViewInitiated, ServerInitiated
Decorated frame that supports OLE 2 using OCF.
void SetOcApp(TOcApp *app)
Initial set of OcApp being passed to us to use.
HMENU HOldMenu
Stores the handle to the container's previously saved copy of the menu.
void EvOcAppDialogHelp(TOcDialogHelp &dh)
Responds to an OC_APPDIALOGHELP message.
owl::TResult EvOcEvent(owl::TParam1 param1, owl::TParam2 param2)
Responds to a WM_OCEVENT message and subdispatches it to one of the EvOcXxxx event-handling functions...
int StashCount
Holds the number of menu bars that have been stored.
void EvSize(owl::uint sizeType, const owl::TSize &size)
Passes a WM_SIZE message to TLayoutWindow.
owl::TMenu StashedContainerPopups
Holds the stored, shared pop-up menus.
void Destroy(int retVal) override
Checks with all the connected servers to ensure that they can close before destroying the frame windo...
void EvActivateApp(bool active, DWORD threadId)
Responds to a EV_WM_ACTIVATEAPP message sent when a window is activated or deactivated.
TOcApp * GetOcApp()
Gets the ObjectComponents application associated with this frame window.
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),...
bool EvOcAppBorderSpaceReq(owl::TRect *rect)
Responds to an OC_APPBORDERSPACEREQ message sent to a container.
void EvOcAppRestoreUI()
Responds to an OC_APPRESTOREUI message by restoring the container's normal menu and borders because i...
bool EvOcAppProcessMsg(MSG *msg)
Responds to an EV_OC_APPROCESSMSG message sent to the container asking the server to process accelera...
void DestroyStashedPopups()
Destroys the previously stored shared pop-up menus.
owl::TWindow * GetRemViewBucket()
Returns a pointer to the OLE frame's hidden helper window that holds all inactive server windows.
TOcApp * OcApp
Points to the ObjectComponents application associated with this frame window.
void AddUserFormatName(LPCTSTR name, LPCTSTR resultName, LPCTSTR id)
Adds user defined formats and the corresponding names to the list of Clipboard formats.
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...
bool EvOcAppInsMenus(TOcMenuDescr &sharedMenu)
Responds to an EV_OC_APPINSMENUS message by merging the container's menu into the shared menu.
bool EvOcAppShutdown()
Responds to an OC_APPSHUTDOWN message indicating that the last embedded object has been closed.
void EvTimer(owl::uint timerId)
If this is a DLL server, EvTimer responds to a timer message by running an idle loop if the message q...
bool EvOcAppFrameRect(owl::TRect *rect)
Responds to an OC_APPFRAMERECT message sent to a container.
void SetupWindow() override
Associates the ObjectComponents application with the window's HWND so that the TOcApp and the window ...
bool EvOcAppMenus(TOcMenuDescr &md)
Responds to an OC_OCAPPMENUS sent to the container.
void OleViewClosing(bool close)
Sets the OcShutDown data member to ViewInitiated (if close is true and OcShutDown = DontCare) or Dont...
void EvOcAppStatusText(LPCTSTR rect)
Responds to an OC_APPSTATUSTEXT message by displaying text from the server on this container's status...
void CleanupWindow() override
Performs normal window cleanup of any HWND-related resources.
bool EvOcAppBorderSpaceSet(owl::TRect *rect)
Responds to an OC_APPBORDERSPACESET message by making room in the container's frame window for the bo...
TDecoratedFrame automatically positions its client window (you must supply a client window) so that i...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
auto ChildWithId(int id) const -> const TWindow *
Definition of class TDecoratedFrame, a TFrameWindow that can manage decorations around the client win...
#define DECLARE_RESPONSE_TABLE(cls)
Object Component Framework (COM encapsulation).
const int IDW_REMVIEWBUCKET
const int IDW_PADDECORATION
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
Definition of OWL signatures for ObjectComponents messages.
OLE Registration definitions.
Templatized class implementation of OLE component creation code for TComponentFactory callback for Ob...