|
OWLNext 6.32
|
Public Member Functions | |
| TFlatListBox (TWindow *parent, int Id, int x, int y, int w, int h, TModule *module=0) | |
| TFlatListBox (TWindow *parent, int resourceId, TModule *module=0) | |
| virtual bool | IdleAction (long idleCount) |
Protected Member Functions | |
| virtual void | SetupWindow () |
| void | EvPaint () |
| DECLARE_RESPONSE_TABLE (TFlatListBox) | |
| void owl::TFlatListBox::EvPaint | ( | ) | [protected] |
Intercept WM_PAINT to redirect from TWindow to the underlying control if this Owl object is just a wrapper for a predefined class. If the control has a predefined class, EvPaint calls TWindow::DefaultProcessing for painting. Otherwise, it calls TWindow::EvPaint.
Reimplemented from owl::TControl.
References owl::TDC::FrameRect(), owl::TWindow::GetClientRect(), owl::TWindow::GetHandle(), owl::TWindow::GetWindowRect(), owl::TBitFlags< uint >::IsSet(), owl::TWindow::IsWindowEnabled(), owl::TColor::LtGreen, owl::TWindow::MapWindowPoints(), owl::TRect::Offset(), and owl::TColor::SysWindow.
| void owl::TFlatListBox::SetupWindow | ( | ) | [protected, virtual] |
Performs setup following creation of an associated MS-Windows window.
The first virtual function called when the HWindow becomes valid. TWindow's implementation performs window setup by iterating through the child list, attempting to create an associated interface element for each child window object for which autocreation is enabled. (By default, autocreation is enabled for windows and controls, and disabled for dialog boxes.) If a child window cannot be created, SetupWindow calls TXWindow with an IDS_CHILDCREATEFAIL message.
If the receiver has a TScroller object, calls the scroller's SetBarRange() method.
SetupWindow can be redefined in derived classes to perform additional special initialization. Note that the HWindow is valid when the overridden SetupWindow is called, and that the children's HWindows are valid after calling the base classes' SetupWindow function.
The following example from the sample program, APPWIN.CPP, illustrates the use of an overridden SetupWindow to setup a window, initialize .INI entries, and tell Windows that we want to accept drag and drop transactions:
void TAppWindow::SetupWindow() { TFloatingFrame::SetupWindow(); InitEntries(); // Initialize .INI entries. RestoreFromINIFile(); // from APPLAUNC.INI in the startup directory UpdateAppButtons(); DragAcceptFiles(true); }
Reimplemented from owl::TWindow.
References owl::TWindow::SetupWindow().
1.7.4