wpCnrRemoveObject
Appearance
This instance method is called to remove a record from a container control window.
Syntax
_wpCnrRemoveObject(somSelf, hwndCnr)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
- hwndCnr (HWND) - input
- Handle of the container control (WC_CONTAINER) window.
Returns
- rc (BOOL) - returns
- Success indicator.
- TRUE: Successful completion.
- FALSE: Error occurred.
Remarks
When an object is removed from a container, the USAGE_RECORD item that was added to the in-use list when the object was inserted is removed.
Usage
This method removes records inserted by calling either wpCnrInsertObject or wpclsInsertMultipleObjects.
How to Override
This method is generally not overridden.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ HWND hwndCnr; /* Handle of the container control (WC_CONTAINER) window. */ BOOL rc; /* Success indicator. */ rc = _wpCnrRemoveObject(somSelf, hwndCnr);