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