Delphi minimizes the window and displays it on the taskbar

Source: Internet
Author: User
Tags old windows

OnCodeThe following code is written: frm_main.windowstate: = wsminimized. After the code is executed, the form is minimized on the desktop (on the taskbar )! In addition Design After the windowstate attribute is set to wsminimized, you can "minimize" the window after the form is initialized on the taskbar, but not on the desktop!

Thank you for your advice !!!

Different objects have different effects
Application. Minimize;
Self. windowstate: = wsminimized

That sentence is Yes For self, not application.

 

In Delphi, except for the main form, the remaining forms will not appear on the taskbar after being minimized, but will appear in the lower left corner of the desktop as in the old windows 3. X. Add

 

Setwindowlong (handle, gwl_exstyle, getwindowlong (handle, gwl_exstyle) or ws_ex_appwindow );

The window can be minimized and displayed on the taskbar.

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.