case 1 : I have a MFC dialog box having a LisBox.
I have added two items in listbox.
Whenever i am double clicking on empty area of list box i.e. not double clicking
on either of two item.
Double click is detecting on empty area of listbox.
case 2: When i created a small MFC test application with listbox. it iis detecting double click only on item, not on empty area.
I compared all properties of both cases but couldn't figure out what is the problem.
Anyone has idea what is going wrong in case 1.
相关问题
- Create CFrameWnd gives first-chance exceptions--wh
- Underline is drawn outside of rectangle reported b
- Bold labels in MFC
- Why is my MFC application hanging after interactin
- Sort files according to creation date?
相关文章
- MFC CListView响应HDN_ITEMCHANGING后改变列宽无法自动显示隐藏水平滚动条
- How can I handle the Return key in a CEdit control
- How can I create a guid in MFC
- Visual Studio unable to recognise my MFC library f
- How to get WM_POWERBROADCAST message in CWinApp?
- How to remove memory leaks between OpenCV 1.1 and
- Sending the message Ctrl+Alt+Del from my applicati
- How to display Red Squiggly Lines in CRichEditCtrl
I think it is abnormal process. I've tested your situation in VS2010. In my MFC test application sent
LBN_DBLCLK
when I double clicked on empty area. If you do not really want to know the reason this weired situation, you can just check whether double click event is occurred on empty area or not. I think it is better way for saving your time.EDIT : FOR ANOTHER CASE When one of list box item is already selected, how can it handle on
ON_LBN_DBLCLK
handler? I think there will be some available methods for solving this, however I use below code and it can be useful way, also.I hope this will help you a little.