45class TPadWindow :
public TWindow {
54#if defined(DEBUG_PADS)
73 TRemViewBucket(
TWindow* parent);
90TRemViewBucket::TRemViewBucket(
TWindow* parent)
101TRemViewBucket::SetDocTitle(
LPCTSTR,
int)
110TRemViewBucket::FindRemoteWindow()
123 if (
remote->GetParentO() ==
this)
233 new TRemViewBucket(
this);
239 SetOcApp(
ocm->OcApp);
247TOleFrame::~TOleFrame()
277TOleFrame::SetupWindow()
280 TDecoratedFrame::SetupWindow();
281 OcApp->SetupWindow(GetHandle());
301TOleFrame::CleanupWindow()
330TOleFrame::OleViewClosing(
bool close)
332 if (close && OcShutDown == DontCare) {
333 OcShutDown = ViewInitiated;
335 else if (!close && OcShutDown == ViewInitiated) {
336 OcShutDown = DontCare;
348 for (
auto&
child : win.GetChildren())
366 if (!GetHandle() || OcShutDown == UserInitiated)
371 if (OcShutDown == DontCare) {
372 OcShutDown = UserInitiated;
373 for (
auto&
child : GetChildren())
377 if (!OcApp->CanClose()) {
379 OcShutDown = DontCare;
385 TDecoratedFrame::Destroy(
retVal);
391 if (
dllServer && OcShutDown != ServerInitiated) {
393 GetApplication()->ClearMainWindow();
394 delete GetApplication();
410 TDecoratedFrame::EvSize(
sizeType, size);
427 OcApp->EvActivate(
active);
439 GetApplication()->PostDispatchAction();
481 static_cast<void*
>(HOldMenu));
488 if (GetMenuDescr()) {
511 for (
int i = 0;
i < 6;
i++)
532 static_cast<void*
>(HOldMenu));
537 DestroyStashedPopups();
545 static_cast<void*
>(HOldMenu));
549 HOldMenu = GetMenu();
565 return GetApplication()->ProcessAppMsg(*
msg);
576 *
rect = GetClientRect();
591TOleFrame::EvOcAppBorderSpaceReq(
TRect * )
607 for (
int i = 0;
i < 4;
i++) {
611 if ((
i%2 == 0 &&
pad->GetWindowAttr().W !=
edge) ||
612 (
i%2 == 1 &&
pad->GetWindowAttr().H !=
edge)) {
614 GetChildLayoutMetrics(*
pad,
m);
615 pad->GetWindowAttr().H =
pad->GetWindowAttr().W =
edge;
616 SetChildLayoutMetrics(*
pad,
m);
626 if ((
space &&
tb->IsWindowVisible()) || (!
space && !
tb->IsWindowVisible())) {
664 for (
int i = 0;
i < 6;
i++) {
668 if (state ==
uint(-1))
681void TOleFrame::DestroyStashedPopups()
686 while (StashedContainerPopups.GetMenuItemCount()) {
687 TRACEX(
OcfOleMenu, 1,
_T(
"Destroying ") <<
hex <<
static_cast<void*
>(StashedContainerPopups.GetSubMenu(0)));
697TOleFrame::EvOcAppRestoreUI()
703 static_cast<void*
>(HOldMenu));
711 EvOcAppBorderSpaceSet(0);
719TOleFrame::EvOcAppShutdown()
726 if (OcShutDown == DontCare && OcApp->IsOptionSet(
amEmbedding)) {
729 OcShutDown = ServerInitiated;
742 if (OcApp->IsOptionSet(
amEmbedding) && OcShutDown == ViewInitiated)
#define PRECONDITION(condition)
#define TRACEX(group, level, message)
#define DIAG_DEFINE_GROUP_INIT(f, g, e, l)
OCF Application host class. Owner of & host for a TOcApp object.
Decorated frame that supports OLE 2 using OCF.
The generic OLE2 window. Use as a client of a frame window.
Class wrapper for management of color values.
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...
TLocation
Enumeration describing the possible locations of a Gadgetwindow [Used mainly for location of Toolbar ...
@ Bottom
Refers to bottom edge of frame.
@ Top
Refers to top edge of frame.
@ Left
Refers to left edge of frame.
@ Right
Refers to right edge of frame.
A nested class, TEventInfo provides specific information about the type of message sent,...
Derived from TWindow, TFrameWindow controls such window-specific behavior as keyboard navigation and ...
When specifying the layout metrics for a window, four layout constraints are needed.
Derived from TGadgetWindow, TMessageBar implements a message bar with one text gadget as wide as the ...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TNotify is a thin wrapper around the NMHDR structure.
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...
void SetBkgndColor(TColor color, bool shouldUpdate=true)
Sets the background color for the window.
HWND THandle
TWindow encapsulates an HWND.
Definition of classes for CommonControl encapsulation.
Definition of TDecoratedMDIFrame class.
#define END_RESPONSE_TABLE
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
#define NoErase
don't erase, wait for Paint
#define ocrEmbeddedObject
Include for OC, gets common headers when precompiled headers are enabled.
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Component Framework (COM encapsulation)
const TDecoratedFrame::TLocation SpaceLoc[]
const int IDW_REMVIEWBUCKET
const int IDW_PADDECORATION
@ amExeMode
may be overridden per instance if running DLL
@ amEmbedding
cmdline, overridden per Instance if embedded DLL
Object Windows Library (OWLNext Core)
TWindow * GetWindowPtr(HWND, const TApplication *)
Raw function to retrieve a TWindow pointer given an HWND from the a given app, or any app (app==0).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
LRESULT TResult
Result type.
Definition of OWL signatures for ObjectComponents messages.
#define EV_OC_APPBORDERSPACESET
#define EV_OC_APPSTATUSTEXT
#define EV_OC_APPINSMENUS
#define EV_OC_APPRESTOREUI
#define EV_OC_APPFRAMERECT
#define EV_OC_APPPROCESSMSG
#define EV_OC_APPSHUTDOWN
#define EV_OC_APPBORDERSPACEREQ
TOleWindow - Class encapsulating a window which can be an OLE container or server window.
#define TYPESAFE_DOWNCAST(object, toClass)
Definition of class TStatusBar.
#define EV_WM_ACTIVATEAPP
#define EV_MESSAGE(message, method)
Response table entry for raw message handling Uses a dispatcher that just forwards WPARAM and LPARAM.