Skip to content

Commit 1837fc3

Browse files
committed
Support window messages higher than WM_USER
1 parent 5697890 commit 1837fc3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MsgTrans.Library/WmCommand.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ private string GetWmDescription(long wm)
7878
return text.Value;
7979
}
8080
else
81-
return null;
81+
{
82+
if (wm > 1024)
83+
{
84+
return "WM_USER + " + (wm - 1024).ToString();
85+
}
86+
}
87+
return null;
8288
}
8389

8490
private long GetWmNumber(string wmName)

0 commit comments

Comments
 (0)