A SERVICE OF

logo

The TSearchDialog and TFileDialog classes have been removed from
TSearchDialog
ObjectWindows. Use the TReplaceDialog or TFindDialog class in place of
and TFileDialog
TSearchDialog and the TFileOpenDialog class in place of the TFileDialog class.
classes
These new classes are based on the class TCommonDialog, which
encapsulates the base functionality of the Windows common dialogs.
The ActivationResponse function has been removed from the TWindow and
ActivationResponse
TWindowsObject classes. Determining when a window has been activated
function
can be done by catching the appropriate message, like
WM_MDIA TIVA E, WM_A TIVA E, or WM_SETFOCUS asC T C T
appropriate. Y u can find an example of using WM_A TIVA E too C T
determine when a window is active in the SCRNSAVE example, which is
located in the EXAMPLES\OWL\SCRNSAVE directory of your Borland
C++ installation. Y u can find an example of using WM_SETFOCUS in theo
BSCRLAPP example, which is located in the EXAMPLES\OWL\
BSCRLAPP directory of your Borland C++ installation.
The BeforeDispatchHandler and AfterDispatchHandler functions have been
Dispatch-handling
removed from ObjectWindows. Y u can obtain similar functionality byo
functions
overriding WindowP oc for a TWindow-derived class. The procedure forr
doing this is:
1. Overload the WindowP oc function in your derived class.r
2. In your WindowP oc function, do some processing before calling ther
default TBaseClass::WindowP oc.r
3. Call TBaseClass::WindowP oc.r
4. Save the return value from TBaseClass::WindowP oc.r
5. Do some processing after TBaseClass::WindowP oc has executed.r
6. Return the saved return value when you exit your WindowP oc.r
For example:
LRESULT TMyWindow::WindowProc(UINT msg, WPARAM wParam, LPARAM lParam) {
// Do whatever ’before’ processing you want here.
BeforeHandling();
LRESULT ret = TFrameWindow::WindowProc(message, wParam, lParam);
// Do whatever ’after’ processing you want here.
AfterHandling();
return ret;
}
Appendix A, Converting ObjectWindows 1.0 code to ObjectWindows 2.0
387