SetCapture from tasktray icon
Posted on 2004-09-07
Had this question on MFC for 2 days....no bites so I moved it over here.
I have a dialog that I minimize to the IconTray.
I need to click on the Icon and drag mouse to anywhere on the screen while getting the mouse position.
I am wondering if I can SetCapture to get the mouse position anywhere in the window while dragging.
So far it only gets the position over the Icon.
I know I could use a set timer function (already implemented) , Only I don't want to do that method if I don't have to.
I have never used any kind of window hooks, but I am willing to explore the Idea(but not at a cost to performance).
Of course I would rather do it as simple as possible, hopefully SetCapture or something that easy.