Does this happen only when mIRC is maximized? Or whenever it's the active window? Or when it is minimized? Or does it happen no matter the state of the mIRC window?
If it only happens when mIRC is the active window (maximized or not), does it happen if your mouse is NOT over the switchbar (if you have that enabled)?