#undef GetCharWidth
#endif
+#ifndef __WIN16__
inline BOOL GetCharWidth(HDC dc, UINT first, UINT last, LPINT buffer)
{
#ifdef _UNICODE
return GetCharWidthA(dc, first, last, buffer);
#endif
}
+#endif
// FindWindow
#undef FindWindow
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline HWND FindWindow(LPCWSTR classname, LPCWSTR windowname)
{
return FindWindowA(classname, windowname);
}
#endif
+#endif
// GetClassName
#undef GetClassName
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int GetClassName(HWND h, LPWSTR classname, int maxcount)
{
return GetClassNameA(h, classname, maxcount);
}
#endif
+#endif
// GetClassInfo
#undef GetClassInfo
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline BOOL GetClassInfo(HINSTANCE h, LPCWSTR name, LPWNDCLASSW winclass)
{
return GetClassInfoA(h, name, winclass);
}
#endif
+#endif
// LoadAccelerators
#undef LoadAccelerators
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline HACCEL LoadAccelerators(HINSTANCE h, LPCWSTR name)
{
return LoadAcceleratorsA(h, name);
}
#endif
-
+#endif
// GetWindowProc... this isn't a Windows API function?!?!
//ifdef GetWindowProc
#undef DrawText
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int DrawText(HDC h, LPCWSTR str, int count, LPRECT rect, UINT format)
{
return DrawTextA(h, str, count, rect, format);
}
#endif
+#endif
// StartDoc
#undef StartDoc
#endif
+#ifndef __WIN16__
#ifdef _UNICODE
inline int StartDoc(HDC h, CONST DOCINFOW* info)
{
return StartDocA(h, info);
}
#endif
+#endif
// GetFirstChild... not a Windows API Function!?!?!
//ifdef GetFirstChild
#undef GetObject
#endif
+#ifndef __WIN16__
inline int GetObject(HGDIOBJ h, int i, LPVOID buffer)
{
#ifdef _UNICODE
return GetObjectA(h, i, buffer);
#endif
}
+#endif
#endif // _WX_WINUNDEF_H_