Use system colours
Fixed handling of scrollbar heigh/width git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -192,11 +192,11 @@ bool wxListBox::Create(
|
||||
SetFont(*pTextFont);
|
||||
|
||||
//
|
||||
// Set standard wxWidgets colors for Listbox items and highlighting
|
||||
// Set OS/2 system colours for Listbox items and highlighting
|
||||
//
|
||||
wxColour vColour;
|
||||
|
||||
vColour.Set(wxString(wxT("WHITE")));
|
||||
vColour = wxSystemSettingsNative::GetColour(wxSYS_COLOUR_HIGHLIGHTTEXT);
|
||||
|
||||
LONG lColor = (LONG)vColour.GetPixel();
|
||||
|
||||
@@ -205,7 +205,7 @@ bool wxListBox::Create(
|
||||
,sizeof(LONG)
|
||||
,(PVOID)&lColor
|
||||
);
|
||||
vColour.Set(wxString(wxT("NAVY")));
|
||||
vColour = wxSystemSettingsNative::GetColour(wxSYS_COLOUR_HIGHLIGHT);
|
||||
lColor = (LONG)vColour.GetPixel();
|
||||
::WinSetPresParam( m_hWnd
|
||||
,PP_HILITEBACKGROUNDCOLOR
|
||||
@@ -213,6 +213,8 @@ bool wxListBox::Create(
|
||||
,(PVOID)&lColor
|
||||
);
|
||||
|
||||
SetXComp(0);
|
||||
SetYComp(0);
|
||||
SetSize( nX
|
||||
,nY
|
||||
,nWidth
|
||||
|
Reference in New Issue
Block a user