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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user