OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Window management classes

Derived from TEventHandler and TStreamableBase, TWindow is the parent class for all window classes. More...

Classes

struct  owl::TWindowAttr
 Holds TWindow attributes set during construction of a window. More...
 
class  owl::TWindow
 TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encapsulates many functions that control window behavior and specify window creation and registration attributes. More...
 
class  owl::TXWindow
 A nested class, TXWindow describes an exception that results from trying to create an invalid window. More...
 

Enumerations

enum  owl::TWindowFlag {
  owl::wfAlias = 0x0001 , owl::wfAutoCreate = 0x0002 , owl::wfFromResource = 0x0004 , owl::wfShrinkToClient = 0x0008 , owl::wfMainWindow = 0x0010 , owl::wfFullyCreated = 0x0020 , owl::wfStreamTop = 0x0040 , owl::wfPredefinedClass = 0x0080 , owl::wfTransfer = 0x0100 , owl::wfUnHidden = 0x0200 ,
  owl::wfUnDisabled = 0x0400 , owl::wfDeleteOnClose = 0x0800 , owl::wfPropagateIdle = 0x1000 , owl::wfModalWindow = 0x2000 , owl::wfDetached = 0x4000 , owl::wfInsertAtEdge = 0x8000
}
 Define bit masks for the internally used flag attributes of TWindow. More...
 
enum  owl::TTransferDirection { owl::tdGetData , owl::tdSetData , owl::tdSizeData }
 The TTransferDirection enum describes the constants that the transfer function uses to determine how to transfer data to and from the transfer buffer. More...
 
enum  owl::TEventStatus { owl::esPartial , owl::esComplete }
 Mixin window event implementation return status. More...
 

Special background color flags for EvEraseBkgnd processing

#define NoColor   TColor::None
 let DefWindowProc erase
 
#define NoErase   TColor::Transparent
 don't erase, wait for Paint
 

Detailed Description

Derived from TEventHandler and TStreamableBase, TWindow is the parent class for all window classes.

It represents the functionality common to all windows, whether they are dialog boxes, controls, multiple document interface (MDI) windows, or layout windows. One of the fundamental ObjectWindows classes that implements OLE functionality, TOleWindow, provides support for embedding objects in a compound document application.

Macro Definition Documentation

◆ NoColor

#define NoColor   TColor::None

let DefWindowProc erase

Definition at line 115 of file window.h.

◆ NoErase

#define NoErase   TColor::Transparent

don't erase, wait for Paint

Definition at line 116 of file window.h.

Enumeration Type Documentation

◆ TEventStatus

Mixin window event implementation return status.

Event status constants indicate the status of a mix-in window event implementation, for example, a keyboard event. The TEventStatus constants indicate whether or not additional handlers are needed.

Enumerator
esPartial 

Additional handlers may be invoked.

esComplete 

No additional handlers are needed.

Definition at line 107 of file window.h.

◆ TTransferDirection

The TTransferDirection enum describes the constants that the transfer function uses to determine how to transfer data to and from the transfer buffer.

Enumerator
tdGetData 

Get data from the window into the buffer.

tdSetData 

Set data from the buffer into the window.

tdSizeData 

Return the size of data transferred by the class.

Definition at line 92 of file window.h.

◆ TWindowFlag

Define bit masks for the internally used flag attributes of TWindow.

Enumerator
wfAlias 

TWindow is an alias to a preexisting HWND.

wfAutoCreate 

Create the HWND when our parent is created.

wfFromResource 

Handle comes from HWND created from resource.

wfShrinkToClient 

Shrink a frame window to its client's size.

wfMainWindow 

This frame window is the main window.

wfFullyCreated 

Window is fully created & not being destroyed.

wfStreamTop 

This window is the topmost one to stream.

wfPredefinedClass 

Window class used belongs to a predefined Windows class and was not defined by OWL.

wfTransfer 

Participates in the Transfer mechanism.

wfUnHidden 

Used temporarily when destroying MDI child.

wfUnDisabled 

Used temporarily when destroying MDI child.

wfDeleteOnClose 

Window is condemned on EvClose.

Indicates that a modeless dialog's pointer is to be deleted when it receives a WM_CLOSE message, causing its class's destructor to be called immediately. Default behavior is to leave the dialog pointer alone. Setting this flag has no effect on modal dialogs. To set this flag for a modeless dialog object, add the following statement to the constructor of your TDialog-derived class:

< SetFlag(wfDeleteOnClose);
<
@ wfDeleteOnClose
Window is condemned on EvClose.
Definition window.h:70
wfPropagateIdle 

Pass down IdleAction.

wfModalWindow 

Was created via TWindow::Execute.

wfDetached 

Window handle has been detached.

wfInsertAtEdge 

(Decoration) Window to be inserted against frame's edge

Definition at line 58 of file window.h.