Window launch effects, using the Win32 API

Source: Internet
Author: User
Tags win32

A window effect code that uses the API. You can try it, is not in the window display will show a variety of special effects. It's a little bit of a surprise.


[System.Runtime.InteropServices. DllImport("user32")]
private static extern bool animatewindow (IntPtr hwnd, INT Dwtime, int dwflags);
Private const int aw_hor_positive = 0x0001; // display from left to right
Private const int aw_hor_negative = 0x0002; // display from right to left
Private const int aw_ver_positive = 0x0004; // display from top to bottom
Private const int aw_ver_negative = 0x0008; // display from bottom to top
Private const int aw_center = 0x0010; // from the middle to the perimeter
        <>< span=""><>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.