mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Reduce method call stack alloc
This commit is contained in:
parent
0652894196
commit
2471918312
@ -226,12 +226,11 @@ namespace Nikse.SubtitleEdit.Controls
|
||||
}
|
||||
}
|
||||
|
||||
private const int WM_DBLCLICK = 0xA3;
|
||||
private const int WM_LBUTTONDBLCLK = 0x203;
|
||||
private const int WM_LBUTTONDOWN = 0x0201;
|
||||
protected override void WndProc(ref Message m)
|
||||
{
|
||||
const int WM_DBLCLICK = 0xA3;
|
||||
const int WM_LBUTTONDBLCLK = 0x203;
|
||||
const int WM_LBUTTONDOWN = 0x0201;
|
||||
|
||||
if (m.Msg == WM_DBLCLICK || m.Msg == WM_LBUTTONDBLCLK)
|
||||
{
|
||||
SelectCurrentWord();
|
||||
|
Loading…
Reference in New Issue
Block a user