Move / Resize effect
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
Date: Fri, 16 Apr 2004 10:09:48 -0400
Guys,
I am trying to create a move / resize effect by drawing a rectangle on the
window when the user is moving a picture box around. The problem I am
running into is that when I draw the rectangle, it gets drawn BEHIND the
control I am resizing / moving.
How can I draw this rectangle on top of the control?
Where should I draw to? should I draw to the form's GDI?
Is there a way to draw directly to the screen? (on top of everything)
Thanks!
Relevant Pages
- Re: Mouse movement within CStatic/Picture box
... It doesn't draw a rectangle, but resize "dots" are put around the object. ... one thing to note is that static controls don't display a focus rectangle by default. ... afx_msg void OnPaint; ... CPictureBox.cpp -- These dont get the control when events are fired! ... (microsoft.public.vc.mfc) - Re: Cursors - Resize columns
... Copy the rectangle under which I will draw the ... I also want to draw a vertical line from the cursor ... >> know I can draw a vertical line on the graphics object for the control but ... (microsoft.public.dotnet.languages.vb) - Re: How to draw a rectangle on AxWebBrowser to high light one html element?
... Andy ... > control itself, instead of drawing on the control itself? ... >> Now I can get the rectangle to draw, but it seems the rectangle is not ... The following code is used to draw the rectangle. ... (microsoft.public.dotnet.languages.csharp) - Getting the color of the clicked pixel
... I have a generic Control added to a form. ... On this control, I draw a few ... rectangle, then they'll get the color of the rectangle. ... (microsoft.public.dotnet.framework.compactframework) - Re: FillRectangle over Windows Forms Components
... (That means your rectangle might overlap the button and hide some ... the button and the panel. ... the problem with a new control is, that you hide the object under it. ... Now I can draw ... (microsoft.public.dotnet.framework.windowsforms) |
|