]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/taskbar.h
added wxConvFileName which is a variable, not define as wxConvFile; added comments...
[wxWidgets.git] / include / wx / palmos / taskbar.h
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////
2// File: wx/palmos/taskbar.h
e1d63b79
WS
3// Purpose: Defines wxTaskBarIcon class.
4// Author: William Osborne - minimal working wxPalmOS port
5// Modified by:
6// Created: 10/13/04
ffecfa5a 7// RCS-ID: $Id$
e1d63b79 8// Copyright: (c) William Osborne
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////
11
12#ifndef _TASKBAR_H_
13#define _TASKBAR_H_
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "taskbar.h"
17#endif
18
19#include "wx/icon.h"
20
21// private helper class:
22class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
23
24class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
25{
26 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
27public:
28 wxTaskBarIcon();
29 virtual ~wxTaskBarIcon();
30
31// Accessors
32 inline bool IsOk() const { return true; }
33 inline bool IsIconInstalled() const { return m_iconAdded; }
34
35// Operations
36 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
37 bool RemoveIcon(void);
38 bool PopupMenu(wxMenu *menu); //, int x, int y);
39
ffecfa5a
JS
40// Implementation
41protected:
42 friend class wxTaskBarIconWindow;
43 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
44 void RegisterWindowMessages();
45
46// Data members
47protected:
48 wxTaskBarIconWindow *m_win;
49 bool m_iconAdded;
50 wxIcon m_icon;
51 wxString m_strTooltip;
ffecfa5a
JS
52};
53
ffecfa5a
JS
54#endif
55 // _TASKBAR_H_