I'm able to change the background of my MFC MDI application's mainframe, but I'm wondering if it's possible to add links or buttons to the background? Similar to what's possible with HTML Images and multiple links and create the effect of having tiles.
If you are looking for the same thing (which you referred) in MFC, you can do it by tracking the position of mouse pointer, but you can't create a button or link on the background. To track follow the step,
CRect
objects (as explained in the reference example).ON_WM_LBUTTONDOWN
or ON_WM_LBUTTONUP
message and track the mouse click event on OnLButtonDown()
or OnLButtonUp()
function accordingly.CPoint
is inside the CRect
using PtInRect()
function.CRect
objects the perform the operations accordingly.
NOTE: Even it is possible to change the mouse pointer on hover the logo by listening to ON_WM_SETCURSOR
message.