Method, device and client for delivering callback function to ui thread
A callback function and process function technology, applied in the Windows field, can solve problems such as poor update effect and invalid UI interface update, so as to improve user experience and avoid interface freeze effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0033] Please refer to figure 2 , is a functional block diagram of an apparatus 500 for delivering a callback function to a UI thread according to the first embodiment of the present invention. The device 500 for delivering the callback function to the UI thread can be applied to figure 1 The client 100 is shown. The apparatus 500 for delivering a callback function to a UI thread includes a window class registration module 510 , a window creation module 520 , an encapsulation module 530 , an identification module 540 , a message sending module 550 and a calling module 560 .
[0034] The window class registration module 510 is used for registering a window class, wherein the window class is associated with the window procedure function.
[0035] In this embodiment, the following procedure can be used to define a window procedure function, that is, LRESULT CALLBACKWndProcCallback(HWND window_handle,
[0036] UINT message,
[0037] WPARAM wparam,
[0038] LPARAM lparam);
...
no. 2 example
[0051] Please refer to image 3 , is a schematic flowchart of a method for delivering a callback function to a UI thread applied to the client 100 provided by the second embodiment of the present invention. It should be noted that the method for delivering the callback function to the UI thread described in the embodiment of the present invention does not image 3 And the specific sequence described below is limited, and its basic principles and technical effects are the same as those of the first embodiment. For brief description, the parts not mentioned in this embodiment can refer to the corresponding content in the first embodiment. It should be understood that, in other embodiments, the order of some steps in the method for delivering a callback function to the UI thread according to the present invention can be exchanged according to actual needs, or some steps can also be omitted or deleted. The following will be image 3 The specific process shown will be described i...
no. 3 example
[0067] Please refer to Figure 4 , is a schematic flowchart of a method for delivering a callback function to a UI thread applied to the client 100 provided by the third embodiment of the present invention. Compared with the second embodiment, the difference is that the method for delivering the callback function to the UI thread provided by the third embodiment of the present invention further includes:
[0068] Step S107, when the message received by the operating system does not have the message identifier, call a default message processing interface to process the message.
[0069] It can be understood that step S107 is executed after step S105. That is to say, in this embodiment, after the operating system receives the message, it needs to judge the message, if the message has the message identifier kMsgHaveWork, then execute step S106; if the message does not have the message identifier kMsgHaveWork , then execute step S107.
[0070] It can be understood that the step...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com