Link to home
Start Free TrialLog in
Avatar of Marsc
Marsc

asked on

Pen for moving windows.

Hello experts.

I'd like to make a dokeable tool box...
Well... The way that I mind is this...

Catch some mouse messages on the nonclient area of the window, and emulate the window moving...

Well...

When you move a window, a rect is shown to indicate where the window is going to be placed if you release the mouse...

Why trapping theese messages?...
Because I need to change the size of that rect when you move the cursor to a zone where the floting window would be docked....

The problem if I do it in this way is this:

I don't know how to create a pen that looks like the frame of the window when it is being moved. it seems to be composed of paralels diagonal small and thin lines...

Or may be you can change the size of that rect in any way...

Well...

Is there any solution for this problem?...

Thanks...

Avatar of Marsc
Marsc

ASKER

By the way...

If I used MFC, I'd have this problem solved... but the problem is that I don't want to use MFC...

thanks
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Marsc

ASKER

Could you believe if I told that I was looking at the documentation of that message before, but I didn't see about that pointer?... I must be blind... :-)

Well Thank you very much...

Well... I if you want to tell me how can (if possible) I change the line... I mean... make it thicker or less thick..
If I can't... well, It doesn't mather for now...

Thanks again...
Nope you can't change the line.  For that you will have to handle the drawing and mouse tracking yourself.  That is rather complex.