TEMPLATE void CDialogMinTrayBtn<BASE>::MinTrayBtnInit() { m_nMinTrayBtnTimerId = 0; BOOL bBmpResult = MinTrayBtnInitBitmap(); // - Never use the 'TransparentBlt' function under Win9x (read SDK) // - Load the 'MSIMG32.DLL' only, if it's really needed. if (!afxData.bWin95 && bBmpResult && !_TransparentBlt) { HMODULE hMsImg32 = LoadLibrary(_T("MSIMG32.DLL")); if (hMsImg32) { (FARPROC &)_TransparentBlt = GetProcAddress(hMsImg32, "TransparentBlt"); if (!_TransparentBlt) FreeLibrary(hMsImg32); } } }
template <class BASE> void CDialogMinTrayBtn<BASE>::MinTrayBtnInit() { m_nMinTrayBtnTimerId = 0; // - Never use the 'TransparentBlt' function under Win9x (read SDK) // - Load the 'MSIMG32.DLL' only, if it's really needed. MinTrayBtnInitBitmap(); if (g_App.m_pPrefs->GetWindowsVersion() != _WINVER_95_ && m_pfnTransparentBlt == NULL) { m_hMsImg32 = LoadLibrary(_T("MSIMG32.DLL")); if (m_hMsImg32 != NULL) { (FARPROC &)m_pfnTransparentBlt = GetProcAddress(m_hMsImg32, "TransparentBlt"); if (m_pfnTransparentBlt == NULL) { FreeLibrary(m_hMsImg32); m_hMsImg32 = NULL; } } } }
template <class BASE> LRESULT CDialogMinTrayBtn<BASE>::_OnThemeChanged() { MinTrayBtnInitBitmap(); return 0; }
TEMPLATE LRESULT CDialogMinTrayBtn<BASE>::_OnThemeChanged() { // BASE::OnThemeChanged(); MinTrayBtnInitBitmap(); return 0; }