154 ControlRect.Set(TopLeft.x, TopLeft.y, BottomRight.x, BottomRight.y);
177 wndClass.lpfnWndProc = ::DefWindowProc;
Provides OLE support to dialog boxes.
bool EvOcViewSetSiteRect(owl::TRect *rect)
Handles OC_VIEWSITERECT messages.
~TOleDialog()
Destroys the TOleDialog object.
void LoadControl(HWND hControl)
Determines the ProgId and position of the window corresponding to hControl.
HWND CheckChild(HWND)
Checks to see if a window handle (HWND) corresponds to an OCX window.
auto IdleAction(long idleCount) -> bool override
Called when no messages are waiting to be processed.
auto PreProcessMsg(MSG &) -> bool override
Called before a Windows message (stored in msg) is dispatched.
void SetupWindow() override
Calls the SetupWindow functions of the TOleWindow and TDialog base classes.
The generic OLE2 window. Use as a client of a frame window.
void SetupWindow() override
Establishes a connection between the TOcView object and the view's HWND so the view can send notifica...
bool EvOcViewSetSiteRect(owl::TRect *rect)
Converts the rect to logical units.
TOcControl * InsertControl(TOcInitInfo &initInfo, owl::TRect *pos=0, int id=0)
Registers an OCX window for a subsequent call to the TOleDialog::SetupWindow function.
TRegisterOcxWnd(HINSTANCE)
Registers an OCX window for the specified instance of the application.
HINSTANCE HAppInst
The application instance for which the OCX window is registered.
~TRegisterOcxWnd()
Unregister OCX stub-window class.
Typically used to obtain information from a user, a dialog box is a window inside of which other cont...
auto PreProcessMsg(MSG &) -> bool override
Preprocess posted messages to provide various accelerator translations.
void SetupWindow() override
Overrides the virtual function defined in TWindow.
void Destroy(int retValue=IDCANCEL) override
Destroys the interface element associated with the TDialog object.
auto IdleAction(long idleCount) -> bool override
Handle enabling and disabling of child controls.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
Reference to reference counted string object TUString Lightweight reference object consisting of a po...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
tstring GetWindowText() const
String-aware overload.
virtual bool PreProcessMsg(MSG &msg)
Called from TApplication::ProcessAppMsg() to give the window an opportunity to perform preprocessing ...
HWND GetWindow(uint cmd) const
Returns the handle of the window that has the indicated relationship to this window.
TRect GetWindowRect() const
Gets the screen coordinates of the window's rectangle.
long GetWindowLong(int index) const
Retrieves information about the window depending on the value stored in index.
virtual bool IdleAction(long idleCount)
Called when no messages are waiting to be processed, IdleAction performs idle processing as long as t...
void ScreenToClient(TPoint &point) const
Uses the screen coordinates specified in point to calculate the client window's coordinates and then ...
HWND GetHandle() const
Returns the handle of the window.
#define DEFINE_RESPONSE_TABLE2(cls, base1, base2)
Macro to define a response table for a class with two bases.
@ wfAutoCreate
Create the HWND when our parent is created.
Include for OC, gets common headers when precompiled headers are enabled.
Object Component Framework (COM encapsulation)
Object Windows Library (OWLNext Core)
Definition of class TOleDialog, a TDialog that can host OLE controls.