, 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(
{
} // 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
//
, 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.
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;
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
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
__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)
__vft12wxPNGHandler8wxObject
;wxConstructorForwxPNGHandler()
wxConstructorForwxPNGHandler__Fv
+ wx_png_error
+ wx_png_warning
_PNG_stream_reader
;wxPNGHandler::SaveFile(wxImage*,wxOutputStream&,unsigned long)
SaveFile__12wxPNGHandlerFP7wxImageR14wxOutputStreamUl
_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)
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
SetForegroundColour__12wxWindowBaseFRC8wxColour
;wxWindowBase::SetBackgroundColour(const wxColour&)
SetBackgroundColour__12wxWindowBaseFRC8wxColour
+ ;wxWindowBase::RemoveEventHandler(wxEvtHandler*)
+ RemoveEventHandler__12wxWindowBaseFP12wxEvtHandler
;wxWindowBase::Destroy()
Destroy__12wxWindowBaseFv
;wxWindowBase::SetConstraints(wxLayoutConstraints*)