Thread: ListBox items and intercepting messages

  1. #1

    ListBox items and intercepting messages

    Hello, ..

    2 Questions.

    1) How do I add items to a listbox I created with CreateWindowEx
    2) How can I intercept messages going to a certain application, or at least determine what messages can be sent so that I may send them from my application.

    Kindest regards,

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    1. Use SendMessage() to send LB_ADDSTRING messages.
    2. Use Spy++ or similar, (comes with VC).
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    I don't have VC++ but I found Winspector which has heaps more stuff than spy++..

    I never knew what spy++ was, we have visual studio at school and I've seen it but never used it.

    Thanks again!

Popular pages Recent additions subscribe to a feed