Home > Back-end >  Please create the main form and display for the first time in the VCL where to send the WM_Paint mes
Please create the main form and display for the first time in the VCL where to send the WM_Paint mes

Time:10-14

After Windows registry and create the form are the following two functions:
ShowWindow (WndHandle SW_SHOWNORMAL);//show the form
UpdateWindow (WndHandle);//send the wm_paint

But I can't find the UpdateWindow in VCL find ShowWindow, only, but also received the wm_paint, I do not know from what, please advise

CodePudding user response:

ShowWindow if it is visible from invisible to automatically trigger a WM_PAINT.

CodePudding user response:

The VCL is on the packaging, it is as you say, write in win32 API window
You create a new Application, open the Project1. DPR this unit
The bottom three sentences, Ctrl + left key point in the source

CodePudding user response:

reference 1st floor wr960204 response:
ShowWindow if it is visible from invisible to automatically trigger a WM_PAINT.
seemingly ShowWindow will not trigger the WM_PAINT

CodePudding user response:

refer to the second floor xsl510079027 response:
VCL is on the packaging, it is as you say, write in win32 API window
You create a new Application, open the Project1. DPR this unit
The bottom three sentences, Ctrl + left key point in the source
I am tracking the VCL source found no calls UpdateWindow after ShowWindow

CodePudding user response:

Wr960204
Wu poor level:
Junction post rate: 100% # 1 score: 0 reply in: the 2013-05-30 11:29:37
ShowWindow if it is visible from invisible to automatically trigger a WM_PAINT.
The wr960204 has already said yes!

More detailed look at the following link!
http://bbs.csdn.net/topics/340267244
  • Related