IShellWindows::OnActivated method
Occurs when a Shell window's activation state changes.
Syntax
HRESULT OnActivated( [in] long lCookie, [in] VARIANT_BOOL fActive );
Parameters
- lCookie [in]
-
Type: long
The cookie that identifies the window.
- fActive [in]
-
Type: VARIANT_BOOL
TRUE if the window is being activated; FALSE if the window is being deactivated.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
A window is granted a cookie when it is registered as a Shell window. For more information, see IShellWindows::Register.
Requirements
|
Product |
Internet Explorer 5 |
|---|---|
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Show: