]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/ctrlsub.h
Make wxComboCtrlBase::Set*groundColour() methods public.
[wxWidgets.git] / include / wx / msw / ctrlsub.h
CommitLineData
a236aa20
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/ctrlsub.h
3// Purpose: common functionality of wxItemContainer-derived controls
4// Author: Vadim Zeitlin
5// Created: 2007-07-25
a236aa20
VZ
6// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_MSW_CTRLSUB_H_
11#define _WX_MSW_CTRLSUB_H_
12
13// ----------------------------------------------------------------------------
14// wxControlWithItems
15// ----------------------------------------------------------------------------
16
53a2db12 17class WXDLLIMPEXP_CORE wxControlWithItems : public wxControlWithItemsBase
a236aa20
VZ
18{
19public:
20 wxControlWithItems() { }
21
22protected:
23 // preallocate memory for inserting the given new items into the control
24 // using the wm message (normally either LB_INITSTORAGE or CB_INITSTORAGE)
25 void MSWAllocStorage(const wxArrayStringsAdapter& items, unsigned wm);
26
27 // insert or append a string to the controls using the given message
28 // (one of {CB,LB}_{ADD,INSERT}STRING, pos must be 0 when appending)
29 int MSWInsertOrAppendItem(unsigned pos, const wxString& item, unsigned wm);
30
31 // normally the control containing the items is this window itself but if
32 // the derived control is composed of several windows, this method can be
33 // overridden to return the real list/combobox control
34 virtual WXHWND MSWGetItemsHWND() const { return GetHWND(); }
35
36private:
37 DECLARE_ABSTRACT_CLASS(wxControlWithItems)
c0c133e1 38 wxDECLARE_NO_COPY_CLASS(wxControlWithItems);
a236aa20
VZ
39};
40
41#endif // _WX_MSW_CTRLSUB_H_
42