no message

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-02-01 03:28:28 +00:00
parent 943ca23754
commit 582381212e
3 changed files with 58 additions and 38 deletions

View File

@@ -188,12 +188,20 @@ void wxChoice::SetString(
, const wxString& rsStr
)
{
wxFAIL_MSG(wxT("not implemented"));
SHORT nIndexType = 0;
#if 0 // should do this, but no Insert() so far
Delete(n);
Insert(n + 1, s);
#endif
::WinSendMsg(WinUtil_GetHwnd(), LM_DELETEITEM, (MPARAM)n, 0);
if (m_lWindowStyle & winLB_SORT)
nIndexType = LIT_SORTASCENDING;
else
nIndexType = LIT_END;
lIndex = (YInt32)::WinSendMsg( WinUtil_GetHwnd()
,LM_INSERTITEM
,(MPARAM)nIndexType
,(MPARAM)rsStr.Data()
);
} // end of wxChoice::SetString
wxString wxChoice::GetString(

View File

@@ -220,10 +220,44 @@ wxRegion::~wxRegion()
{
} // end of wxRegion::~wxRegion
wxObjectRefData *wxRegion::CreateData() const
{
return new wxRegionRefData;
}
wxObjectRefData *wxRegion::CloneData(wxObjectRefData *data) const
{
return new wxRegionRefData(*(wxRegionRefData *)data);
}
//-----------------------------------------------------------------------------
//# Modify region
//-----------------------------------------------------------------------------
bool wxRegion::Offset(
wxCoord x
, wxCoord y
)
{
if ( !x && !y )
{
// nothing to do
return TRUE;
}
AllocExclusive();
#if 0
if ( ::OffsetRgn(GetHrgn(), x, y) == ERROR )
{
wxLogLastError(_T("OffsetRgn"));
return FALSE;
}
#endif
return TRUE;
}
//
// Clear current region
//
@@ -243,20 +277,7 @@ bool wxRegion::Combine(
, wxRegionOp eOp
)
{
//
// Don't change shared data
//
if (!m_refData)
{
m_refData = new wxRegionRefData();
}
else if (m_refData->GetRefCount() > 1)
{
wxRegionRefData* pRef = (wxRegionRefData*)m_refData;
UnRef();
m_refData = new wxRegionRefData(*pRef);
}
AllocExclusive();
//
// If ref count is 1, that means it's 'ours' anyway so no action.
@@ -321,20 +342,7 @@ bool wxRegion::Combine(
if (rRegion.Empty())
return FALSE;
//
// Don't change shared data
//
if (!m_refData)
{
m_refData = new wxRegionRefData();
}
else if (m_refData->GetRefCount() > 1)
{
wxRegionRefData* pRef = (wxRegionRefData*)m_refData;
UnRef();
m_refData = new wxRegionRefData(*pRef);
}
AllocExclusive();
LONG lMode = 0;

View File

@@ -4,7 +4,7 @@ DATA MULTIPLE NONSHARED READWRITE LOADONCALL
CODE LOADONCALL
EXPORTS
;From library: H:\DEV\WX2\WXWINDOWS\LIB\wx.lib
;From library: F:\DEV\WX2\WXWINDOWS\LIB\wx.lib
;From object file: dummy.cpp
;PUBDEFs (Symbols available from object file):
wxDummyChar
@@ -1772,7 +1772,7 @@ EXPORTS
wxEVT_NC_LEFT_DCLICK
wxEVT_INIT_DIALOG
wxEVT_COMMAND_SET_FOCUS
;From object file: H:\DEV\WX2\WXWINDOWS\src\common\extended.c
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\extended.c
;PUBDEFs (Symbols available from object file):
ConvertToIeeeExtended
ConvertFromIeeeExtended
@@ -2242,6 +2242,8 @@ EXPORTS
__ne__10wxFontBaseCFRC6wxFont
;wxFontBase::GetFamilyString() const
GetFamilyString__10wxFontBaseCFv
;wxFontBase::SetDefaultEncoding(wxFontEncoding)
SetDefaultEncoding__10wxFontBaseF14wxFontEncoding
;wxFontBase::IsFixedWidth() const
IsFixedWidth__10wxFontBaseCFv
;wxFontBase::New(int,int,int,int,unsigned long,const wxString&,wxFontEncoding)
@@ -3138,6 +3140,8 @@ EXPORTS
__vft12wxPNGHandler8wxObject
;wxConstructorForwxPNGHandler()
wxConstructorForwxPNGHandler__Fv
wx_png_error
wx_png_warning
_PNG_stream_reader
;wxPNGHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long)
SaveFile__12wxPNGHandlerFP7wxImageR14wxOutputStreamUl
@@ -3148,8 +3152,6 @@ EXPORTS
_PNG_stream_writer
;wxPNGHandler::sm_classwxPNGHandler
sm_classwxPNGHandler__12wxPNGHandler
png_silent_error
png_silent_warning
;From object file: ..\common\imagpnm.cpp
;PUBDEFs (Symbols available from object file):
;wxPNMHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long)
@@ -5771,7 +5773,7 @@ EXPORTS
Read32__17wxTextInputStreamFv
;wxTextInputStream::SkipIfEndOfLine(char)
SkipIfEndOfLine__17wxTextInputStreamFc
;From object file: H:\DEV\WX2\WXWINDOWS\src\common\unzip.c
;From object file: F:\DEV\WX2\WXWINDOWS\src\common\unzip.c
;PUBDEFs (Symbols available from object file):
unzReadCurrentFile
unzGetCurrentFileInfo
@@ -6572,6 +6574,8 @@ EXPORTS
SetForegroundColour__12wxWindowBaseFRC8wxColour
;wxWindowBase::SetBackgroundColour(const wxColour&)
SetBackgroundColour__12wxWindowBaseFRC8wxColour
;wxWindowBase::RemoveEventHandler(wxEvtHandler*)
RemoveEventHandler__12wxWindowBaseFP12wxEvtHandler
;wxWindowBase::Destroy()
Destroy__12wxWindowBaseFv
;wxWindowBase::SetConstraints(wxLayoutConstraints*)