ReactOS  0.4.14-dev-317-g96040ec
CTaskBand Class Reference
Inheritance diagram for CTaskBand:
Collaboration diagram for CTaskBand:

Public Member Functions

 CTaskBand ()
 
virtual ~CTaskBand ()
 
virtual HRESULT STDMETHODCALLTYPE GetWindow (OUT HWND *phwnd)
 
virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp (IN BOOL fEnterMode)
 
virtual HRESULT STDMETHODCALLTYPE ShowDW (IN BOOL bShow)
 
virtual HRESULT STDMETHODCALLTYPE CloseDW (IN DWORD dwReserved)
 
virtual HRESULT STDMETHODCALLTYPE ResizeBorderDW (LPCRECT prcBorder, IUnknown *punkToolbarSite, BOOL fReserved)
 
virtual HRESULT STDMETHODCALLTYPE GetBandInfo (IN DWORD dwBandID, IN DWORD dwViewMode, IN OUT DESKBANDINFO *pdbi)
 
virtual HRESULT STDMETHODCALLTYPE QueryStatus (const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds [], OLECMDTEXT *pCmdText)
 
virtual HRESULT STDMETHODCALLTYPE Exec (const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
 
virtual HRESULT STDMETHODCALLTYPE SetClient (IN IUnknown *punkClient)
 
virtual HRESULT STDMETHODCALLTYPE GetClient (OUT IUnknown **ppunkClient)
 
virtual HRESULT STDMETHODCALLTYPE OnPosRectChangeDB (IN RECT *prc)
 
virtual HRESULT STDMETHODCALLTYPE GetClassID (OUT CLSID *pClassID)
 
virtual HRESULT STDMETHODCALLTYPE IsDirty ()
 
virtual HRESULT STDMETHODCALLTYPE Load (IN IStream *pStm)
 
virtual HRESULT STDMETHODCALLTYPE Save (IN IStream *pStm, IN BOOL fClearDirty)
 
virtual HRESULT STDMETHODCALLTYPE GetSizeMax (OUT ULARGE_INTEGER *pcbSize)
 
virtual HRESULT STDMETHODCALLTYPE SetSite (IUnknown *pUnkSite)
 
virtual HRESULT STDMETHODCALLTYPE GetSite (IN REFIID riid, OUT VOID **ppvSite)
 
virtual HRESULT STDMETHODCALLTYPE ProcessMessage (IN HWND hWnd, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lParam, OUT LRESULT *plrResult)
 
virtual HRESULT STDMETHODCALLTYPE ContainsWindow (IN HWND hWnd)
 
virtual HRESULT STDMETHODCALLTYPE OnWinEvent (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *theResult)
 
virtual HRESULT STDMETHODCALLTYPE IsWindowOwner (HWND hWnd)
 
HRESULT STDMETHODCALLTYPE Initialize (IN OUT ITrayWindow *tray, HWND hWndStartButton)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 
- Public Member Functions inherited from IObjectWithSite
HRESULT GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 
- Public Member Functions inherited from IDeskBand
HRESULT GetBandInfo ([in] DWORD dwBandID, [in] DWORD dwViewMode, [in, out] DESKBANDINFO *pdbi)
 
- Public Member Functions inherited from IDockingWindow
HRESULT ShowDW ([in] BOOL fShow)
 
HRESULT CloseDW ([in] DWORD dwReserved)
 
- Public Member Functions inherited from IOleWindow
HRESULT GetWindow ([out] HWND *phwnd)
 
HRESULT ContextSensitiveHelp ([in] BOOL fEnterMode)
 
- Public Member Functions inherited from IDeskBar
HRESULT SetClient ([in] IUnknown *punkClient)
 
HRESULT GetClient ([out] IUnknown **ppunkClient)
 
HRESULT OnPosRectChangeDB ([in] RECT *prc)
 
- Public Member Functions inherited from IPersistStream
HRESULT Load ([in, unique] IStream *pStm)
 
HRESULT Save ([in, unique] IStream *pStm, [in] BOOL fClearDirty)
 
HRESULT GetSizeMax ([out] ULARGE_INTEGER *pcbSize)
 
- Public Member Functions inherited from IPersist
HRESULT GetClassID ([out] CLSID *pClassID)
 

Private Attributes

CComPtr< ITrayWindow > m_Tray
 
CComPtr< IUnknownm_Site
 
CComPtr< IUnknownm_TasksWnd
 
HWND m_hWnd
 

Additional Inherited Members

- Public Types inherited from IObjectWithSite
typedef IObjectWithSiteLPOBJECTWITHSITE
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Public Types inherited from IOleWindow
typedef IOleWindowLPOLEWINDOW
 
- Public Types inherited from IPersistStream
typedef IPersistStreamLPPERSISTSTREAM
 
- Public Types inherited from IPersist
typedef IPersistLPPERSIST
 
- Public Types inherited from IOleCommandTarget
enum  OLECMDF {
  OLECMDF_SUPPORTED = 0x1, OLECMDF_ENABLED = 0x2, OLECMDF_LATCHED = 0x4, OLECMDF_NINCHED = 0x8,
  OLECMDF_INVISIBLE = 0x10, OLECMDF_DEFHIDEONCTXTMENU = 0x20
}
 
enum  OLECMDTEXTF { OLECMDTEXTF_NONE = 0, OLECMDTEXTF_NAME = 1, OLECMDTEXTF_STATUS = 2 }
 
enum  OLECMDEXECOPT { OLECMDEXECOPT_DODEFAULT = 0, OLECMDEXECOPT_PROMPTUSER = 1, OLECMDEXECOPT_DONTPROMPTUSER = 2, OLECMDEXECOPT_SHOWHELP = 3 }
 
enum  OLECMDID {
  OLECMDID_OPEN = 1, OLECMDID_NEW = 2, OLECMDID_SAVE = 3, OLECMDID_SAVEAS = 4,
  OLECMDID_SAVECOPYAS = 5, OLECMDID_PRINT = 6, OLECMDID_PRINTPREVIEW = 7, OLECMDID_PAGESETUP = 8,
  OLECMDID_SPELL = 9, OLECMDID_PROPERTIES = 10, OLECMDID_CUT = 11, OLECMDID_COPY = 12,
  OLECMDID_PASTE = 13, OLECMDID_PASTESPECIAL = 14, OLECMDID_UNDO = 15, OLECMDID_REDO = 16,
  OLECMDID_SELECTALL = 17, OLECMDID_CLEARSELECTION = 18, OLECMDID_ZOOM = 19, OLECMDID_GETZOOMRANGE = 20,
  OLECMDID_UPDATECOMMANDS = 21, OLECMDID_REFRESH = 22, OLECMDID_STOP = 23, OLECMDID_HIDETOOLBARS = 24,
  OLECMDID_SETPROGRESSMAX = 25, OLECMDID_SETPROGRESSPOS = 26, OLECMDID_SETPROGRESSTEXT = 27, OLECMDID_SETTITLE = 28,
  OLECMDID_SETDOWNLOADSTATE = 29, OLECMDID_STOPDOWNLOAD = 30, OLECMDID_ONTOOLBARACTIVATED = 31, OLECMDID_FIND = 32,
  OLECMDID_DELETE = 33, OLECMDID_HTTPEQUIV = 34, OLECMDID_HTTPEQUIV_DONE = 35, OLECMDID_ENABLE_INTERACTION = 36,
  OLECMDID_ONUNLOAD = 37, OLECMDID_PROPERTYBAG2 = 38, OLECMDID_PREREFRESH = 39, OLECMDID_SHOWSCRIPTERROR = 40,
  OLECMDID_SHOWMESSAGE = 41, OLECMDID_SHOWFIND = 42, OLECMDID_SHOWPAGESETUP = 43, OLECMDID_SHOWPRINT = 44,
  OLECMDID_CLOSE = 45, OLECMDID_ALLOWUILESSSAVEAS = 46, OLECMDID_DONTDOWNLOADCSS = 47, OLECMDID_UPDATEPAGESTATUS = 48,
  OLECMDID_PRINT2 = 49, OLECMDID_PRINTPREVIEW2 = 50, OLECMDID_SETPRINTTEMPLATE = 51, OLECMDID_GETPRINTTEMPLATE = 52,
  OLECMDID_PAGEACTIONBLOCKED = 55, OLECMDID_PAGEACTIONUIQUERY = 56, OLECMDID_FOCUSVIEWCONTROLS = 57, OLECMDID_FOCUSVIEWCONTROLSQUERY = 58,
  OLECMDID_SHOWPAGEACTIONMENU = 59, OLECMDID_ADDTRAVELENTRY = 60, OLECMDID_UPDATETRAVELENTRY = 61, OLECMDID_UPDATEBACKFORWARDSTATE = 62,
  OLECMDID_OPTICAL_ZOOM = 63, OLECMDID_OPTICAL_GETZOOMRANGE = 64, OLECMDID_WINDOWSTATECHANGED = 65, OLECMDID_ACTIVEXINSTALLSCOPE = 66,
  OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67, OLECMDID_SHOWTASKDLG = 68, OLECMDID_POPSTATEEVENT = 69, OLECMDID_VIEWPORT_MODE = 70,
  OLECMDID_LAYOUT_VIEWPORT_WIDTH = 71, OLECMDID_VISUAL_VIEWPORT_EXCLUDE_BOTTOM = 72, OLECMDID_USER_OPTICAL_ZOOM = 73, OLECMDID_PAGEAVAILABLE = 74,
  OLECMDID_GETUSERSCALABLE = 75, OLECMDID_UPDATE_CARET = 76, OLECMDID_ENABLE_VISIBILITY = 77, OLECMDID_MEDIA_PLAYBACK = 78
}
 
typedef IOleCommandTargetLPOLECOMMANDTARGET
 
typedef enum IOleCommandTarget::OLECMDF OLECMDF
 
typedef struct IOleCommandTarget::_tagOLECMD OLECMD
 
typedef struct IOleCommandTarget::_tagOLECMDTEXT OLECMDTEXT
 
typedef enum IOleCommandTarget::OLECMDTEXTF OLECMDTEXTF
 
typedef enum IOleCommandTarget::OLECMDEXECOPT OLECMDEXECOPT
 
typedef enum IOleCommandTarget::OLECMDID OLECMDID
 
- Static Public Member Functions inherited from ATL::CComCoClass< CTaskBand >
static LPCTSTR WINAPI GetObjectDescription ()
 
- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 29 of file taskband.cpp.

Constructor & Destructor Documentation

◆ CTaskBand()

CTaskBand::CTaskBand ( )
inline

Definition at line 46 of file taskband.cpp.

46  :
47  m_hWnd(NULL)
48  {
49  }
HWND m_hWnd
Definition: taskband.cpp:43
smooth NULL
Definition: ftsmooth.c:416

◆ ~CTaskBand()

virtual CTaskBand::~CTaskBand ( )
inlinevirtual

Definition at line 51 of file taskband.cpp.

51 { }

Member Function Documentation

◆ CloseDW()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::CloseDW ( IN DWORD  dwReserved)
inlinevirtual

Definition at line 79 of file taskband.cpp.

81  {
82  /* We don't do anything... */
83  return S_OK;
84  }
#define S_OK
Definition: intsafe.h:59

◆ ContainsWindow()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::ContainsWindow ( IN HWND  hWnd)
inlinevirtual

Definition at line 300 of file taskband.cpp.

302  {
303  if (hWnd == m_hWnd ||
304  IsChild(m_hWnd, hWnd))
305  {
306  TRACE("CTaskBand::ContainsWindow(0x%p) returns S_OK\n", hWnd);
307  return S_OK;
308  }
309 
310  return S_FALSE;
311  }
HWND hWnd
Definition: settings.c:17
HWND m_hWnd
Definition: taskband.cpp:43
#define S_FALSE
Definition: winerror.h:2357
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
BOOL WINAPI IsChild(_In_ HWND, _In_ HWND)

◆ ContextSensitiveHelp()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::ContextSensitiveHelp ( IN BOOL  fEnterMode)
inlinevirtual

Definition at line 65 of file taskband.cpp.

67  {
68  /* FIXME: Implement */
69  return E_NOTIMPL;
70  }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Exec()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::Exec ( const GUID pguidCmdGroup,
DWORD  nCmdID,
DWORD  nCmdexecopt,
VARIANT pvaIn,
VARIANT pvaOut 
)
inlinevirtual

Implements IOleCommandTarget.

Definition at line 160 of file taskband.cpp.

161  {
162  if (IsEqualIID(*pguidCmdGroup, IID_IBandSite))
163  {
164  return S_OK;
165  }
166 
167  if (IsEqualIID(*pguidCmdGroup, IID_IDeskBand))
168  {
169  return S_OK;
170  }
171 
173  return E_NOTIMPL;
174  }
#define S_OK
Definition: intsafe.h:59
#define E_NOTIMPL
Definition: ddrawi.h:99
#define UNIMPLEMENTED
Definition: debug.h:114
#define IsEqualIID(riid1, riid2)
Definition: guiddef.h:95

◆ GetBandInfo()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetBandInfo ( IN DWORD  dwBandID,
IN DWORD  dwViewMode,
IN OUT DESKBANDINFO pdbi 
)
inlinevirtual

Definition at line 95 of file taskband.cpp.

99  {
100  TRACE("CTaskBand::GetBandInfo(0x%x,0x%x,0x%p) hWnd=0x%p\n", dwBandID, dwViewMode, pdbi, m_hWnd);
101 
102  if (m_hWnd != NULL)
103  {
104  HWND hwndToolbar = ::GetWindow(m_hWnd, GW_CHILD);
105 
106  /* The task band never has a title */
107  pdbi->dwMask &= ~DBIM_TITLE;
108 
109  /* NOTE: We don't return DBIMF_UNDELETEABLE here, the band site will
110  handle us differently and add this flag for us. The reason for
111  this is future changes that might allow it to be deletable.
112  We want the band site to be in charge of this decision rather
113  the band itself! */
114  /* FIXME: What about DBIMF_NOGRIPPER and DBIMF_ALWAYSGRIPPER */
115  pdbi->dwModeFlags = DBIMF_VARIABLEHEIGHT;
116 
117  /* Obtain the button size, to be used as the minimum size */
118  DWORD size = SendMessageW(hwndToolbar, TB_GETBUTTONSIZE, 0, 0);
119  pdbi->ptMinSize.x = 0;
120  pdbi->ptMinSize.y = GET_Y_LPARAM(size);
121 
122  if (dwViewMode & DBIF_VIEWMODE_VERTICAL)
123  {
124  pdbi->ptIntegral.x = 0;
125  pdbi->ptIntegral.y = 1;
126  }
127  else
128  {
129  pdbi->ptIntegral.x = 0;
130  pdbi->ptIntegral.y = GET_Y_LPARAM(size);
131  }
132 
133  /* Ignored: pdbi->ptMaxSize.x */
134  pdbi->ptMaxSize.y = -1;
135 
136  RECT rcToolbar;
137  ::GetWindowRect(hwndToolbar, &rcToolbar);
138  /* FIXME: We should query the height from the task bar object!!! */
139  pdbi->ptActual.x = rcToolbar.right - rcToolbar.left;
140  pdbi->ptActual.y = rcToolbar.bottom - rcToolbar.top;
141 
142  TRACE("H: %d, Min: %d,%d, Integral.y: %d Actual: %d,%d\n", (dwViewMode & DBIF_VIEWMODE_VERTICAL) == 0,
143  pdbi->ptMinSize.x, pdbi->ptMinSize.y, pdbi->ptIntegral.y,
144  pdbi->ptActual.x, pdbi->ptActual.y);
145 
146  return S_OK;
147  }
148 
149  return E_FAIL;
150  }
#define GW_CHILD
Definition: winuser.h:758
LONG top
Definition: windef.h:292
LONG left
Definition: windef.h:291
LONG right
Definition: windef.h:293
#define E_FAIL
Definition: ddrawi.h:102
HWND m_hWnd
Definition: taskband.cpp:43
smooth NULL
Definition: ftsmooth.c:416
#define TB_GETBUTTONSIZE
Definition: commctrl.h:1156
#define TRACE(s)
Definition: solgame.cpp:4
GLsizeiptr size
Definition: glext.h:5919
unsigned long DWORD
Definition: ntddk_ex.h:95
virtual HRESULT STDMETHODCALLTYPE GetWindow(OUT HWND *phwnd)
Definition: taskband.cpp:55
#define S_OK
Definition: intsafe.h:59
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define GET_Y_LPARAM(lp)
Definition: windowsx.h:275
LONG bottom
Definition: windef.h:294
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)

◆ GetClassID()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetClassID ( OUT CLSID pClassID)
inlinevirtual

Definition at line 204 of file taskband.cpp.

206  {
207  TRACE("CTaskBand::GetClassID(0x%p)\n", pClassID);
208  /* We're going to return the (internal!) CLSID of the task band interface */
209  *pClassID = CLSID_ITaskBand;
210  return S_OK;
211  }
const GUID CLSID_ITaskBand
Definition: taskband.cpp:27
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59

◆ GetClient()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetClient ( OUT IUnknown **  ppunkClient)
inlinevirtual

Definition at line 185 of file taskband.cpp.

187  {
188  TRACE("IDeskBar::GetClient(0x%p)\n", ppunkClient);
189  return E_NOTIMPL;
190  }
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ GetSite()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetSite ( IN REFIID  riid,
OUT VOID **  ppvSite 
)
inlinevirtual

Definition at line 272 of file taskband.cpp.

275  {
276  TRACE("CTaskBand::GetSite(0x%p,0x%p)\n", riid, ppvSite);
277 
278  if (m_Site != NULL)
279  {
280  return m_Site->QueryInterface(riid, ppvSite);
281  }
282 
283  *ppvSite = NULL;
284  return E_FAIL;
285  }
REFIID riid
Definition: precomp.h:44
#define E_FAIL
Definition: ddrawi.h:102
smooth NULL
Definition: ftsmooth.c:416
#define TRACE(s)
Definition: solgame.cpp:4
CComPtr< IUnknown > m_Site
Definition: taskband.cpp:40

◆ GetSizeMax()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetSizeMax ( OUT ULARGE_INTEGER pcbSize)
inlinevirtual

Definition at line 235 of file taskband.cpp.

237  {
238  TRACE("CTaskBand::GetSizeMax called\n");
239  /* We don't need any space for the task band */
240  pcbSize->QuadPart = 0;
241  return S_OK;
242  }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59

◆ GetWindow()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::GetWindow ( OUT HWND phwnd)
inlinevirtual

Definition at line 55 of file taskband.cpp.

56  {
57  if (!m_hWnd)
58  return E_FAIL;
59  if (!phwnd)
60  return E_INVALIDARG;
61  *phwnd = m_hWnd;
62  return S_OK;
63  }
#define E_FAIL
Definition: ddrawi.h:102
HWND m_hWnd
Definition: taskband.cpp:43
#define E_INVALIDARG
Definition: ddrawi.h:101
#define S_OK
Definition: intsafe.h:59

Referenced by GetBandInfo().

◆ Initialize()

HRESULT STDMETHODCALLTYPE CTaskBand::Initialize ( IN OUT ITrayWindow *  tray,
HWND  hWndStartButton 
)
inline

Definition at line 326 of file taskband.cpp.

327  {
328  m_Tray = tray;
329  return S_OK;
330  }
CComPtr< ITrayWindow > m_Tray
Definition: taskband.cpp:39
#define S_OK
Definition: intsafe.h:59

◆ IsDirty()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::IsDirty ( void  )
inlinevirtual

Implements IPersistStream.

Definition at line 213 of file taskband.cpp.

214  {
215  /* The object hasn't changed since the last save! */
216  return S_FALSE;
217  }
#define S_FALSE
Definition: winerror.h:2357

◆ IsWindowOwner()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::IsWindowOwner ( HWND  hWnd)
inlinevirtual

Definition at line 319 of file taskband.cpp.

320  {
321  return (hWnd == m_hWnd) ? S_OK : S_FALSE;
322  }
HWND hWnd
Definition: settings.c:17
HWND m_hWnd
Definition: taskband.cpp:43
#define S_FALSE
Definition: winerror.h:2357
#define S_OK
Definition: intsafe.h:59

◆ Load()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::Load ( IN IStream pStm)
inlinevirtual

Definition at line 219 of file taskband.cpp.

221  {
222  TRACE("CTaskBand::Load called\n");
223  /* Nothing to do */
224  return S_OK;
225  }
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59

◆ OnPosRectChangeDB()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::OnPosRectChangeDB ( IN RECT prc)
inlinevirtual

Definition at line 192 of file taskband.cpp.

194  {
195  TRACE("IDeskBar::OnPosRectChangeDB(0x%p=(%d,%d,%d,%d))\n", prc, prc->left, prc->top, prc->right, prc->bottom);
196  if (prc->bottom - prc->top == 0)
197  return S_OK;
198 
199  return S_FALSE;
200  }
LONG top
Definition: windef.h:292
LONG left
Definition: windef.h:291
LONG right
Definition: windef.h:293
#define S_FALSE
Definition: winerror.h:2357
#define TRACE(s)
Definition: solgame.cpp:4
#define S_OK
Definition: intsafe.h:59
LONG bottom
Definition: windef.h:294
_Out_ LPRECT prc
Definition: ntgdi.h:1658

◆ OnWinEvent()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::OnWinEvent ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam,
LRESULT theResult 
)
inlinevirtual

Definition at line 313 of file taskband.cpp.

314  {
315  //UNIMPLEMENTED;
316  return E_NOTIMPL;
317  }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ ProcessMessage()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::ProcessMessage ( IN HWND  hWnd,
IN UINT  uMsg,
IN WPARAM  wParam,
IN LPARAM  lParam,
OUT LRESULT plrResult 
)
inlinevirtual

Definition at line 289 of file taskband.cpp.

295  {
296  TRACE("CTaskBand: IWinEventHandler::ProcessMessage(0x%p, 0x%x, 0x%p, 0x%p, 0x%p)\n", hWnd, uMsg, wParam, lParam, plrResult);
297  return E_NOTIMPL;
298  }
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99
LPARAM lParam
Definition: combotst.c:139

◆ QueryStatus()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::QueryStatus ( const GUID pguidCmdGroup,
ULONG  cCmds,
OLECMD  prgCmds[],
OLECMDTEXT pCmdText 
)
inlinevirtual

Implements IOleCommandTarget.

Definition at line 154 of file taskband.cpp.

155  {
157  return E_NOTIMPL;
158  }
#define E_NOTIMPL
Definition: ddrawi.h:99
#define UNIMPLEMENTED
Definition: debug.h:114

◆ ResizeBorderDW()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::ResizeBorderDW ( LPCRECT  prcBorder,
IUnknown punkToolbarSite,
BOOL  fReserved 
)
inlinevirtual

Implements IDockingWindow.

Definition at line 86 of file taskband.cpp.

90  {
91  /* No need to implement this method */
92  return E_NOTIMPL;
93  }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Save()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::Save ( IN IStream pStm,
IN BOOL  fClearDirty 
)
inlinevirtual

Definition at line 227 of file taskband.cpp.

230  {
231  /* Nothing to do */
232  return S_OK;
233  }
#define S_OK
Definition: intsafe.h:59

◆ SetClient()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::SetClient ( IN IUnknown punkClient)
inlinevirtual

Definition at line 178 of file taskband.cpp.

180  {
181  TRACE("IDeskBar::SetClient(0x%p)\n", punkClient);
182  return E_NOTIMPL;
183  }
#define TRACE(s)
Definition: solgame.cpp:4
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ SetSite()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::SetSite ( IUnknown pUnkSite)
inlinevirtual

Implements IObjectWithSite.

Definition at line 246 of file taskband.cpp.

247  {
248  HRESULT hRet;
249  HWND hwndSite;
250 
251  TRACE("CTaskBand::SetSite(0x%p)\n", pUnkSite);
252 
253  hRet = IUnknown_GetWindow(pUnkSite, &hwndSite);
254  if (FAILED_UNEXPECTEDLY(hRet))
255  return hRet;
256 
257  TRACE("CreateTaskSwitchWnd(Parent: 0x%p)\n", hwndSite);
258 
260  if (FAILED_UNEXPECTEDLY(hRet))
261  return hRet;
262 
264  if (FAILED_UNEXPECTEDLY(hRet))
265  return hRet;
266 
267  m_Site = pUnkSite;
268 
269  return S_OK;
270  }
CComPtr< IUnknown > m_TasksWnd
Definition: taskband.cpp:41
CComPtr< ITrayWindow > m_Tray
Definition: taskband.cpp:39
#define IID_PPV_ARG(Itype, ppType)
HRESULT WINAPI IUnknown_GetWindow(IUnknown *lpUnknown, HWND *lphWnd)
Definition: ordinal.c:1283
HWND m_hWnd
Definition: taskband.cpp:43
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
#define FAILED_UNEXPECTEDLY(hr)
Definition: shellutils.h:71
CComPtr< IUnknown > m_Site
Definition: taskband.cpp:40
HRESULT CTaskSwitchWnd_CreateInstance(IN HWND hWndParent, IN OUT ITrayWindow *Tray, REFIID riid, void **ppv)
Definition: taskswnd.cpp:1990
#define S_OK
Definition: intsafe.h:59

◆ ShowDW()

virtual HRESULT STDMETHODCALLTYPE CTaskBand::ShowDW ( IN BOOL  bShow)
inlinevirtual

Definition at line 72 of file taskband.cpp.

74  {
75  /* We don't do anything... */
76  return S_OK;
77  }
#define S_OK
Definition: intsafe.h:59

Member Data Documentation

◆ m_hWnd

HWND CTaskBand::m_hWnd
private

Definition at line 43 of file taskband.cpp.

Referenced by ContainsWindow(), GetBandInfo(), GetWindow(), IsWindowOwner(), and SetSite().

◆ m_Site

CComPtr<IUnknown> CTaskBand::m_Site
private

Definition at line 40 of file taskband.cpp.

Referenced by GetSite(), and SetSite().

◆ m_TasksWnd

CComPtr<IUnknown> CTaskBand::m_TasksWnd
private

Definition at line 41 of file taskband.cpp.

Referenced by SetSite().

◆ m_Tray

CComPtr<ITrayWindow> CTaskBand::m_Tray
private

Definition at line 39 of file taskband.cpp.

Referenced by Initialize(), and SetSite().


The documentation for this class was generated from the following file: