Use the hook function [1]

Current understanding of hooks: For example, we double-click a window with the mouse, or enter a letter a for a window;First, we found that these events are not windows, but systems! Then the system will tell you: Hello! What are you going to

Learn ttreeview [10]-autoexpand, hottrack, readonly, showbuttons, showlines, showroot, indent

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

Delphi's drawing function [5]-getting canvas objects

Add Panel1, paintbox1, and button1 to the form, CodeAs follows: Procedure tform1.button1click (Sender: tobject); var CVS: TCanvas; begin {paintbox1 is like a form and has the canvas attribute} paintbox1.canvas. brush. color: = clred; paintbox1.

Button for making and placing two small images-reply to the "xhui" question

Problem Source: http://www.cnblogs.com/del/archive/2009/03/12/1409708.html#1475240 In this example: Custom class (tmybutton ): Unit unit2; interfaceuses windows, messages, classes, graphics, stdctrls; Type tmybutton = Class

Twebbrowser and mshtml (2): Time to get the window object

This is obtained immediately after the page is downloaded: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, olectrls, shdocvw, stdctrls; Type tform1 = Class (tform) webbrowser1:

Learning to use resource files [2]-ico

Now I want to create a resource file with two icons and call it. 1. Create a new project and save it. Note that {$ R *. Res} will not be deleted this time} 2. Copy two ICO files to the project directory, for example, icofile_1.ico and icofile_2

A small exercise on the absolute keyword

// The three variables in the example allow absolute to get a piece, which is sometimes very convenient; but I still don't think of it, I am still not familiar with it. procedure tform1.formcreate (Sender: tobject); var num: int64; Pt: tpoint

Operator Overloading of Delphi (1)

In fact, Delphi 2006 already supports Operator overloading, but the for Win32 version is only supported in record. What is the use of Operator Overloading? For example:For example, you may ask, "Who are the two of you? "In fact, you are asking: "

Encodedatetime... Tryencodedatetime... Build time

Sysutils. Examples. encodedatesysutils. encodetimedateutils. Examples. Examples. encodedatetimedateutils. encodedateweekdateutils. example. tryencodedatetimedateutils. example. Example Unit unit1; interfaceuses windows, messages, extensions,

Multi-thread programming (14)-waitabletimer for multi-thread synchronization (waiting for timer objects)

Function createwaitabletimer (lptimerattributes: psecurityattributes; {Security} bmanualreset: bool; {true: scheduling multiple threads; false: Scheduling only one thread} lptimername: pwidechar {name}): thandle; stdcall; {return handle} function

Comparedatetime, comparedate, comparetime, samedatetime, samedate, and sametime-comparison Time Functions

Comparedatetime, comparedate, and comparetime return-1, 0, and 1; The former = the latter: returns 0; The former> the latter: return 1; Former True and false are returned for samedatetime, samedate, and Sametime. Unit unit1; interfaceuses

Learn ttreeview [3]-add, addchild, addfirst, addchildfirst, and parent

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

Multi-thread programming (12)-multi-thread synchronization-semaphore (signal object)

Two multithread synchronization methods are available: Criticalsection (critical section) and mutex (mutex). The two Synchronization Methods are similar, but they have different scopes; The criticalsection is similar to a public restroom with only

Delphix (90) of Delphi and DirectX: tdib. drawmorphed ();

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

Let the form accept drag and drop, and get the information of the dragged file-reply to the question "wave question"

Problem Source: http://www.cnblogs.com/del/archive/2009/01/20/1353117.html#1435746 Principle Analysis: Two shellapi functions are required: dragacceptfiles and dragqueryfile; Use dragacceptfiles (window handle, true); to allow the

Learn ttreeview [15]-connect to the database (as a reply to "ding Yongqi" and "Long live Delphi)

In this example: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, grids, dbgrids, DB, dbclient, stdctrls, comctrls, extctrls; type tform1 = Class (tform) performance1:

Winapi: setrect and several methods for initializing a rectangle

In this example, the same rectangle is initialized in five ways to run: Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton;

Learn more about GDI + [102]: tgpimage (22)-Get detailed information of all decoders

Running result of this example: Clsid: {557CF400-1A04-11D3-9A73-0000F81EF32E}FormatID: {B96B3CAB-0728-11D3-9D7B-0000F81EF32E}CodecName: Built-in BMP CodecDllName: FormatDescription: BMPFilenameExtension: *.BMP;*.DIB;*.RLEMimeType: image/bmpFlags: 6

Made a Treeview for browsing the specified file format

Unit dirtreeview; interfaceuses sysutils, classes, controls, forms, comctrls; Type encoding = Class (ttreeview) Private frootpath: string; fext: string; ffilename: string; protected procedure collapse (node: ttreenode); override; Procedure expand

Twebbrowser and mshtml (4): Overview of properties and methods of location, history, screen, and Navigator objects

{Location object :} reload // reload the current document replace // Replace the current document assign with the new document // load the new document href // set or return the complete urlprotocol // set or return the current URL protocol host //

Total Pages: 64722 1 .... 27089 27090 27091 27092 27093 .... 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.