]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: statbmp.cpp | |
3 | // Purpose: wxStaticBitmap | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "statbmp.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/statbmp.h" | |
17 | ||
18 | #if !USE_SHARED_LIBRARY | |
19 | IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) | |
20 | #endif | |
21 | ||
22 | /* | |
23 | * wxStaticBitmap | |
24 | */ | |
25 | ||
26 | bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, | |
27 | const wxBitmap& bitmap, | |
28 | const wxPoint& pos, | |
29 | const wxSize& size, | |
30 | long style, | |
31 | const wxString& name) | |
32 | { | |
33 | m_messageBitmap = bitmap; | |
34 | SetName(name); | |
35 | if (parent) parent->AddChild(this); | |
36 | ||
37 | if ( id == -1 ) | |
38 | m_windowId = (int)NewControlId(); | |
39 | else | |
40 | m_windowId = id; | |
41 | ||
42 | m_windowStyle = style; | |
43 | ||
44 | // TODO: create static bitmap control | |
45 | return FALSE; | |
46 | } | |
47 | ||
48 | void wxStaticBitmap::SetSize(int x, int y, int width, int height, int sizeFlags) | |
49 | { | |
50 | // TODO | |
51 | } | |
52 | ||
53 | void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap) | |
54 | { | |
55 | m_messageBitmap = bitmap; | |
56 | ||
57 | // TODO: redraw bitmap | |
58 | } | |
59 |