Properties | |
typedef text | title |
This alias is provided for clarity, since the caption text of a window or dialog is the text in the title bar. | |
override string | toString () |
Returns a string representation of this WindowBase. | |
final override uint | toHash () |
Returns a hash value of this WindowBase. | |
Application | application () |
The Application object representing the application instance to which this window object belongs. | |
WindowBase | parent () |
The parent of this window object. | |
HWND | handle () |
The Windows handle of the interface element represented by this WindowBase object. | |
DCState | dcState () |
bool | enabled () |
Whether the control is enabled, i.e. | |
bool | enabled (bool e) |
Whether the control is enabled, i.e. | |
int | textLength () |
The length, in characters, of the caption text. | |
string | text () |
The caption text of the window, dialog or control. | |
string | text (string t) |
The caption text of the window, dialog or control. | |
bool | visible () |
Whether the window is currently visible. | |
bool | visible (bool v) |
Whether the window is currently visible. | |
Rect | sizeAndPosition () |
A rectangle representing the size and position of this interface element. | |
Rect | sizeAndPosition (Rect pos) |
A rectangle representing the size and position of this interface element. | |
Rect | sizeAndPositionScreen () |
A rectangle representing the size and position of this interface element, in screen coordinates. | |
Rect | sizeAndPositionScreen (Rect pos) |
A rectangle representing the size and position of this interface element, in screen coordinates. | |
Rect | clientArea () |
A rectangle representing the size of the window's client area. | |
HACCEL | accelerators () |
Windows handle of the window's accelerator table. | |
HACCEL | accelerators (HACCEL h) |
Windows handle of the window's accelerator table. | |
HACCEL | accelerators (LPCTSTR i) |
HACCEL | accelerators (uint id) |
Sets the window's accelerator table. | |
HACCEL | accelerators (string name) |
Sets the window's accelerator table. | |
WS | style () |
The window style. | |
WS | style (WS s) |
The window style. | |
WS_EX | exStyle () |
The window extended style. | |
WS_EX | exStyle (WS_EX s) |
The window extended style. | |
MenuBar | menu () |
The menu bar attached to this window object. | |
MenuBar | menu (MenuBar m) |
The menu bar attached to this window object. | |
void | menu (int id) |
The menu bar attached to this window object. | |
void | menu (string name) |
The menu bar attached to this window object. | |
Callback Methods | |
bool | confirmClose () |
Determines whether it is OK to close the window or dialog. | |
void | onActivate (ActivationEvent event) |
Carries out operations when the window is made active. | |
void | onDeactivate (ActivationEvent event) |
Carries out operations when the window is made inactive. | |
void | setup () |
Carries out setup operations on the window or dialog. | |
void | cleanup () |
Carries out cleanup operations on the window or dialog. | |
Public Types | |
typedef int(* | MessageHandler )(uint message, uint wParam, int lParam, WindowBase receivedVia, out bool swallow) |
The form of a message handler or listener method. | |
Public Member Functions | |
abstract void | create () |
Creates the Windows interface element represented by this WindowBase object. | |
int | show () |
Creates and displays the Windows interface element represented by this WindowBase object. | |
void | focus () |
Sets the keyboard focus on this interface element. | |
void | close (int exitCode=ID.CLOSE) |
Calls confirmClose, and if it returns true , closes the window object. | |
ID | messageBox (string text, string boxTitle, MB style) |
Displays a standard Windows message box, with this window or dialog as its parent. | |
void | enableMenuItem (uint id, MF state) |
Enables or disables the specified menu item in this window's menu bar. | |
void | checkMenuItem (uint id, MF state) |
Checks or unchecks the specified menu item in this window's menu bar. | |
int | sendMessage (uint message, uint wParam=0, int lParam=0) |
Sends a window message to this window object. | |
int | postMessage (uint message, uint wParam=0, int lParam=0) |
Posts a window message for this window object to the message queue. | |
void | toClientCoords (inout int x, inout int y) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area. | |
void | toClientCoords (inout Point p) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area. | |
void | toClientCoords (Point[] p) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area. | |
void | toClientCoords (inout Rect r) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area. | |
void | toClientCoords (Rect[] r) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area. | |
void | toScreenCoords (inout int x, inout int y) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen. | |
void | toScreenCoords (inout Point p) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen. | |
void | toScreenCoords (Point[] p) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen. | |
void | toScreenCoords (inout Rect r) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen. | |
void | toScreenCoords (Rect[] r) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen. | |
void | addListener (MessageHandler listener, int priority=0) |
Adds a listener function to this window object. | |
void | removeListener (MessageHandler listener) |
Removes a listener from this window object. | |
void | repaint (bool blank) |
Signals that the window needs to be repainted. | |
void | repaint (bool blank, Rect area) |
Signals that a portion of the window needs to be repainted. | |
Operators | |
final override intBool | opEquals (Object o) |
Determines whether this WindowBase is equal to another object. | |
final bool | opEquals (WindowBase a) |
Determines whether this WindowBase is equal to another WindowBase. | |
Protected Member Functions | |
this (Application a, HWND hwnd) | |
this (WindowBase p, HWND hwnd) | |
this (Application a) | |
this (WindowBase p) | |
final void | evDestroy (uint msg) |
int | processMessage (uint message, uint wParam, int lParam, WindowBase receivedVia) |
final int | intermediateProcessMessage (uint message, uint wParam, int lParam, WindowBase receivedVia, out bool swallow) |
final int | windowBasePredef (uint message, uint wParam, int lParam, WindowBase receivedVia, out bool swallow) |
int | defaultProcessMessage (uint message, uint wParam, int lParam) |
void | predefCommandHandler (uint notify, uint id) |
void | defaultCommandHandler (uint notify, uint id) |
int | predefNotifyHandler (uint notify, uint id, void *info) |
int | defaultNotifyHandler (uint notify, uint id, void *info) |
abstract void | initListeners () |
bool | _despatchDialogMessage (MSG *msg) |
Static Protected Member Functions | |
static synchronized WindowBase | findWindow (HWND windowHandle) |
static int | WindowProc (HWND windowHandle, uint message, WPARAM wParam, LPARAM lParam) |
static bool | _translateAccel (MSG *msg) |
static bool | _translateDialogMessage (WindowBase active, MSG *msg) |
Protected Attributes | |
string | _text |
HWND | _handle |
bool | _initialised = false |
int(* | handler )(uint message, uint wParam, int lParam)[uint] |
Associates each Windows message (WM_xxxx constant) with a handler method. | |
MessageHandler[uint] | messageHandler |
Associates each Windows message (WM_xxxx constant) with a handler method. | |
void(* | commandHandler )(uint notify, uint id)[uint] |
Associates each menu command, or the notification messages from each control within a dialog, with a handler method. | |
int(* | notifyHandler )(uint notify, uint id, void *info)[uint] |
Associates each control within a dialog with a handler method. | |
void(* | menuCommandHandler )(bool byAccel, uint id)[uint] |
Associates each menu or accelerator with a handler method. | |
uint | windowStyle |
WS_EX | _exStyle |
Static Protected Attributes | |
static WindowBase | newWindow |
Classes | |
struct | Listener |
typedef int(* smjg.libs.sdwf.windowbase.WindowBase.MessageHandler)(uint message, uint wParam, int lParam, WindowBase receivedVia, out bool swallow) |
The form of a message handler or listener method.
message | the WM_xxxx constant identifying the message. This is passed in so that similar handlings of different messages can be done by a single method and distinguished at call time. | |
wParam | the first of the two message-dependent parameters, as specified in the Windows API for the given message. | |
lParam | the second of the two message-dependent parameters. | |
receivedVia | the window object that actually received the message. This will usually be equal to this , but may be different if a FrameWindow is being used. | |
swallow | if the method sets this to true , the message will stop here. Otherwise, it will be passed down the message handling chain to listeners and/or default handling. |
typedef text smjg.libs.sdwf.windowbase.WindowBase.title |
smjg.libs.sdwf.windowbase.WindowBase.this | ( | Application | a, | |
HWND | hwnd | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.dialog.Dialog, and smjg.libs.sdwf.window.Window.
smjg.libs.sdwf.windowbase.WindowBase.this | ( | WindowBase | p, | |
HWND | hwnd | |||
) | [protected] |
smjg.libs.sdwf.windowbase.WindowBase.this | ( | Application | a | ) | [protected] |
smjg.libs.sdwf.windowbase.WindowBase.this | ( | WindowBase | p | ) | [protected] |
static synchronized WindowBase smjg.libs.sdwf.windowbase.WindowBase.findWindow | ( | HWND | windowHandle | ) | [static, protected] |
static int smjg.libs.sdwf.windowbase.WindowBase.WindowProc | ( | HWND | windowHandle, | |
uint | message, | |||
WPARAM | wParam, | |||
LPARAM | lParam | |||
) | [static, protected] |
static bool smjg.libs.sdwf.windowbase.WindowBase._translateAccel | ( | MSG * | msg | ) | [static, protected] |
static bool smjg.libs.sdwf.windowbase.WindowBase._translateDialogMessage | ( | WindowBase | active, | |
MSG * | msg | |||
) | [static, protected] |
abstract void smjg.libs.sdwf.windowbase.WindowBase.create | ( | ) | [pure virtual] |
Creates the Windows interface element represented by this WindowBase object.
Implemented in smjg.libs.sdwf.commoncontrol.TreeView, smjg.libs.sdwf.control.Control, smjg.libs.sdwf.dialog.Dialog, smjg.libs.sdwf.statusbar.StatusBar, and smjg.libs.sdwf.window.Window.
int smjg.libs.sdwf.windowbase.WindowBase.show | ( | ) |
Creates and displays the Windows interface element represented by this WindowBase object.
Reimplemented in smjg.libs.sdwf.dialog.Dialog.
void smjg.libs.sdwf.windowbase.WindowBase.focus | ( | ) |
Sets the keyboard focus on this interface element.
void smjg.libs.sdwf.windowbase.WindowBase.close | ( | int | exitCode = ID.CLOSE |
) |
Calls confirmClose, and if it returns true
, closes the window object.
exitCode | used only for a modal Dialog. The WindowBase implementation ignores this parameter. |
Reimplemented in smjg.libs.sdwf.dialog.Dialog.
ID smjg.libs.sdwf.windowbase.WindowBase.messageBox | ( | string | text, | |
string | boxTitle, | |||
MB | style | |||
) |
Displays a standard Windows message box, with this window or dialog as its parent.
text | the text to display in the message box. | |
boxTitle | the text to display in the title bar. | |
style | a bitwise combination of constants denoting the buttons, icon and other options. |
void smjg.libs.sdwf.windowbase.WindowBase.enableMenuItem | ( | uint | id, | |
MF | state | |||
) |
Enables or disables the specified menu item in this window's menu bar.
id | numeric ID of the menu item, or zero-based position on menu bar if MF.BYPOSITION is specifed. The latter currently allows only for enabling/disabling of top-level menus. | |
state | new enabled/disabled state. |
void smjg.libs.sdwf.windowbase.WindowBase.checkMenuItem | ( | uint | id, | |
MF | state | |||
) |
int smjg.libs.sdwf.windowbase.WindowBase.sendMessage | ( | uint | message, | |
uint | wParam = 0 , |
|||
int | lParam = 0 | |||
) |
Sends a window message to this window object.
message | the WM_xxxx constant identifying the message. | |
wParam | the first of the two message-dependent parameters, as specified in the Windows API for the chosen message. | |
lParam | the second of the two message-dependent parameters. |
int smjg.libs.sdwf.windowbase.WindowBase.postMessage | ( | uint | message, | |
uint | wParam = 0 , |
|||
int | lParam = 0 | |||
) |
Posts a window message for this window object to the message queue.
message | the WM_xxxx constant identifying the message. | |
wParam | the first of the two message-dependent parameters, as specified in the Windows API for the chosen message. | |
lParam | the second of the two message-dependent parameters. |
void smjg.libs.sdwf.windowbase.WindowBase.toClientCoords | ( | inout int | x, | |
inout int | y | |||
) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area.
x | the screen x-coordinate, which will be replaced by the client x-coordinate. | |
y | the screen y-coordinate, which will be replaced by the client y-coordinate. |
void smjg.libs.sdwf.windowbase.WindowBase.toClientCoords | ( | inout Point | p | ) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area.
p | point in screen coordinates, which will be replaced by client coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toClientCoords | ( | Point[] | p | ) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area.
p | array of points in screen coordinates, which will be replaced by client coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toClientCoords | ( | inout Rect | r | ) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area.
r | rectangle in screen coordinates, which will be replaced by client coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toClientCoords | ( | Rect[] | r | ) |
Transforms the given coordinates relative to the screen into coordinates relative to this window object's client area.
r | array of rectangles in screen coordinates, which will be replaced by client coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toScreenCoords | ( | inout int | x, | |
inout int | y | |||
) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen.
x | the client x-coordinate, which will be replaced by the screen x-coordinate. | |
y | the client y-coordinate, which will be replaced by the screen y-coordinate. |
void smjg.libs.sdwf.windowbase.WindowBase.toScreenCoords | ( | inout Point | p | ) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen.
p | point in client coordinates, which will be replaced by screen coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toScreenCoords | ( | Point[] | p | ) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen.
p | array of points in client coordinates, which will be replaced by screen coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toScreenCoords | ( | inout Rect | r | ) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen.
r | rectangle in client coordinates, which will be replaced by screen coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.toScreenCoords | ( | Rect[] | r | ) |
Transforms the given coordinates relative to this window object's client area into coordinates relative to the screen.
r | array of rectangles in client coordinates, which will be replaced by screen coordinates. |
void smjg.libs.sdwf.windowbase.WindowBase.addListener | ( | MessageHandler | listener, | |
int | priority = 0 | |||
) |
Adds a listener function to this window object.
Unilke Java AWT and various other GUI systems, the programmer does not usually need to create listeners, since most programmer-defined handling is done through WindowBase.handler and other similar associative arrays. Rather, listeners are mostly used internally, although a few are provided for the programmer to attach to a window.
Listener processing happens after WindowBase.handler lookup, and currently happens only if the received message is not listed in WindowBase.handler. It generally happens before processing of menu command and control notifications and those predefined by SDWF.
listener | the listener function to attach. | |
priority | the priority of the listener. The higher this value, the earlier it will come in the listener processing sequence. Listeners with the same priority will be processed in the order that they were added. The default value of zero is suitable for most purposes; generally values in the range -65536 to 65536 should be used to avoid conflicts with internal listeners. |
void smjg.libs.sdwf.windowbase.WindowBase.removeListener | ( | MessageHandler | listener | ) |
void smjg.libs.sdwf.windowbase.WindowBase.repaint | ( | bool | blank | ) |
void smjg.libs.sdwf.windowbase.WindowBase.repaint | ( | bool | blank, | |
Rect | area | |||
) |
override string smjg.libs.sdwf.windowbase.WindowBase.toString | ( | ) |
Returns a string representation of this WindowBase.
final override uint smjg.libs.sdwf.windowbase.WindowBase.toHash | ( | ) |
Returns a hash value of this WindowBase.
Application smjg.libs.sdwf.windowbase.WindowBase.application | ( | ) |
The Application object representing the application instance to which this window object belongs.
WindowBase smjg.libs.sdwf.windowbase.WindowBase.parent | ( | ) |
The parent of this window object.
null
if this is a top-level application window.HWND smjg.libs.sdwf.windowbase.WindowBase.handle | ( | ) |
The Windows handle of the interface element represented by this WindowBase object.
You would use this property if you need to call a Windows API function directly on the window, dialog or control.
DCState smjg.libs.sdwf.windowbase.WindowBase.dcState | ( | ) |
bool smjg.libs.sdwf.windowbase.WindowBase.enabled | ( | ) |
Whether the control is enabled, i.e.
currently accepting user interaction, as opposed to being 'greyed out'.
bool smjg.libs.sdwf.windowbase.WindowBase.enabled | ( | bool | e | ) |
Whether the control is enabled, i.e.
currently accepting user interaction, as opposed to being 'greyed out'.
int smjg.libs.sdwf.windowbase.WindowBase.textLength | ( | ) |
The length, in characters, of the caption text.
It is not necessary to interrogate this property in order to retrieve the text.
string smjg.libs.sdwf.windowbase.WindowBase.text | ( | ) |
The caption text of the window, dialog or control.
Reimplemented in smjg.libs.sdwf.control.EditBox, and smjg.libs.sdwf.statusbar.StatusBar.
string smjg.libs.sdwf.windowbase.WindowBase.text | ( | string | t | ) |
The caption text of the window, dialog or control.
WindowBaseException | if the operation fails because the text is too long, or this WindowBase object is a list box or combo box that does not accept text. |
Reimplemented in smjg.libs.sdwf.control.EditBox, and smjg.libs.sdwf.statusbar.StatusBar.
bool smjg.libs.sdwf.windowbase.WindowBase.visible | ( | ) |
Whether the window is currently visible.
Reimplemented in smjg.libs.sdwf.framewindow.Bar.
bool smjg.libs.sdwf.windowbase.WindowBase.visible | ( | bool | v | ) |
Whether the window is currently visible.
Reimplemented in smjg.libs.sdwf.framewindow.Bar.
Rect smjg.libs.sdwf.windowbase.WindowBase.sizeAndPosition | ( | ) |
A rectangle representing the size and position of this interface element.
For top-level and pop-up windows, this is in screen coordinates. For child objects, the coordinates are relative to the parent's client area.
Rect smjg.libs.sdwf.windowbase.WindowBase.sizeAndPosition | ( | Rect | pos | ) |
A rectangle representing the size and position of this interface element.
For top-level and pop-up windows, this is in screen coordinates. For child objects, the coordinates are relative to the parent's client area.
Rect smjg.libs.sdwf.windowbase.WindowBase.sizeAndPositionScreen | ( | ) |
A rectangle representing the size and position of this interface element, in screen coordinates.
Rect smjg.libs.sdwf.windowbase.WindowBase.sizeAndPositionScreen | ( | Rect | pos | ) |
A rectangle representing the size and position of this interface element, in screen coordinates.
Rect smjg.libs.sdwf.windowbase.WindowBase.clientArea | ( | ) |
A rectangle representing the size of the window's client area.
It is the rectangle denoting the client area in device coordinates.
HACCEL smjg.libs.sdwf.windowbase.WindowBase.accelerators | ( | ) |
Windows handle of the window's accelerator table.
HACCEL smjg.libs.sdwf.windowbase.WindowBase.accelerators | ( | HACCEL | h | ) |
Windows handle of the window's accelerator table.
HACCEL smjg.libs.sdwf.windowbase.WindowBase.accelerators | ( | LPCTSTR | i | ) |
HACCEL smjg.libs.sdwf.windowbase.WindowBase.accelerators | ( | uint | id | ) |
Sets the window's accelerator table.
id | numeric ID of the accelerator resource. |
HACCEL smjg.libs.sdwf.windowbase.WindowBase.accelerators | ( | string | name | ) |
Sets the window's accelerator table.
name | name of the accelerator resource. |
WS smjg.libs.sdwf.windowbase.WindowBase.style | ( | ) |
WS smjg.libs.sdwf.windowbase.WindowBase.style | ( | WS | s | ) |
The window style.
WS_EX smjg.libs.sdwf.windowbase.WindowBase.exStyle | ( | ) |
WS_EX smjg.libs.sdwf.windowbase.WindowBase.exStyle | ( | WS_EX | s | ) |
The window extended style.
MenuBar smjg.libs.sdwf.windowbase.WindowBase.menu | ( | MenuBar | m | ) |
void smjg.libs.sdwf.windowbase.WindowBase.menu | ( | int | id | ) |
void smjg.libs.sdwf.windowbase.WindowBase.menu | ( | string | name | ) |
The menu bar attached to this window object.
name | name of the menu resource. |
MenuException | if loading the menu failed. |
final override intBool smjg.libs.sdwf.windowbase.WindowBase.opEquals | ( | Object | o | ) |
final bool smjg.libs.sdwf.windowbase.WindowBase.opEquals | ( | WindowBase | a | ) |
Determines whether this WindowBase is equal to another WindowBase.
Two WindowBase objects are equal iff they have the same handle, i.e. they interface the same interface element.
final void smjg.libs.sdwf.windowbase.WindowBase.evDestroy | ( | uint | msg | ) | [protected] |
int smjg.libs.sdwf.windowbase.WindowBase.processMessage | ( | uint | message, | |
uint | wParam, | |||
int | lParam, | |||
WindowBase | receivedVia | |||
) | [protected] |
final int smjg.libs.sdwf.windowbase.WindowBase.intermediateProcessMessage | ( | uint | message, | |
uint | wParam, | |||
int | lParam, | |||
WindowBase | receivedVia, | |||
out bool | swallow | |||
) | [protected] |
final int smjg.libs.sdwf.windowbase.WindowBase.windowBasePredef | ( | uint | message, | |
uint | wParam, | |||
int | lParam, | |||
WindowBase | receivedVia, | |||
out bool | swallow | |||
) | [protected] |
int smjg.libs.sdwf.windowbase.WindowBase.defaultProcessMessage | ( | uint | message, | |
uint | wParam, | |||
int | lParam | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.mdi.MDIFrameWindow.
void smjg.libs.sdwf.windowbase.WindowBase.predefCommandHandler | ( | uint | notify, | |
uint | id | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.mdi.MDIFrameWindow, and smjg.libs.sdwf.window.Window.
void smjg.libs.sdwf.windowbase.WindowBase.defaultCommandHandler | ( | uint | notify, | |
uint | id | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.framewindow.FrameWindow, and smjg.libs.sdwf.mdi.MDIFrameWindow.
int smjg.libs.sdwf.windowbase.WindowBase.predefNotifyHandler | ( | uint | notify, | |
uint | id, | |||
void * | info | |||
) | [protected] |
Reimplemented in smjg.libs.sdwf.dialog.Dialog.
int smjg.libs.sdwf.windowbase.WindowBase.defaultNotifyHandler | ( | uint | notify, | |
uint | id, | |||
void * | info | |||
) | [protected] |
abstract void smjg.libs.sdwf.windowbase.WindowBase.initListeners | ( | ) | [protected, pure virtual] |
bool smjg.libs.sdwf.windowbase.WindowBase.confirmClose | ( | ) |
Determines whether it is OK to close the window or dialog.
Called when a request is made to close the window or dialog by any means. A subclass would override this, e.g. to prompt the user to save a modified data file before exiting.
WindowBase itself has no such checking, so it simply returns true.
true | to proceed with closing. | |
false | to cancel closing. |
Reimplemented in smjg.libs.sdwf.framewindow.FrameWindow.
void smjg.libs.sdwf.windowbase.WindowBase.setup | ( | ) | [protected] |
Carries out setup operations on the window or dialog.
A subclass would override this method to perform setup operations after the Windows interface element represented by this WindowBase object is created, and before the user can interact with it.
The WindowBase implementation does nothing.
Reimplemented in smjg.libs.sdwf.framewindow.FrameWindow.
void smjg.libs.sdwf.windowbase.WindowBase.onActivate | ( | ActivationEvent | event | ) |
Carries out operations when the window is made active.
The WindowBase implementation does nothing.
event | information about the event of changing the active window. |
Reimplemented in smjg.libs.sdwf.framewindow.FrameWindow.
void smjg.libs.sdwf.windowbase.WindowBase.onDeactivate | ( | ActivationEvent | event | ) |
Carries out operations when the window is made inactive.
The WindowBase implementation does nothing.
event | information about the event of changing the active window. |
Reimplemented in smjg.libs.sdwf.framewindow.FrameWindow.
void smjg.libs.sdwf.windowbase.WindowBase.cleanup | ( | ) | [protected] |
Carries out cleanup operations on the window or dialog.
A subclass would override this method to perform cleanup operations when the window is ready to be destroyed. It is always called before the window is destroyed or Windows is shut down, after the confirmClose method has been called and returned true.
The WindowBase implementation does nothing.
bool smjg.libs.sdwf.windowbase.WindowBase._despatchDialogMessage | ( | MSG * | msg | ) | [protected] |
Reimplemented in smjg.libs.sdwf.window.Window.
WindowBase smjg.libs.sdwf.windowbase.WindowBase.newWindow [static, protected] |
string smjg.libs.sdwf.windowbase.WindowBase._text [protected] |
HWND smjg.libs.sdwf.windowbase.WindowBase._handle [protected] |
bool smjg.libs.sdwf.windowbase.WindowBase._initialised = false [protected] |
int(* smjg.libs.sdwf.windowbase.WindowBase.handler)(uint message, uint wParam, int lParam)[uint] [protected] |
Associates each Windows message (WM_xxxx constant) with a handler method.
It is not necessary to assign a handler to every message that a window or dialog may receive. If none is found, a default handler will take care of the message, or ignore it if the message has no default handling.
message | the WM_xxxx constant identifying the message. This is passed in so that similar handlings of different messages can be done by a single method and distinguished at call time. | |
wParam | the first of the two message-dependent parameters, as specified in the Windows API for the given message. | |
lParam | the second of the two message-dependent parameters. |
MessageHandler [uint] smjg.libs.sdwf.windowbase.WindowBase.messageHandler [protected] |
void(* smjg.libs.sdwf.windowbase.WindowBase.commandHandler)(uint notify, uint id)[uint] [protected] |
Associates each menu command, or the notification messages from each control within a dialog, with a handler method.
notify | for dialog controls, the constant identifying the particular notification message that was sent. | |
id | the ID of the menu command or dialog control. This is passed in so that similar handlings of different commands or controls can be done by a single method and distinguished at call time. |
WM_COMMAND
message. This includes all Windows 9x controls inherited from Windows 3.x. For controls such as 'common controls' that use WM_NOTIFY
, see notifyHandler.int(* smjg.libs.sdwf.windowbase.WindowBase.notifyHandler)(uint notify, uint id, void *info)[uint] [protected] |
Associates each control within a dialog with a handler method.
This member can be used to handle both WM_COMMAND
and WM_NOTIFY
messages.
notify | the constant identifying the particular notification message that was sent. | |
id | the ID of the control that sent the message. This is passed in so that similar handlings of different controls can be done by a single method and distinguished at call time. | |
info | pointer to a Windows API structure containing information about the notification. This is useful for getting information from notification-specific structures passed in by some notifications. For notifications using WM_COMMAND rather than WM_NOTIFY , this parameter is null . |
WM_COMMAND
, this value is zero.void(* smjg.libs.sdwf.windowbase.WindowBase.menuCommandHandler)(bool byAccel, uint id)[uint] [protected] |
Associates each menu or accelerator with a handler method.
byAccel | true if the command was activated by an accelerator; false if it was activated by a menu. | |
id | the ID of the activated command. This is passed in so that similar handlings of different commands can be done by a single method and distinguished at call time. |
uint smjg.libs.sdwf.windowbase.WindowBase.windowStyle [protected] |
The window style (combination of WS_xxxx constants). Any changes to this field will be relevant only if made before the window is created.
WS_EX smjg.libs.sdwf.windowbase.WindowBase._exStyle [protected] |