Official eMule-Board: Emule Steals Focus - Official eMule-Board

Jump to content


Page 1 of 1

Emule Steals Focus

#1 User is offline   raccoon.i 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 27-January 05

Posted 25 March 2006 - 09:26 PM

Noticed this when I was working on my PC with eMule running in the background (minimized to system tray). I use the keyboard predominantly (as opposed to the mouse) and I've found that every once in a while the application I was working in would lose focus. Eventually I established that this coincided with eMule receiving a message from a new user (a line in the server log is added when this happens, based on the IDS_NEWMSG resource string). The following code seems to resolve the problem:

ChatSelector.cpp
CChatItem* CChatSelector::StartSession(CUpDownClient* client, bool show)
{
  // raccoonI: eMule steals focus when message from new client is received -->
  if (show)
  {
    ::SetFocus(m_hwndMessageBox);
  }
  // raccoonI: eMule steals focus when message from new client is received <--

  if (GetTabByClient(client) != -1){
    if (show){
      SetCurSel(GetTabByClient(client));
      ShowChat();
    }
    return NULL;
  }
...
}

0

#2 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 01 April 2006 - 11:03 AM

true - good work - I read it multiple times that e.g. icq messages were sent via eMule by accident :lol: this should resolve it :flowers:
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users