1) minor modifications in fileconf.cpp
2) new MSW function (private.h): wxGetWindowText() which works with wxString instead of (horror) fixed size buffers. All calls to ::GetWindowText() should be replaced with this! 3) remains of casts to float in different wxControl classes removed, (EDIT|BUTTON)_HEIGHT_FROM_CHAR_HEIGHT macros introduced (could be made inline functions as well...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -139,10 +139,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
wxString wxComboBox::GetValue(void) const
|
||||
wxString wxComboBox::GetValue() const
|
||||
{
|
||||
GetWindowText((HWND) GetHWND(), wxBuffer, 500);
|
||||
return wxString(wxBuffer);
|
||||
return wxGetWindowText(GetHWND());
|
||||
}
|
||||
|
||||
void wxComboBox::SetValue(const wxString& value)
|
||||
@@ -179,19 +178,19 @@ void wxComboBox::SetValue(const wxString& value)
|
||||
}
|
||||
|
||||
// Clipboard operations
|
||||
void wxComboBox::Copy(void)
|
||||
void wxComboBox::Copy()
|
||||
{
|
||||
HWND hWnd = (HWND) GetHWND();
|
||||
SendMessage(hWnd, WM_COPY, 0, 0L);
|
||||
}
|
||||
|
||||
void wxComboBox::Cut(void)
|
||||
void wxComboBox::Cut()
|
||||
{
|
||||
HWND hWnd = (HWND) GetHWND();
|
||||
SendMessage(hWnd, WM_CUT, 0, 0L);
|
||||
}
|
||||
|
||||
void wxComboBox::Paste(void)
|
||||
void wxComboBox::Paste()
|
||||
{
|
||||
HWND hWnd = (HWND) GetHWND();
|
||||
SendMessage(hWnd, WM_PASTE, 0, 0L);
|
||||
@@ -219,7 +218,7 @@ void wxComboBox::SetInsertionPoint(long pos)
|
||||
*/
|
||||
}
|
||||
|
||||
void wxComboBox::SetInsertionPointEnd(void)
|
||||
void wxComboBox::SetInsertionPointEnd()
|
||||
{
|
||||
/*
|
||||
long pos = GetLastPosition();
|
||||
@@ -227,7 +226,7 @@ void wxComboBox::SetInsertionPointEnd(void)
|
||||
*/
|
||||
}
|
||||
|
||||
long wxComboBox::GetInsertionPoint(void) const
|
||||
long wxComboBox::GetInsertionPoint() const
|
||||
{
|
||||
/*
|
||||
DWORD Pos=(DWORD)SendMessage((HWND) GetHWND(), EM_GETSEL, 0, 0L);
|
||||
@@ -236,7 +235,7 @@ long wxComboBox::GetInsertionPoint(void) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
long wxComboBox::GetLastPosition(void) const
|
||||
long wxComboBox::GetLastPosition() const
|
||||
{
|
||||
/*
|
||||
HWND hWnd = (HWND) GetHWND();
|
||||
|
Reference in New Issue
Block a user