]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/combobox.h
fixed FixedSizeTabs()
[wxWidgets.git] / include / wx / msw / combobox.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
f6bcfd97 2// Name: wx/msw/combobox.h
2bda0e17
KB
3// Purpose: wxComboBox class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
4438caf4 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_COMBOBOX_H_
13#define _WX_COMBOBOX_H_
2bda0e17 14
12028905 15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
4438caf4 16 #pragma interface "combobox.h"
2bda0e17
KB
17#endif
18
19#include "wx/choice.h"
20
47d67540 21#if wxUSE_COMBOBOX
2bda0e17 22
4438caf4
VZ
23// ----------------------------------------------------------------------------
24// Combobox control
25// ----------------------------------------------------------------------------
26
2bda0e17
KB
27class WXDLLEXPORT wxComboBox: public wxChoice
28{
4438caf4
VZ
29public:
30 wxComboBox() { }
31
32 wxComboBox(wxWindow *parent, wxWindowID id,
33 const wxString& value = wxEmptyString,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 int n = 0, const wxString choices[] = NULL,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxComboBoxNameStr)
40 {
41 Create(parent, id, value, pos, size, n, choices, style, validator, name);
42 }
43
f6bcfd97
BP
44 bool Create(wxWindow *parent,
45 wxWindowID id,
46 const wxString& value = wxEmptyString,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
49 int n = 0,
50 const wxString choices[] = NULL,
51 long style = 0,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxComboBoxNameStr);
4438caf4
VZ
54
55 // List functions: see wxChoice
56
57 // Text field functions
58 wxString GetValue() const { return GetLabel(); }
59 virtual void SetValue(const wxString& value);
60
61 // Clipboard operations
62 virtual void Copy();
63 virtual void Cut();
64 virtual void Paste();
65 virtual void SetInsertionPoint(long pos);
66 virtual void SetInsertionPointEnd();
67 virtual long GetInsertionPoint() const;
68 virtual long GetLastPosition() const;
69 virtual void Replace(long from, long to, const wxString& value);
70 virtual void Remove(long from, long to);
71 virtual void SetSelection(int n) { wxChoice::SetSelection(n); }
72 virtual void SetSelection(long from, long to);
73 virtual void SetEditable(bool editable);
74
f6bcfd97 75 // implementation only from now on
4438caf4 76 virtual bool MSWCommand(WXUINT param, WXWORD id);
f6bcfd97
BP
77 bool MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam);
78 virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
79 WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
80
81 WXHWND GetEditHWND() const;
fc7a2a60
VZ
82
83private:
84 DECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox)
2bda0e17
KB
85};
86
47d67540 87#endif // wxUSE_COMBOBOX
2bda0e17 88#endif
bbcdf8bc 89 // _WX_COMBOBOX_H_