Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How can I detect which icon is clicked on the client area??

grahamojgrahamoj Member Posts: 366
Hiya How can I detect which icon is clicked on the client area??

I have loaded icons onto the "client area", 4 in total, using OnDraw and an image list. I also have added a OnLButtonDown handler, but how now do I detect which icon is clicked on??

If I can detect this, then I will be able to call my dialog, relating to that icon.

Thanks,
grahamoj.

Comments

  • goodbettgoodbett Member Posts: 6
    if you draw these images with DrawState(),you can set the positions and sizes of them.So in the function of OnLButtonDown(),you can check your mouse position and see whether it's in the regions of these images and do some corresponding action.
Sign In or Register to comment.