]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/taskbar.h
add wxSP_THIN_SASH for completeness (#9902)
[wxWidgets.git] / include / wx / msw / taskbar.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////
fa1c12bd
VZ
2// File: wx/msw/taskbar.h
3// Purpose: Defines wxTaskBarIcon class for manipulating icons on the
2bda0e17
KB
4// Windows task bar.
5// Author: Julian Smart
1e6d9c20 6// Modified by: Vaclav Slavik
2bda0e17
KB
7// Created: 24/3/98
8// RCS-ID: $Id$
fa1c12bd 9// Copyright: (c) Julian Smart
65571936 10// Licence: wxWindows licence
2bda0e17
KB
11/////////////////////////////////////////////////////////////////////////
12
71e33cfb
VZ
13#ifndef _WX_TASKBAR_H_
14#define _WX_TASKBAR_H_
2bda0e17 15
d162a7ee
VZ
16#include "wx/icon.h"
17
1e6d9c20 18// private helper class:
b5dbe15d 19class WXDLLIMPEXP_FWD_ADV wxTaskBarIconWindow;
2bda0e17 20
71e33cfb 21class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
6af507f7 22{
2bda0e17 23public:
1e6d9c20
VS
24 wxTaskBarIcon();
25 virtual ~wxTaskBarIcon();
2bda0e17 26
71e33cfb
VZ
27 // Accessors
28 bool IsOk() const { return true; }
29 bool IsIconInstalled() const { return m_iconAdded; }
2bda0e17 30
71e33cfb 31 // Operations
2b5f62a0 32 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
2bda0e17 33 bool RemoveIcon(void);
71e33cfb 34 bool PopupMenu(wxMenu *menu);
2bda0e17 35
cdcfde5d
VZ
36 // MSW-specific class methods
37
23bd008a 38#if wxUSE_TASKBARICON_BALLOONS
cdcfde5d
VZ
39 // show a balloon notification (the icon must have been already initialized
40 // using SetIcon)
41 //
42 // title and text are limited to 63 and 255 characters respectively, msec
43 // is the timeout, in milliseconds, before the balloon disappears (will be
44 // clamped down to the allowed 10-30s range by Windows if it's outside it)
45 // and flags can include wxICON_ERROR/INFO/WARNING to show a corresponding
46 // icon
47 //
48 // return true if balloon was shown, false on error (incorrect parameters
49 // or function unsupported by OS)
50 bool ShowBalloon(const wxString& title,
51 const wxString& text,
52 unsigned msec = 0,
53 int flags = 0);
23bd008a 54#endif // wxUSE_TASKBARICON_BALLOONS
cdcfde5d 55
1e6d9c20
VS
56protected:
57 friend class wxTaskBarIconWindow;
71e33cfb 58
dda36afd 59 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
1e6d9c20 60 void RegisterWindowMessages();
2bda0e17 61
71e33cfb 62
1e6d9c20
VS
63 wxTaskBarIconWindow *m_win;
64 bool m_iconAdded;
65 wxIcon m_icon;
66 wxString m_strTooltip;
56194595 67
71e33cfb 68 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
2bda0e17
KB
69};
70
71e33cfb 71#endif // _WX_TASKBAR_H_