InitFocusOwnerIterator
The InitFocusOwnerIterator method initializes this focus-owner iterator object.
void InitFocusOwnerIterator (in ODTypeToken focus, in ODFocusModule focusModule);
focus- A tokenized string representing the nonexclusive focus type of the owners returned by this iterator, expressed as a 32-bit value.
focusModule- A reference to a focus module that lists the owners of the specified focus.
DISCUSSION
Thefocusparameter must be the tokenized form of one of the focus constants (kODClipboardFocus,kODKeyFocus,kODMenuFocus,kODModalFocus,kODMouseFocus,kODScrollingFocus, orkODSelectionFocus) or the tokenized form of a part-specific focus type. You can call the session object'sTokenizemethod to obtain a token corresponding to one of these constants.This method is not called directly to initialize this focus-owner iterator object, but is called by a subclass-specific initialization method. By convention, every subclass of
ODFocusOwnerIteratorshould have a separate initialization method (for example, theInitMyFocusOwnerIteratormethod) that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of theInitFocusOwnerIteratormethod. TheInitMyFocusOwnerIteratormethod should call the inheritedInitFocusOwnerIteratormethod at the beginning of its implementation.If you subclass
ODFocusOwnerIterator, your subclass-specific initialization method, rather than itssomInitmethod, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your focus-owner iterator.OVERRIDING
If you subclassODFocusOwnerIterator, you must not override this method.SEE ALSO
TheODFocusTypetype (page 889).
TheODTypeTokentype (page 877).
TheODSession::Tokenizemethod (page 622).