explorer重启后托盘图标

重写窗口的DefWindowProcLRESULTCMainFrame::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{

static UINT const WM_TASKBARCREATED =RegisterWindowMessage(_T("TaskbarCreated"));
if( WM_TASKBARCREATED == message ) 
{
//显示托盘
return TRUE;
}

return CFrameWnd::DefWindowProc(message, wParam, lParam);
}


你可能感兴趣的:(C++)