New native OS/2 list control.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2003-01-21 23:46:27 +00:00
parent 9794cae1b3
commit b45bca403a
4 changed files with 336 additions and 607 deletions

View File

@@ -114,7 +114,6 @@ GENERICOBJS= \
..\generic\$D\helphtml.obj \ ..\generic\$D\helphtml.obj \
..\generic\$D\imaglist.obj \ ..\generic\$D\imaglist.obj \
..\generic\$D\laywin.obj \ ..\generic\$D\laywin.obj \
..\generic\$D\listctrl.obj \
..\generic\$D\logg.obj \ ..\generic\$D\logg.obj \
..\generic\$D\mdig.obj \ ..\generic\$D\mdig.obj \
..\generic\$D\numdlgg.obj \ ..\generic\$D\numdlgg.obj \
@@ -161,7 +160,6 @@ GENLIBOBJS= \
helphtml.obj \ helphtml.obj \
imaglist.obj \ imaglist.obj \
laywin.obj \ laywin.obj \
listctrl.obj \
logg.obj \ logg.obj \
mdig.obj \ mdig.obj \
numdlgg.obj \ numdlgg.obj \
@@ -510,6 +508,7 @@ OS2OBJS = \
..\os2\$D\iniconf.obj \ ..\os2\$D\iniconf.obj \
..\os2\$D\joystick.obj \ ..\os2\$D\joystick.obj \
..\os2\$D\listbox.obj \ ..\os2\$D\listbox.obj \
..\os2\$D\listctrl.obj \
..\os2\$D\main.obj \ ..\os2\$D\main.obj \
..\os2\$D\menu.obj \ ..\os2\$D\menu.obj \
..\os2\$D\menuitem.obj \ ..\os2\$D\menuitem.obj \
@@ -589,13 +588,14 @@ OS2LIBOBJS1 = \
iniconf.obj \ iniconf.obj \
joystick.obj \ joystick.obj \
listbox.obj \ listbox.obj \
listctrl.obj \
main.obj \ main.obj \
menu.obj \ menu.obj \
menuitem.obj \ menuitem.obj \
metafile.obj \ metafile.obj
mimetype.obj
OS2LIBOBJS2 = \ OS2LIBOBJS2 = \
mimetype.obj \
msgdlg.obj \ msgdlg.obj \
nativdlg.obj \ nativdlg.obj \
notebook.obj \ notebook.obj \
@@ -856,7 +856,6 @@ $(GENLIBOBJS):
copy ..\generic\$D\helphtml.obj copy ..\generic\$D\helphtml.obj
copy ..\generic\$D\imaglist.obj copy ..\generic\$D\imaglist.obj
copy ..\generic\$D\laywin.obj copy ..\generic\$D\laywin.obj
copy ..\generic\$D\listctrl.obj
copy ..\generic\$D\logg.obj copy ..\generic\$D\logg.obj
copy ..\generic\$D\mdig.obj copy ..\generic\$D\mdig.obj
copy ..\generic\$D\numdlgg.obj copy ..\generic\$D\numdlgg.obj
@@ -944,13 +943,14 @@ $(OS2LIBOBJS1):
copy ..\os2\$D\iniconf.obj copy ..\os2\$D\iniconf.obj
copy ..\os2\$D\joystick.obj copy ..\os2\$D\joystick.obj
copy ..\os2\$D\listbox.obj copy ..\os2\$D\listbox.obj
copy ..\os2\$D\listctrl.obj
copy ..\os2\$D\main.obj copy ..\os2\$D\main.obj
copy ..\os2\$D\menu.obj copy ..\os2\$D\menu.obj
copy ..\os2\$D\menuitem.obj copy ..\os2\$D\menuitem.obj
copy ..\os2\$D\metafile.obj copy ..\os2\$D\metafile.obj
copy ..\os2\$D\mimetype.obj
$(OS2LIBOBJS2): $(OS2LIBOBJS2):
copy ..\os2\$D\mimetype.obj
copy ..\os2\$D\msgdlg.obj copy ..\os2\$D\msgdlg.obj
copy ..\os2\$D\nativdlg.obj copy ..\os2\$D\nativdlg.obj
copy ..\os2\$D\notebook.obj copy ..\os2\$D\notebook.obj

View File

@@ -1520,4 +1520,9 @@ wxBitmap wxDisableBitmap(
return(wxNullBitmap); return(wxNullBitmap);
} // end of wxDisableBitmap } // end of wxDisableBitmap
COLORREF wxColourToRGB(
const wxColour& rColor
)
{
return(OS2RGB(rColor.Red(), rColor.Green(), rColor.Blue()));
} // end of wxColourToRGB

View File

@@ -3987,6 +3987,21 @@ void wxWindowOS2::OnSysColourChanged(
// painting // painting
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
void wxWindow::OnPaint (
wxPaintEvent& rEvent
)
{
HDC hDC = (HDC)wxPaintDC::FindDCInCache((wxWindow*) rEvent.GetEventObject());
if (hDC != 0)
{
OS2DefWindowProc( (WXUINT)WM_PAINT
,(WXWPARAM)hDC
,(WXLPARAM)0
);
}
} // end of wxWindow::OnPaint
bool wxWindowOS2::HandlePaint() bool wxWindowOS2::HandlePaint()
{ {
HRGN hRgn; HRGN hRgn;

File diff suppressed because it is too large Load Diff