mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0028822: Configuration, XCAFDoc - fix name collision with macros GetObject()
This commit is contained in:
parent
b2857a7ef0
commit
b07ce12b5f
@ -1579,7 +1579,7 @@ void DrawWindow::InitBuffer()
|
|||||||
GetClientRect(win, &rc);
|
GetClientRect(win, &rc);
|
||||||
if (myMemHbm) {
|
if (myMemHbm) {
|
||||||
BITMAP aBmp;
|
BITMAP aBmp;
|
||||||
GetObject(myMemHbm, sizeof(BITMAP), &aBmp);
|
GetObjectW (myMemHbm, sizeof(BITMAP), &aBmp);
|
||||||
if (rc.right-rc.left == aBmp.bmWidth && rc.bottom-rc.top == aBmp.bmHeight) return;
|
if (rc.right-rc.left == aBmp.bmWidth && rc.bottom-rc.top == aBmp.bmHeight) return;
|
||||||
DeleteObject(myMemHbm);
|
DeleteObject(myMemHbm);
|
||||||
}
|
}
|
||||||
@ -1789,7 +1789,7 @@ static Standard_Boolean SaveBitmap (HBITMAP theHBitmap,
|
|||||||
{
|
{
|
||||||
// Get informations about the bitmap
|
// Get informations about the bitmap
|
||||||
BITMAP aBitmap;
|
BITMAP aBitmap;
|
||||||
if (GetObject (theHBitmap, sizeof(BITMAP), (LPSTR )&aBitmap) == 0)
|
if (GetObjectW (theHBitmap, sizeof(BITMAP), &aBitmap) == 0)
|
||||||
{
|
{
|
||||||
return Standard_False;
|
return Standard_False;
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,10 @@ class TDF_Attribute;
|
|||||||
class TDF_RelocationTable;
|
class TDF_RelocationTable;
|
||||||
class XCAFDimTolObjects_DatumObject;
|
class XCAFDimTolObjects_DatumObject;
|
||||||
|
|
||||||
|
// resolve name collisions with WinAPI headers
|
||||||
|
#ifdef GetObject
|
||||||
|
#undef GetObject
|
||||||
|
#endif
|
||||||
|
|
||||||
class XCAFDoc_Datum;
|
class XCAFDoc_Datum;
|
||||||
DEFINE_STANDARD_HANDLE(XCAFDoc_Datum, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(XCAFDoc_Datum, TDF_Attribute)
|
||||||
@ -66,16 +70,8 @@ public:
|
|||||||
|
|
||||||
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
|
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const Standard_OVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DEFINE_STANDARD_RTTIEXT(XCAFDoc_Datum,TDF_Attribute)
|
DEFINE_STANDARD_RTTIEXT(XCAFDoc_Datum,TDF_Attribute)
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
||||||
@ -83,14 +79,6 @@ private:
|
|||||||
Handle(TCollection_HAsciiString) myDescription;
|
Handle(TCollection_HAsciiString) myDescription;
|
||||||
Handle(TCollection_HAsciiString) myIdentification;
|
Handle(TCollection_HAsciiString) myIdentification;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif // _XCAFDoc_Datum_HeaderFile
|
#endif // _XCAFDoc_Datum_HeaderFile
|
||||||
|
@ -26,6 +26,10 @@ class TDF_Attribute;
|
|||||||
class TDF_RelocationTable;
|
class TDF_RelocationTable;
|
||||||
class XCAFDimTolObjects_DimensionObject;
|
class XCAFDimTolObjects_DimensionObject;
|
||||||
|
|
||||||
|
// resolve name collisions with WinAPI headers
|
||||||
|
#ifdef GetObject
|
||||||
|
#undef GetObject
|
||||||
|
#endif
|
||||||
|
|
||||||
class XCAFDoc_Dimension;
|
class XCAFDoc_Dimension;
|
||||||
DEFINE_STANDARD_HANDLE(XCAFDoc_Dimension, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(XCAFDoc_Dimension, TDF_Attribute)
|
||||||
|
@ -26,6 +26,10 @@ class TDF_Attribute;
|
|||||||
class TDF_RelocationTable;
|
class TDF_RelocationTable;
|
||||||
class XCAFDimTolObjects_GeomToleranceObject;
|
class XCAFDimTolObjects_GeomToleranceObject;
|
||||||
|
|
||||||
|
// resolve name collisions with WinAPI headers
|
||||||
|
#ifdef GetObject
|
||||||
|
#undef GetObject
|
||||||
|
#endif
|
||||||
|
|
||||||
class XCAFDoc_GeomTolerance;
|
class XCAFDoc_GeomTolerance;
|
||||||
DEFINE_STANDARD_HANDLE(XCAFDoc_GeomTolerance, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(XCAFDoc_GeomTolerance, TDF_Attribute)
|
||||||
|
@ -26,6 +26,10 @@ class TDF_Attribute;
|
|||||||
class TDF_RelocationTable;
|
class TDF_RelocationTable;
|
||||||
class XCAFView_Object;
|
class XCAFView_Object;
|
||||||
|
|
||||||
|
// resolve name collisions with WinAPI headers
|
||||||
|
#ifdef GetObject
|
||||||
|
#undef GetObject
|
||||||
|
#endif
|
||||||
|
|
||||||
class XCAFDoc_View;
|
class XCAFDoc_View;
|
||||||
DEFINE_STANDARD_HANDLE(XCAFDoc_View, TDF_Attribute)
|
DEFINE_STANDARD_HANDLE(XCAFDoc_View, TDF_Attribute)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user