判断任务栏点击最小化,监听系统消息
void ClientDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
CDialog::OnSysCommand(nID, lParam);
if (nID == SC_MINIMIZE)
{
m_bIsForeground = false; //点击任务栏图标最小化监听
}
}
判断任务栏点击最小化,监听系统消息
void ClientDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
CDialog::OnSysCommand(nID, lParam);
if (nID == SC_MINIMIZE)
{
m_bIsForeground = false; //点击任务栏图标最小化监听
}
}