Results 1 to 14 of 14

Thread: Sub Classing a ListBox

Threaded View

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Sub Classing a ListBox

    I'm writing an application which has a listbox full of items. The Style property in the ListBox is set to 1 - CheckBox. I need to stop the user unchecking the first item in the listbox. I've written the code to subclass the ListBox to detect the WM_LBUTTONDOWN message, but I don't know how to find out whether the check box of the first item in the list was clicked.

    How do I check if the check box of the first item in the list was clicked?


    Thanks in advance
    Last edited by VB6Coder; Oct 31st, 2001 at 05:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width