Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loosing focus, alt+tab, alerts 1

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
HI
I have this problem: in my object i do clipCursor after LButtonDown. on LbuttonUp I clip the cursor back to whole screen. A problem comes when I do alt+tab between ButtonDown and ButtonUp, because cursor is still clipped. Also when some message/alert windows apperars between ButtDown and ButtUp. How can I do that? OnKillFOcus doesn't work for in this way, catching just special keys as alt+tab doesn't solve the problem with some special alert window show.

thx
bubak
 
Try to use the window messages:
WM_ENABLE and
WM_SHOWWINDOW

In wParam of the message you will find TRUE/FALSE showing that your window is gaining/losing focus.

HTH, s-)

Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top