]> git.saurik.com Git - wxWidgets.git/blame - src/qt/statbmp.cpp
Added GSocket/wxSocket alias to socket.h to prevent us from using GSocket
[wxWidgets.git] / src / qt / statbmp.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbmp.cpp
01b2eeec
KB
3// Purpose: wxStaticBitmap
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "statbmp.h"
14#endif
15
16#include "wx/statbmp.h"
17
01b2eeec
KB
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
20#endif
7c78e7c7 21
01b2eeec
KB
22/*
23 * wxStaticBitmap
24 */
7c78e7c7 25
01b2eeec
KB
26bool 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)
7c78e7c7 32{
01b2eeec
KB
33 m_messageBitmap = bitmap;
34 SetName(name);
35 if (parent) parent->AddChild(this);
7c78e7c7 36
01b2eeec
KB
37 if ( id == -1 )
38 m_windowId = (int)NewControlId();
39 else
40 m_windowId = id;
41
42 m_windowStyle = style;
7c78e7c7 43
01b2eeec
KB
44 // TODO: create static bitmap control
45 return FALSE;
46}
47
48void wxStaticBitmap::SetSize(int x, int y, int width, int height, int sizeFlags)
7c78e7c7 49{
01b2eeec
KB
50 // TODO
51}
7c78e7c7 52
01b2eeec 53void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
7c78e7c7 54{
01b2eeec
KB
55 m_messageBitmap = bitmap;
56
57 // TODO: redraw bitmap
58}
7c78e7c7 59