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; } ... }
Page 1 of 1
Emule Steals Focus
#1
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:
#2
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 this should resolve it
Page 1 of 1