1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
2001-11-21 23:39:26 +00:00
|
|
|
// File: wx/msw/taskbar.h
|
|
|
|
// Purpose: Defines wxTaskBarIcon class for manipulating icons on the
|
1998-05-20 14:12:05 +00:00
|
|
|
// Windows task bar.
|
|
|
|
// Author: Julian Smart
|
2004-03-23 23:20:16 +00:00
|
|
|
// Modified by: Vaclav Slavik
|
1998-05-20 14:12:05 +00:00
|
|
|
// Created: 24/3/98
|
|
|
|
// RCS-ID: $Id$
|
2001-11-21 23:39:26 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _TASKBAR_H_
|
|
|
|
#define _TASKBAR_H_
|
|
|
|
|
2003-01-25 12:28:51 +00:00
|
|
|
#include "wx/icon.h"
|
|
|
|
|
2004-03-23 23:20:16 +00:00
|
|
|
// private helper class:
|
|
|
|
class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2003-08-02 13:52:31 +00:00
|
|
|
class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
|
2003-04-04 22:33:47 +00:00
|
|
|
{
|
2003-07-22 00:24:07 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
|
1998-05-20 14:12:05 +00:00
|
|
|
public:
|
2004-03-23 23:20:16 +00:00
|
|
|
wxTaskBarIcon();
|
|
|
|
virtual ~wxTaskBarIcon();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// Accessors
|
2004-03-23 23:20:16 +00:00
|
|
|
inline bool IsOk() const { return true; }
|
1998-05-20 14:12:05 +00:00
|
|
|
inline bool IsIconInstalled() const { return m_iconAdded; }
|
|
|
|
|
|
|
|
// Operations
|
2002-12-04 14:11:26 +00:00
|
|
|
bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
|
1998-05-20 14:12:05 +00:00
|
|
|
bool RemoveIcon(void);
|
1998-12-11 05:56:40 +00:00
|
|
|
bool PopupMenu(wxMenu *menu); //, int x, int y);
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// Implementation
|
2004-03-23 23:20:16 +00:00
|
|
|
protected:
|
|
|
|
friend class wxTaskBarIconWindow;
|
2004-03-24 20:12:14 +00:00
|
|
|
long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
|
2004-03-23 23:20:16 +00:00
|
|
|
void RegisterWindowMessages();
|
1998-05-20 14:12:05 +00:00
|
|
|
|
|
|
|
// Data members
|
|
|
|
protected:
|
2004-03-23 23:20:16 +00:00
|
|
|
wxTaskBarIconWindow *m_win;
|
|
|
|
bool m_iconAdded;
|
|
|
|
wxIcon m_icon;
|
|
|
|
wxString m_strTooltip;
|
1998-11-22 04:20:32 +00:00
|
|
|
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _TASKBAR_H_
|