Quote:
Originally posted by Dimension
In your sample, when click IDC_DLGBTN1, child dialog will open, and if move the mouse away, it will back to IDC_NORMAL. How to make it stay at IDC_HIGHLIGHT eventhough the mouse is move away, since that the child dialog is still open.
and when close that child dialog, it will back to IDC_NORMAL.
Thanks.
Ok, this is completely different. To do this, you would probably check to see if the child dialog is visible in WM_MOUSEMOVE and WM_MOUSELEAVE, and only change the bitmap if the dialog is not visible. Then in the "OK" button handler for the child dialog, set the bitmap back to the normal one.