Don't understand , Think about it ~
procedure TWinControl.WMSize(var Message: TWMSize);
begin
UpdateBounds; // Class function
inherited;
Realign; // Class function
if not (csLoading in ComponentState) then Resize; // Class function , Simple call programmer event
end; procedure TWinControl.WMMove(var Message: TWMMove);
begin
inherited;
UpdateBounds;
end;
WM_SIZE and WM_MOVE Why is the body of a function different ? More articles about
- windows Detailed explanation of message mechanism ( Reprint )
news , Is refers to Windows A notice sent , Tell the app something happened . for example , Click the mouse . Change the window size . Pressing a key on the keyboard will make Windows Send a message to the application . The message itself is passed to the application as a record ...
- TWinControl.SetBounds And TWinControl.UpdateBounds appreciation ( Define and call )
Let's look at their function contents first : procedure TControl.SetBounds(ALeft, ATop, AWidth, AHeight: Integer); begin // Virtual functions ,TWinCon ...
- In a word, change TWinControl The control of left The past and present of coordinates ( The entry function is SetBounds, And then call SetWindowPos Work , Concurrent message updates Delphi Of left Property value )
Delphi Important attributes of , Mainly Enable, Visible, Color, left wait . Here's the analysis left, because TWinControl There are some reasons for covering functions in , Although the starting point is TControl.SetLe ...
- Finally understood. :WM_PAINT And WM_ERASEBKGND( Three situations : The user action ,UpdateWindow,InvalidateRect The effect is not the same ), And use Delphi Code validation good
I don't know much about the relationship between the two news all the time , Learn deeply again windows The opportunity to study programming . 1) When a window changes from invalid to valid , For example, when a partially covered window is restored, the window will be redrawn : The program will first call... By sending other messages DefWindow ...
- mysql Custom function
original text :http://www.cnblogs.com/zhangminghui/p/4113160.html introduction MySQL It provides built-in functions , The existence of these functions brings great convenience to our daily development and data operation ...
- Javascript Learning record —— Native JS Implementation of carousel effects
Yesterday I learned JS Special effects part , Then the teacher talked about the implementation of the carousel effect , Pictured above . But I just talked about switching pictures by clicking the arrow , There is no explanation for clicking on the image itself and the linkage between the two . With a perfect heart , It took a noon today to finally put the whole ...
- C Language header file organization and inclusion principles
from :http://www.cnblogs.com/clover-toeic/p/3728026.html explain This paper assumes that the reader has the basic knowledge of C Compilation knowledge . Unless otherwise specified , In this paper, “ Source file ” finger *.c file ,“ Headline ...
- Mysql Query blocking
On duty for the first time , Call the police and tell me , Database replication is delayed for more than an hour , It was midnight at that time , But I'm still awake , Turn it on .vpn. Sign in .show processlist, It turns out that this is the case : The red line represents each current thread ...
- Brief introduction Javascript Anonymous functions and object-oriented programming
Steal a little leisure from the rush of business , A brief introduction Javascript Anonymous function and closure function and object-oriented programming . First, a brief introduction Javascript The secret function in . stay Javascript There are the following functions in 3 How to define : 1. The most common definition is ...
Random recommendation
- Front end construction method Gulp series ( Four ):gulp actual combat
Front end construction method Gulp series ( One ): Why front end build is needed Front end construction method Gulp series ( Two ): Why choose gulp Front end construction method Gulp series ( 3、 ... and ):gulp Of 4 individual API Let you be gulp Experts front ...
- Linux It is recommended to turn on and off the list of system default services
The service name Function introduction Suggest acpid Power management interface . If it's a laptop user, it's recommended to turn it on , It can monitor the power events related to the kernel layer . Turn on anacron The timing task program of the system .cron A subsystem of , If the scheduled task missed the execution time ...
- quartz Report errors :java.lang.classNotFoundException
Recently, I'm working on a project of transforming the dispatching platform ,quartz In the test environment, it is a stand-alone environment , In production, two servers are clustered . The test environment is ok Of , Report an error after production goes online , One class java.lang.classNotFoundException ...
- Python What should be paid attention to when reading and writing documents 2015-03-31 23:19 69 Human reading Comment on (0) Collection
<span style="font-family: 'Microsoft YaHei'; background-color: rgb(255, 255, 255);"> ...
- USB Matching resistance
done USB Most people may have a tangle , That's it D+ and D- How much resistance should be connected in the end , String at source or terminal . I want to say : None of the statements on the Internet are completely correct , First USB There's a low speed . Full speed and high speed , It's voltage driven in low and full speed mode , The driving voltage is ...
- Android Develop reading document resources
Android Studio: Tools :http://developer.android.com/intl/zh-cn/tools/studio/index.html Training course :http://develop ...
- Ant Trip( It is different from the one stroke problem of minimum path coverage in binary matching )
Topic link : http://acm.hdu.edu.cn/showproblem.php?pid=3018 subject : Problem Description Ant Country consist of ...
- 【Android】 sound recording -amr audio recording
http://www.cnblogs.com/fengzhblog/archive/2013/08/01/3231500.html http://blog.csdn.net/fan7983377/ar ...
- CodeForces - 457C:Elections( Three points )
You are running for a governor in a small city in Russia. You ran some polls and did some research, ...
- Bulk copy windows All file names under the folder
First step , Open folder The second step , Create a new txt file , And then “.txt” Change the suffix to “.bat” txt The contents of the document “DIR *.* /B >LIST.TXT” The third step , double-click “.bat”, direct ...