/*
* PROJECT: ReactOS system libraries
* LICENSE: GPL - See COPYING in the top level directory
- * FILE: dll\win32\stobject\stobject.cpp
+ * FILE: dll/shellext/stobject/csystray.h
* PURPOSE: Systray shell service object
* PROGRAMMERS: Robert Naumann
- David Quintana <gigaherz@gmail.com>
+ * David Quintana <gigaherz@gmail.com>
+ * Shriraj Sawant a.k.a SR13 <sr.official@hotmail.com>
*/
+
#pragma once
extern const GUID CLSID_SysTray;
public CWindowImpl<CSysTray, CWindow, CMessageWndClass>,
public IOleCommandTarget
{
+ CComPtr<IOleCommandTarget> pctNetShell;
+
// TODO: keep icon handlers here
HWND hwndSysTray;
HRESULT InitIcons();
HRESULT ShutdownIcons();
HRESULT UpdateIcons();
- HRESULT ProcessIconMessage(UINT uMsg, WPARAM wParam, LPARAM lParam);
+ HRESULT ProcessIconMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult);
+
+ HRESULT InitNetShell();
+ HRESULT ShutdownNetShell();
public:
- HRESULT NotifyIcon(INT code, UINT uId, HICON hIcon, LPCWSTR szTip);
+ HRESULT NotifyIcon(INT code, UINT uId, HICON hIcon, LPCWSTR szTip, DWORD dwstate = 0);
HWND GetHWnd() { return m_hWnd; }