Added STRICT corrections.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -539,7 +539,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s)
|
||||
HDC dc = GetWindowDC(hwnd);
|
||||
HFONT oldFont = 0;
|
||||
if (GetFont() && GetFont()->GetResourceHandle())
|
||||
oldFont = ::SelectObject(dc, (HFONT) GetFont()->GetResourceHandle());
|
||||
oldFont = (HFONT) ::SelectObject(dc, (HFONT) GetFont()->GetResourceHandle());
|
||||
|
||||
GetTextMetrics(dc, &lpTextMetric);
|
||||
SIZE extentXY;
|
||||
@@ -560,7 +560,7 @@ void wxListBox::SetHorizontalExtent(const wxString& s)
|
||||
HDC dc = GetWindowDC(hwnd);
|
||||
HFONT oldFont = 0;
|
||||
if (GetFont() && GetFont()->GetResourceHandle())
|
||||
oldFont = ::SelectObject(dc, (HFONT) GetFont()->GetResourceHandle());
|
||||
oldFont = (HFONT) ::SelectObject(dc, (HFONT) GetFont()->GetResourceHandle());
|
||||
|
||||
GetTextMetrics(dc, &lpTextMetric);
|
||||
int i;
|
||||
|
Reference in New Issue
Block a user