Create a special window [6]

Source: Internet
Author: User
In this example:


Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, extctrls; Type tform1 = Class (tform) Panel1: tpanel; Procedure formcreate (sender: tobject); Procedure panel1click (Sender: tobject); end; var form1: tform1; implementation {$ R *. DFM} var F: Boolean; Procedure tform1.formcreate (Sender: tobject); Begin self. color: = clwhite; panel1.parentbackground: = false; end; Procedure tform1.panel1click (Sender: tobject); var RGN: hrgn; begin F: = not F; if F then RGN: = createellipticrgn (0, 0, panel1.width, panel1.height) else RGN: = createrectrgn (0, 0, panel1.width, panel1.height); setcancwrgn (panel1.handle, RGN, true) end; end.

 

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.