Learn message (17): wm_syscommand message [1]

There are already defined system command constants (I think there are some problems ): SC _size = 61440; SC _move = 61456; SC _minimize = 61472; rows = 61488; SC _nextwindow = 61504; SC _prevwindow = 61520; SC _close = 61536; SC _vscroll = 61

Learn more about GDI + [14]: drawbeziers-draw a group of besels

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject ); procedure formmousedown

Winapi: function related to the input cursor [4]

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formmousedown (Sender: tobject; button: tmousebutton;

Rewrite a string segmentation function-reply to the "tomzw" question

Problem Source: http://www.cnblogs.com/del/archive/2008/11/27/967440.html#1384363 Unit unit1; interfaceuses windows, messages, extensions, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1:

Winapi character and string functions (6): ischaralphanumeric-whether it is a character (letter or number)

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; button3: tbutton; button4: tbutton; button5: tbutton; Procedure

Winapi character and string function (10): lstrcpy-copy string

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; button3: tbutton; Procedure button1click (Sender: tobject);

Learn more about GDI + [22]: tgplineargradientbrush-one: tlineargradientmode

Tgplineargradientbrush. create (rect: tgprect; {linear gradient boundary} color1, color2: tgpcolor; {linear gradient start color and end color} mode: tlineargradientmode {Gradient Direction, see the following table }); tgplineargradientbrush. create

Winapi characters and string functions (13): lstrcmp, lstrcmpi-comparison string

Lstrcmp is case sensitive; lstrcmpi is case insensitive. return values:-1, 0, and 1, where 0 indicates the same. Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type

Learn more about GDI + [47]: Path-closefigure

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) checkbox1: tcheckbox; checkbox2: tcheckbox; procedure

Chinese character and location code (1)-Conversion Function

First, the conversion function: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; procedure button1click

Learn more about GDI + [46]: Path-create, fillpath, drawpath

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs; Type tform1 = Class (tform) Procedure formpaint (Sender: tobject); end; vaR form1: tform1; implementation {$ R *.

Learn more about GDI + [10]: drawclosedcurve-draw a closed curve

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, comctrls; Type tform1 = Class (tform) button1: tbutton; trackbar1: ttrackbar;

Winapi character and string functions (3): Convert charupper-character or string to uppercase

Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; button3: tbutton; button4: tbutton; button5: tbutton; Procedure

Winapi: function related to the input cursor [3]

In this example, the color of the cursor is modified ,: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls, extctrls; Type tform1 = Class (tform)

Learning message (22): wm_syscommand message [6]: comprehensive operation example of the System Menu

In this example: Code File: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; button3: tbutton;

A tmyshape class that can display Polygon-Reply to "Dong Yong"'s question

Test: Custom myshape unit: Unit myshape; interfaceuses windows, classes, graphics, controls; Type tmyshapetype = (strectangle, stsquare, stroundrect, stroundsquare, stellipse, stcircle, stpolygon); tpoints = array of tpoint;

Learn message (18): wm_syscommand message [2]: lparam Parameter

The lparam parameter of the wm_syscommand message is the mouse position, the low is X, and the high is Y. The following three programs use different types of message parameters. It is more convenient to use twmsyscommand and more orthodox to use

Learn more about GDI + [37]: tgppen-tgpcustomlinecap, setcustomstartcap, setcustomendcap

You can customize a line cap using GDI +. In this example, the starting line cap is a small rectangle and the ending line cap is a small triangle. In this example: Code file: Unit unit1; interfaceuses windows, messages, sysutils, variants,

Learn more about GDI + [36]: tgppen-setlinecap

In this example: Code file: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, classes, extctrls; Type tform1 = Class (tform) combox1: tcombobox; combox2: outputs; outputs: outputs;

Learn more about GDI + [48]: Path-startfigure, closefigure, closeallfigures

In this example: Code file: unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) CheckBox1: TCheckBox; CheckBox2: TCheckBox; procedure

Total Pages: 64722 1 .... 54250 54251 54252 54253 54254 .... 64722 Go to: GO

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.