Inherits Widget, MessageMapPolicy, and MessageMapBase.
Inherited by WidgetWindowBase.
Public Types | |
typedef bool(*) | boolFunctionTakingInt (EventHandlerClass *, int) |
Typedef of a static/global function taking a pointer to the original class and one int returning bool. | |
typedef bool(*) | boolFunctionTakingTstring (EventHandlerClass *, const SmartUtil::tstring &) |
Typedef of a static/global function taking a pointer to the original class and a const SmartUtil::tstring & returning bool. | |
typedef bool(*) | boolFunctionTakingVoid (EventHandlerClass *) |
Typedef of a static/global function taking a pointer to the original class returning bool. | |
typedef HRESULT(*) | hresultFunctionTakingLparamWparam (EventHandlerClass *, LPARAM, WPARAM) |
Typedef of a static/global function taking a pointer to the original class, LPARAM and WPARAM returning HRESULT. | |
typedef bool(EventHandlerClass::*) | itsBoolFunctionTakingInt (int) |
Typedef of a member function to the original class taking one int returning bool. | |
typedef bool(EventHandlerClass::*) | itsBoolFunctionTakingTstring (const SmartUtil::tstring &) |
Typedef of a member function to the original class taking const SmartUtil::tstring & returning bool. | |
typedef bool(EventHandlerClass::*) | itsBoolFunctionTakingVoid () |
Typedef of a member function to the original class taking void returning bool. | |
typedef HRESULT(EventHandlerClass::*) | itsHresultFunctionTakingLparamWparam (LPARAM, WPARAM) |
Typedef of a member function to the original class taking LPARAM and WPARAM returning HRESULT. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingBool (bool) |
Typedef of a member function to the original class taking one bool returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingCanvas (Canvas &) |
Typedef of a member function to the original class taking Canvas & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingCommand (const CommandPtr &) |
Typedef of a member function to the original class taking const CommandPtr & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingConstString (const SmartUtil::tstring &) |
Typedef of a member function to the original class taking one SmartUtil::tstring & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingInt (int) |
Typedef of a member function to the original class taking one int returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingMouseEventResult (const MouseEventResult &) |
Typedef of a member function to the original class taking const MouseEventResult & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingPoint (const Point &) |
Typedef of a member function to the original class taking const Point & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingSeedPointer (const SmartWin::Seed &) |
Typedef of a member function to the original class taking const CreationalStruct & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingString (SmartUtil::tstring &) |
Typedef of a member function to the original class taking one SmartUtil::tstring & returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingVoid () |
Typedef of a member function to the original class taking void returning void. | |
typedef void(EventHandlerClass::*) | itsVoidFunctionTakingWindowSizedEventResult (const WidgetSizedEventResult &) |
Typedef of a member function to the original class taking const WidgetSizedEventResult & returning void. | |
typedef void(*) | voidFunctionTaking2Bool (EventHandlerClass *, bool, bool) |
Typedef of a static/global function taking a pointer to the original class and two bool returning void. | |
typedef void(*) | voidFunctionTakingBool (EventHandlerClass *, bool) |
Typedef of a static/global function taking a pointer to the original class and one bool returning void. | |
typedef void(*) | voidFunctionTakingCanvas (EventHandlerClass *, Canvas &) |
Typedef of a static/global function taking a pointer to the original class and a Canvas & returning void. | |
typedef void(*) | voidFunctionTakingCommand (EventHandlerClass *, const CommandPtr &) |
Typedef of a static/global function taking a pointer to the original class and a const CommandPtr & returning void. | |
typedef void(*) | voidFunctionTakingConstString (EventHandlerClass *, const SmartUtil::tstring &) |
Typedef of a static/global function taking a pointer to the original class and one SmartUtil::tstring & returning void. | |
typedef void(*) | voidFunctionTakingInt (EventHandlerClass *, int) |
Typedef of a static/global function taking a pointer to the original class and one int returning void. | |
typedef void(*) | voidFunctionTakingMouseEventResult (EventHandlerClass *, const MouseEventResult &) |
Typedef of a static/global function taking a pointer to the original class and a const MouseEventResult & returning void. | |
typedef void(*) | voidFunctionTakingPoint (EventHandlerClass *, const Point &) |
Typedef of a static/global function taking a pointer to the original class and a const Point & returning void. | |
typedef void(*) | voidFunctionTakingSeedPointer (EventHandlerClass *, const SmartWin::Seed &) |
Typedef of a static/global function taking a pointer to the original class and a const CreationalStruct & returning void. | |
typedef void(*) | voidFunctionTakingString (EventHandlerClass *, SmartUtil::tstring &) |
Typedef of a static/global function taking a pointer to the original class and one SmartUtil::tstring & returning void. | |
typedef void(*) | voidFunctionTakingVoid (EventHandlerClass *) |
Typedef of a static/global function taking a pointer to the original class returning void. | |
typedef void(*) | voidFunctionTakingWindowSizedEventResult (EventHandlerClass *, const WidgetSizedEventResult &) |
Typedef of a static/global function taking a pointer to the original class and a const WidgetSizedEventResult & returning void. | |
Public Member Functions | |
void | addRemoveExStyle (DWORD addStyle, bool add) |
Use this function to add or remove windows exStyles. | |
void | addRemoveStyle (DWORD addStyle, bool add) |
Use this function to add or remove windows styles. | |
Utilities::CriticalSection & | getCriticalSection () |
Returns a CriticalSection associated with the current Widget object. | |
HMENU | getCtrlId () const |
Returns the control id of the Widget. | |
Widget * | getParent () const |
Returns the parent Widget of the Widget. | |
HWND | handle () const |
Returns the HWND to the Widget. | |
void | invalidateWidget () |
Add this widget to the update area. | |
virtual void | subclass (unsigned id) |
Subclasses the dialog item with the given dialog item id. | |
void | updateWidget () |
Repaints the whole window. | |
Protected Member Functions | |
virtual LRESULT | sendWidgetMessage (HWND hWnd, UINT msg, WPARAM &wPar, LPARAM &lPar) |
Send a message to the Widget. |
Is the "default" message handler class for all Container Widgets (every Widget which inherits from WidgetWindowBase).
If a message is not handled by anything else it goes into this class to check if we should handle this message or not.
If the message is NOT handled it is returned to windows OS for handling.
Shouldn't be of much interest directly to a user of SmartWin unless it is being overridden to handle messages not possible to reach with event handlers in SmartWin. Even this is possible through using the AspectRaw::onRaw instead of overriding functions in this class!
Related classes
void addRemoveExStyle | ( | DWORD | addStyle, | |
bool | add | |||
) | [inherited] |
Use this function to add or remove windows exStyles.
The first parameter is the type of style you wish to add/remove.
The second argument is a boolean indicating if you wish to add or remove the style (if true add style, else remove)
void addRemoveStyle | ( | DWORD | addStyle, | |
bool | add | |||
) | [inherited] |
Use this function to add or remove windows styles.
The first parameter is the type of style you wish to add/remove.
The second argument is a boolean indicating if you wish to add or remove the style (if true add style, else remove)
Utilities::CriticalSection & getCriticalSection | ( | ) | [inherited] |
Returns a CriticalSection associated with the current Widget object.
If you need serialized thread safe access to the Widget call this function and either stuff the returned object into a Utilities::ThreadLock or call Utilities::CriticalSection::lock (then you manually have to ensure CriticalSection::unlock is called on it)
HMENU getCtrlId | ( | ) | const [inherited] |
Returns the control id of the Widget.
This one only makes sense for control items, e.g. WidgetButton, WidgetComboBox etc.
Every control in a Widget has got its own control ID, mark that for a WidgetWindow this will always be ZERO
Widget* getParent | ( | ) | const [inherited] |
HWND handle | ( | ) | const [inherited] |
void invalidateWidget | ( | ) | [inherited] |
Add this widget to the update area.
Same as updateWidget except that this does not force an immediate redraw.
virtual LRESULT sendWidgetMessage | ( | HWND | hWnd, | |
UINT | msg, | |||
WPARAM & | wPar, | |||
LPARAM & | lPar | |||
) | [protected, virtual] |
Send a message to the Widget.
If you need to be able to send a message to a Widget then use this function as it will unroll into
a SendMessage from the Windows API
Implements Widget.
Reimplemented in WidgetMDIChild, WidgetWindowBase, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyModalDialogWidget >, WidgetWindowBase< EventHandlerClass, SmartWin::MessageMapPolicyDialogWidget >, and WidgetWindowBase< EventHandlerClass, unUsed >.
void subclass | ( | unsigned | id | ) | [virtual, inherited] |
Subclasses the dialog item with the given dialog item id.
Subclasses a dialog item, the id is the dialog item id from the resource editor.
Should normally not be called directly but rather called from e.g. one of the creational functions found in the WidgetFactory class.
void updateWidget | ( | ) | [inherited] |
Repaints the whole window.
Invalidate the window and repaints it.