Questions tagged [animatewindow]
13 questions
5
votes
2 answers
Delphi: AnimateWindow like in FireFox
I have a panel (bottom aligned) and some controls (client aligned).
To animate the panel I use:
AnimateWindow(Panel.Handle, 1000, aw_hide or AW_SLIDE OR AW_VER_POSITIVE);
panel.Visible:=false;
In my case the panel smoothly hides and only then other…

maxfax
- 4,281
- 12
- 74
- 120
3
votes
2 answers
Proper way to call AnimateWindow with a .NET WinForms Form?
i'm trying to call AnimateWindow to animate the show and hide of a WinForms window.
Here's a copy of the win32 translation:
private static class NativeMethods
{
public const int AW_ACTIVATE = 0x20000;
public const int AW_HIDE = 0x10000;
…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
2
votes
1 answer
Using AnimateWindow() at Form_Load
I have a borderless form and I use the AnimateWindow() method to create animations for opening, closing, etc my Form. I use this code:
[Flags]
enum AnimateWindowFlags
{
AW_HOR_POSITIVE = 0x0000000
AW_HOR_NEGATIVE = 0x00000002,
…

OC_
- 446
- 6
- 19
1
vote
0 answers
AnimateWindow() incorrectly draws background on high dpi (Win10)
I am creating a simple Win32/MFC application with a main window, and a child-window that uses AnimateWindow() to show (slide up) and hide (slide down) the window. When running the application on 100% dpi scaling, everything behaves normally.
I…

Erwin Kloibhofer
- 43
- 8
1
vote
1 answer
AnimateWindow have no effect on maximazed form c#
I'm trying to animate the form on loading. I used AnimateWindow:
public partial class AdministrationMDI : Form
{
[DllImport("user32")]
static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags);
public…

Ahmed Fantar
- 29
- 7
1
vote
0 answers
GDI+ and AnimateWindow
I'm drawing an image onto my client area using GDI+, which works great until I use AnimateWindow to show the dialog. In this scenario and drawing done by GDI+ is not shown. Is there a way around this? I am using Win32 C++. My code so far:
BOOL…

Damien
- 1,647
- 2
- 16
- 17
1
vote
1 answer
Animation/Redrawing of moving panels is flickering badly - suggestions?
Hoping some of you out there will be able to point me in the right direction to handle flickering/tearing/redrawing issues when I 'animate' some components in an application.
I have to preface this by saying that the 'animations' seem to work…

ConBran
- 369
- 2
- 15
1
vote
0 answers
Why fading a form with non-rectangular region does not work correctly?
I created a top level form and changed its Region property to an eliptical region. Then, I made the form to fade in using the AnimateWindow function. When the form was fading in, the rectangular shape of the form was still displayed. When the form…

Tu Le Hong
- 95
- 1
- 8
0
votes
0 answers
Strategy for creating a fadable child window
I'm attempting to create a window class that supports fading in and out, even for child windows. Basically it adds the WS_EX_LAYERED style to the window, and then it calls SetLayeredWindowAttributes on a timer, gradually changing the alpha…
user15284017
0
votes
0 answers
AnimateWindow API hide leaves trails
I am using AnimateWindow to show/hide my toolbar. During Hide the toolbar leaves a trail and after a few seconds it disappears. How can I eliminate these trails during hide?
AnimateWindow(m_hWndToolbar, 200, AW_SLIDE | AW_VER_NEGATIVE |…

MhirMac
- 5
- 2
0
votes
0 answers
win32 Textbox and AnimateWindow
I'm making a native win32 application and use AnimateWindow to fadein the window. It all works well except the couple textboxes I have in my window are not drawn until I do an InvalidateRect call after the fadein. From the MSDN doc it says the…

user2711115
- 457
- 3
- 18
0
votes
1 answer
How can I use the AnimateWindow function on a separate thread?
How can I animate two windows at the same time? I tried:
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern bool AnimateWindow(IntPtr hwnd, int time, int flags);
...
AnimateWindow(panel1.Handle, speed, AW_SLIDE |…

MIM
- 9
- 3
0
votes
1 answer
Use AnimateWindow in a new thread
How can I animate two windows at the same time? I tried:
[DllImport("user32.dll", CharSet = CharSet.Auto)]
static extern bool AnimateWindow(IntPtr hwnd, int time, int flags);
...
AnimateWindow(panel1.Handle, speed, AW_SLIDE |…

MIM
- 9
- 3