nullptr,
PROGRAM_NAME,
_T("WinMute is already running"),
- _T("Please look for a blue speaker icon in your Windows ")
+ _T("Please look for a white speaker icon in your Windows ")
_T(" taskbar notification area."),
TDCBF_OK_BUTTON,
TD_ERROR_ICON,
bool WinMute::InitWindow()
{
hWnd_ = CreateWindowEx(WS_EX_TOOLWINDOW, WINMUTE_CLASS_NAME, PROGRAM_NAME,
- WS_POPUP, 0, 0, 0, 0, HWND_MESSAGE, 0, hglobInstance, this);
+ WS_POPUP, 0, 0, 0, 0, NULL, 0, hglobInstance, this);
if (hWnd_ == nullptr) {
PrintWindowsError(_T("CreateWindowEx"));
return false;
if (muteConfig_.noRestore.onShutdown) {
audio_->Mute();
}
- } else if (lParam == ENDSESSION_LOGOFF) {
+ } else if ((lParam & ENDSESSION_LOGOFF)) {
if (muteConfig_.noRestore.onLogoff) {
audio_->Mute();
}