diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-27 02:06:28 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-27 02:06:28 +0000 |
commit | 0a7c9bab72e6bc7a6cfbd0ac908f9c35b5eb31d9 (patch) | |
tree | 65a0827547d1240575fdf038522db8c710684f87 /tipper/message_pump.cpp | |
parent | 7c6899953550c3a1f6a4ce611a04f24bd0e232f7 (diff) |
fix for tip position (ansi function)
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@63 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'tipper/message_pump.cpp')
-rw-r--r-- | tipper/message_pump.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tipper/message_pump.cpp b/tipper/message_pump.cpp index ae679c0..66013b7 100644 --- a/tipper/message_pump.cpp +++ b/tipper/message_pump.cpp @@ -124,6 +124,7 @@ int ShowTip(WPARAM wParam, LPARAM lParam) { if(wParam) { // wParam is char pointer containing text - e.g. status bar tooltip
clcit2->text = a2t((char *)wParam);
+ GetCursorPos(&clcit2->ptCursor);
}
PostMPMessage(MUM_CREATEPOPUP, 0, (LPARAM)clcit2);
@@ -143,7 +144,7 @@ int ShowTipW(WPARAM wParam, LPARAM lParam) { if(wParam) { // wParam is char pointer containing text - e.g. status bar tooltip
clcit2->text = _tcsdup((TCHAR *)wParam); - GetCursorPos(&clcit2->ptCursor); // cursor pos broken?
+ GetCursorPos(&clcit2->ptCursor);
}
PostMPMessage(MUM_CREATEPOPUP, 0, (LPARAM)clcit2);
|