Results 1 to 3 of 3

Thread: 2 QUESTIONS

  1. #1

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409

    Cool

    1.How do i set the picture of a button when i set its style to bitmap.
    2.What message is sent to my window when the user clicks an icon put in a picture box in my window.How can i react to that event.I know a WM_LBUTTONDOWN is sent but how can i know if it was pressed over the icon.

    [Edited by Vlatko on 10-13-2000 at 01:02 PM]
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  2. #2
    Guest
    Just posting cuz id like to know too.

  3. #3
    Guest
    I'm not sure if you can because it's drawn on to it's DC, however, the LParam argument of WM_LBUTTONDOWN will check the X and Y positions of the mouse, hence if you know what the coordinates of the Picture is, then you can check if the coordinates of the mouse is in it.

    The LOWORD of lParam is the X position and the HIWORD is the Y position.

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