ListBox items and intercepting messages

This is a discussion on ListBox items and intercepting messages within the Windows Programming forums, part of the Platform Specific Boards category; Hello, .. 2 Questions. 1) How do I add items to a listbox I created with CreateWindowEx 2) How can ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    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,
    Michael.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    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
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Excellent!
    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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21