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...

LVL 1
MarscAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MarscAuthor Commented:
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
0
nietodCommented:
You don't have to got to anywhere near that amount of work--beleive me what you are talking about is a lot of work.

You can just process the WM_MOVING and WM_SIZING messages.  They allow you to get the suggested size/move hollow rectangle from the OS and then alter it to the rectangle you feel should be used.

Let me know if you have any questions.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MarscAuthor Commented:
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...
0
nietodCommented:
Nope you can't change the line.  For that you will have to handle the drawing and mouse tracking yourself.  That is rather complex.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.