OS/2 updates and initial toolbar implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-07-01 22:22:13 +00:00
parent 4daa4d665a
commit d697657f1e
14 changed files with 1345 additions and 1122 deletions

View File

@@ -371,6 +371,8 @@ bool wxFontRefData::Alloc(
long lRc;
short nIndex = 0;
PFONTMETRICS pFM = NULL;
ERRORID vError;
wxString sError;
if (!m_bNativeFontInfoOk)
{
@@ -396,6 +398,8 @@ bool wxFontRefData::Alloc(
}
if (!m_hFont)
{
vError = ::WinGetLastError(vHabmain);
sError = wxPMErrorToStr(vError);
wxLogLastError("CreateFont");
}
@@ -496,10 +500,6 @@ void wxFontRefData::Free()
if ( m_hFont )
{
if (!::GpiSetCharSet(m_hPS, LCID_DEFAULT))
{
wxLogLastError(wxT("DeleteObject(font)"));
}
::GpiDeleteSetId(m_hPS, 1L); /* delete the logical font */
m_nFontId = 0;
m_hFont = 0;