Problem in getting WM_KILLFOCUS
-
Hi, i am working on a control derived from COleControl class. I want to delete a DC whenever the control get out of focus. But in case when i am pressing window key from the keyboard, OnKillFocus() function is not working properly. Can anybody suggest an alternate solution. Thanks.
-
Hi, i am working on a control derived from COleControl class. I want to delete a DC whenever the control get out of focus. But in case when i am pressing window key from the keyboard, OnKillFocus() function is not working properly. Can anybody suggest an alternate solution. Thanks.
IMHO use paint DC which spans only within the paint handler.
-
IMHO use paint DC which spans only within the paint handler.
Hi, actually i am using the DC to call DrawDragRect function. On LButtonDown i am capturing the mouse and creating the DC and on LButtonUp i am releasing the capture and deleting the dc. But if user is pressing the the window button, OnLButtonUp is not getting called and the DC is not getting deleted. Thanks
-
Hi, actually i am using the DC to call DrawDragRect function. On LButtonDown i am capturing the mouse and creating the DC and on LButtonUp i am releasing the capture and deleting the dc. But if user is pressing the the window button, OnLButtonUp is not getting called and the DC is not getting deleted. Thanks
I think that is because your application lost capture when windows key is pressed. May be you need to handle the WM_CAPTURECHANGED Notification also.
-
I think that is because your application lost capture when windows key is pressed. May be you need to handle the WM_CAPTURECHANGED Notification also.