wxOS2 with Open Watcom: correct PCH usage, missing headers, warning fixes, source cleaning and other Watcom adjustements.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-07-21 17:00:07 +00:00
parent 7a893a3152
commit 6670f56440
56 changed files with 1547 additions and 1936 deletions

View File

@@ -100,14 +100,12 @@ void wxIcon::CreateIconFromXpm(
CopyFromBitmap(vBmp);
if (GetHICON())
{
m_bIsXpm = TRUE;
m_bIsXpm = true;
m_vXpmSrc = vBmp;
}
} // end of wxIcon::CreateIconFromXpm
void wxIcon::CopyFromBitmap(
const wxBitmap& rBmp
)
void wxIcon::CopyFromBitmap( const wxBitmap& rBmp )
{
wxMask* pMask = rBmp.GetMask();
HBITMAP hBmp = NULLHANDLE;
@@ -236,9 +234,10 @@ void wxIcon::CopyFromBitmap(
vIconInfo.hbmPointer = hBmpMask;
HICON hIcon = ::WinCreatePointerIndirect( HWND_DESKTOP
,&vIconInfo
);
#ifndef __WATCOMC__
// FIXME: incomplete headers ???
HICON hIcon = ::WinCreatePointerIndirect( HWND_DESKTOP, &vIconInfo);
if (!hIcon)
{
@@ -253,6 +252,7 @@ void wxIcon::CopyFromBitmap(
,rBmp.GetHeight()
);
}
#endif
if (!rBmp.GetMask())
{
@@ -293,4 +293,3 @@ bool wxIcon::LoadFile(
else
return(FALSE);
}