Page 1 of 1

Double click action

Posted: 11 Jan 2005, 13:29
by tefernc
I am a great fan of PopMan 1.2.2, one thing that has really annoyed me is when popman is iconised or hidden by another window double clicking on the task bar notification area icon does not bring popman to the foreground, so I modified the code as follows.

Can I suggest you add this to the next release? Assuming my mods don't break any of your code.

Code: Select all

void CPopManDoc::ExecuteAction(TRAYACTIONS Action)
{
   m_MailInfo.DestroyWindow();
   m_NewTip.DestroyWindow();

   switch(Action)
   {
   case TRAYACTIONS::ShowWindow:
      AfxGetMainWnd()->SendMessage(WM_COMMAND, ID_TRAY_SHOW, 0);
         // Ted Ferenc New Alterations
      AfxGetMainWnd()->SetForegroundWindow();
      AfxGetMainWnd()->ShowWindow(SW_SHOWNORMAL);
      break;

Posted: 11 Jan 2005, 21:12
by Christian
Hi Ted,

Thank you for the fix. I will add your modification to the next release...

Posted: 12 Jan 2005, 08:29
by Guest
Christian,

You are welcome, please feel free to remove my name from the comment, it was just there to show what I did.

Ted