added more convenient wxDL_INIT_FUNC[_AW] macros and use them instead of verbose wxDynamicLibrary::GetSymbol() calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-21 18:43:51 +00:00
parent 22c1dcbb59
commit d0edb9da60
3 changed files with 31 additions and 29 deletions

View File

@@ -61,8 +61,7 @@ static BOOL wxShellNotifyIcon(DWORD dwMessage, NOTIFYICONDATA *pData)
wxDynamicLibrary dllShell("shell32.dll");
if ( dllShell.IsLoaded() )
{
s_pfnShell_NotifyIcon =
(Shell_NotifyIcon_t)dllShell.GetSymbolAorW("Shell_NotifyIcon");
wxDL_INIT_FUNC_AW(s_pfn, Shell_NotifyIcon, dllShell);
}
// NB: it's ok to destroy dllShell here, we link to shell32.dll