]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/taskbar.h
Generalized compilation fix for old compilers.
[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
ffecfa5a
JS
15#include "wx/icon.h"
16
17// private helper class:
18class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
19
20class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
21{
22 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
23public:
24 wxTaskBarIcon();
25 virtual ~wxTaskBarIcon();
26
27// Accessors
28 inline bool IsOk() const { return true; }
29 inline bool IsIconInstalled() const { return m_iconAdded; }
30
31// Operations
32 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
33 bool RemoveIcon(void);
34 bool PopupMenu(wxMenu *menu); //, int x, int y);
35
ffecfa5a
JS
36// Implementation
37protected:
38 friend class wxTaskBarIconWindow;
39 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
40 void RegisterWindowMessages();
41
42// Data members
43protected:
44 wxTaskBarIconWindow *m_win;
45 bool m_iconAdded;
46 wxIcon m_icon;
47 wxString m_strTooltip;
ffecfa5a
JS
48};
49
ffecfa5a
JS
50#endif
51 // _TASKBAR_H_