X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/150e31d2088687cbfbab548f9e98918f8683d9b5..2e98aa124386e26c78ca725430c0b0c692db9fc2:/src/palmos/combobox.cpp diff --git a/src/palmos/combobox.cpp b/src/palmos/combobox.cpp index d75825c416..2a0c230f71 100644 --- a/src/palmos/combobox.cpp +++ b/src/palmos/combobox.cpp @@ -1,10 +1,10 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: palmos/combobox.cpp +// Name: src/palmos/combobox.cpp // Purpose: wxComboBox class -// Author: William Osborne +// Author: William Osborne - minimal working wxPalmOS port // Modified by: // Created: 10/13/04 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) William Osborne // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "combobox.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -128,27 +124,6 @@ static WNDPROC gs_wndprocEdit = (WNDPROC)NULL; // implementation // ============================================================================ -WXHBRUSH wxComboBox::OnCtlColor(WXHDC pDC, - WXHWND WXUNUSED(pWnd), - WXUINT WXUNUSED(nCtlColor), - WXUINT WXUNUSED(message), - WXWPARAM WXUNUSED(wParam), - WXLPARAM WXUNUSED(lParam)) -{ - HDC hdc = (HDC)pDC; - wxColour colBack = GetBackgroundColour(); - - if (!IsEnabled()) - colBack = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); - - ::SetBkColor(hdc, wxColourToRGB(colBack)); - ::SetTextColor(hdc, wxColourToRGB(GetForegroundColour())); - - wxBrush *brush = wxTheBrushList->FindOrCreateBrush(colBack, wxSOLID); - - return (WXHBRUSH)brush->GetResourceHandle(); -} - // ---------------------------------------------------------------------------- // wxComboBox callbacks // ---------------------------------------------------------------------------- @@ -244,7 +219,7 @@ long wxComboBox::GetInsertionPoint() const return 0; } -long wxComboBox::GetLastPosition() const +wxTextPos wxComboBox::GetLastPosition() const { return 0; } @@ -263,7 +238,7 @@ void wxComboBox::SetSelection(long from, long to) bool wxComboBox::IsEditable() const { - return false; + return false; } void wxComboBox::Undo() @@ -280,27 +255,27 @@ void wxComboBox::SelectAll() bool wxComboBox::CanCopy() const { - return false; + return false; } bool wxComboBox::CanCut() const { - return false; + return false; } bool wxComboBox::CanPaste() const { - return false; + return false; } bool wxComboBox::CanUndo() const { - return false; + return false; } bool wxComboBox::CanRedo() const { - return false; + return false; }