summaryrefslogtreecommitdiff
path: root/win/Piecelst.cpp
diff options
context:
space:
mode:
authorleo2005-03-18 22:38:22 +0000
committerleo2005-03-18 22:38:22 +0000
commit26885315bc07017948d54962b5d585b8bc666b24 (patch)
treea20876ff14ec7c965cd010f1e7050f4d25617782 /win/Piecelst.cpp
parentc8951a1853dfd43aeb43394b9fa1682c3f0db743 (diff)
Better tooltip behavior on the pieces list,
Fixed a possible crash processing shortcuts. git-svn-id: http://svn.leocad.org/trunk@393 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/Piecelst.cpp')
-rw-r--r--win/Piecelst.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/Piecelst.cpp b/win/Piecelst.cpp
index 2ea308d..a4f14bb 100644
--- a/win/Piecelst.cpp
+++ b/win/Piecelst.cpp
@@ -261,7 +261,7 @@ int CPiecesList::CellRectFromPoint(CPoint & point, RECT* cellrect, int* col) con
void CPiecesList::OnMouseMove(UINT nFlags, CPoint point)
{
- if( nFlags == 0 )
+ if (nFlags == 0)
{
int row, col;
RECT cellrect;
@@ -269,7 +269,7 @@ void CPiecesList::OnMouseMove(UINT nFlags, CPoint point)
if (row != -1)
{
int offset = 7;
- if( col == 0 )
+ if( col == 0 )
{
CRect rcLabel;
GetItemRect(row, &rcLabel, LVIR_LABEL);
@@ -277,7 +277,7 @@ void CPiecesList::OnMouseMove(UINT nFlags, CPoint point)
}
cellrect.top--;
- m_TitleTip.Show (cellrect, GetItemText(row, col), offset-1, GetItemState (row, LVIS_FOCUSED));
+ m_TitleTip.Show(cellrect, GetItemText(row, col), offset-1, GetItemState(row, LVIS_FOCUSED) && (col == 0));
}
}