Hi,
I have a Dialog based - MFC application in VC 8.0.
There is a check ListBox (having property Owner Draw = Fixed and Has Strings = True) in the dialog.
We have added some elements in the list box( The number of items in the list box should be less than the visible height of the list box without the vertical scroll).
If we select one item and click mouse outside of the list box or in empty area of the list box then selection remain at the same item but the focus autometically sets at the last element of the List box. But it should not set the focus to the last element of the list box becuase now,If we press the space bar the last item get checked/unchecked.
Note: In VC 6.0 focus does not get set to the last item. It always remains same to the previous selected item.
Is in VC 8.0 the behaviourr of the list box get changed or it is bug of VC 8.0.
Please help me to solve the problem if any body have its solution.
Thanks in advance.
Ashish Kumar
Sr. Systems Executive
Scicom Technology Private Limited
A-67, Sector - 57,
NOIDA - 201301,
Uttar Pradesh, India
Tel. : +91-120-2589992 to 7 (Six lines) Ext. 126
Fax : +91-120-2589998
Mobile : +91-9891448096

Problem in CCheckListBox
sgarlad
Yes one thing more, i have seen a very shocking thing during my investigation around this problem. If i create the same application in VC 6.0 it works fine after that i had open this same project on VC 8.0 (i means i had converted this application which was created in VC 6.0 to the VC 8.0). Now again It works fine. So i'm much surprised to know that what the thing going wrong, when i create the new application in VC 8.0
Please help me if any body have the solution for the same.
Thanks
Ashish Kumar
Raja Chandran
No Martin, single selection is allowed.
Jazzyguy
Hi Nikola
I'm not able to find the place to send the sample project to produce the same problem. So i'm attaching a zip file, which contains the sample code and a document file tells about how the application is behaveing and how it should behave
Mikeyw
I am not sure what is exactly wrong in this case. Please report this issue on https://connect.microsoft.com/site/sitehome.aspx SiteID=210 with a simple project that repros this issue and describe what behaviour is expected. Our development team will take a look.
Thanks,
Nikola
Razimohiuddin
Again: Do you have a minimal repro. I used the CCheckedListBox very often and I can't see such behaviour.
Is there a chance that there are WM_COMMAND messages misinterpreted Is there a chance that you defined IDs for controls twice
JBanning
Hi Nikola
Please ignore the previous mail. I was not able to attach the sample project becuase there is no option to attache the sampel.
could you please write the step to attch the sample through the link:
https://connect.microsoft.com/site/sitehome.aspx SiteID=210
or some other option so that i can send you the sample project.
Thaks
Ashish
Shrini
I can't see such behaviour in my programs. Do you have a minimal repro
Do you have multi selection allowed