]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/cursor.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / msw / cursor.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
6d167489 2// Name: wx/msw/cursor.h
2bda0e17
KB
3// Purpose: wxCursor class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
bbcdf8bc 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
2bda0e17
KB
9/////////////////////////////////////////////////////////////////////////////
10
bbcdf8bc
JS
11#ifndef _WX_CURSOR_H_
12#define _WX_CURSOR_H_
2bda0e17 13
c781807d 14#include "wx/msw/gdiimage.h"
6d167489 15
b5dbe15d 16class WXDLLIMPEXP_FWD_CORE wxImage;
4a38127b 17
2bda0e17 18// Cursor
53a2db12 19class WXDLLIMPEXP_CORE wxCursor : public wxGDIImage
2bda0e17 20{
2bda0e17 21public:
eff4ffbf 22 // constructors
6d167489 23 wxCursor();
c781807d 24 wxCursor(const wxImage& image);
6d167489 25 wxCursor(const wxString& name,
0ef5b1da 26 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
6d167489 27 int hotSpotX = 0, int hotSpotY = 0);
0ef5b1da
FM
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29#if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
31#endif
6d167489 32 virtual ~wxCursor();
2bda0e17 33
eff4ffbf 34 // implementation only
6d167489
VZ
35 void SetHCURSOR(WXHCURSOR cursor) { SetHandle((WXHANDLE)cursor); }
36 WXHCURSOR GetHCURSOR() const { return (WXHCURSOR)GetHandle(); }
2bda0e17 37
6d167489 38protected:
0ef5b1da
FM
39 void InitFromStock(wxStockCursor);
40
eff4ffbf 41 virtual wxGDIImageRefData *CreateData() const;
2bda0e17 42
6d167489
VZ
43private:
44 DECLARE_DYNAMIC_CLASS(wxCursor)
2bda0e17
KB
45};
46
47#endif
bbcdf8bc 48 // _WX_CURSOR_H_