Click here to Skip to main content
15,949,686 members

Comments by TheNewbieProgrammer (Top 1 by date)

TheNewbieProgrammer 14-Jul-23 13:38pm View    
Check the mouse position in WM_LBUTTONDOWN to see if it is within your bitmap bounds. The first solution I provided works, but for my self I'd create a custom control for each component to easily handle any type of event, which is again how I implement my UI components, So if you don't like mine, you can use the first solution.