// tries to locate AlphaBlend() function and initializes some data needed for alpha blending; // sets pointer to AlphaBlend function (AlphaBlendF) // (returns false when AlphaBlending is not supported) //static bool MapWindow::AlphaBlendInit() { #if (WINDOWSPC>0) AlphaBlendF = AlphaBlend; #else AlphaBlendF = (TAlphaBlendF) GetProcAddress(GetModuleHandle(TEXT("coredll.dll")), TEXT("AlphaBlend")); #endif if (AlphaBlendF == NULL) { StartupStore(_T(". AlphaBlend Transparency is not available on this device\n")); return false; } InitAirSpaceSldBrushes(Colours); return true; } // AlphaBlendInit()
// tries to locate AlphaBlend() function and initializes some data needed for alpha blending; // sets pointer to AlphaBlend function (AlphaBlendF) // (returns false when AlphaBlending is not supported) //static bool MapWindow::AlphaBlendInit() { #if (WINDOWSPC>0) AlphaBlendF = AlphaBlend; #else AlphaBlendF = (TAlphaBlendF) GetProcAddress(GetModuleHandle(TEXT("coredll.dll")), TEXT("AlphaBlend")); #endif if (AlphaBlendF == NULL) { #if ALPHADEBUG StartupStore(_T(". CoreDll::AlphaBlend() is not available\n")); #endif return false; } InitAirSpaceSldBrushes(Colours); return true; } // AlphaBlendInit()