IE control display control method and device, computer device, and storage medium
Patent Information
- Application Number
- CN202211198235.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-09-29
AI Technical Summary
[0003]本发明实施例提供一种IE控件显示控制方法、装置、计算机设备及存储介质,以解决IE控件的页面显示效果较差问题
[0016] The aforementioned IE control display control method, device, computer equipment, and storage medium determine the resolution-aware attribute of the IE control based on the current system version. This allows for the determination of whether the installation environment supports high-definition display based on the resolution-aware attribute, and the determination of whether the software code itself supports high-definition display based on the resolution configuration data corresponding to the IE control. This achieves the goal of controlling the high-definition display page data of the IE control based on the resolution-aware attribute and the allocation rate configuration data, thereby improving the display effect of the IE control page.
Smart Images

Figure CN115454290B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an IE control display control method, device, computer equipment, and storage medium. Background Technology
[0002] IE controls refer to IE kernel controls created using the MSHTML library. These are user-developed controls provided to the IE browser. Generally, user-developed IE controls have a lower display resolution, even on high-resolution Windows operating systems, resulting in poor page display quality. Summary of the Invention
[0003] This invention provides an IE control display control method, device, computer equipment, and storage medium to solve the problem of poor page display effect of IE controls.
[0004] A method for controlling the display of an IE control, comprising:
[0005] Obtain the control startup instruction, wherein the control startup instruction includes the control identifier;
[0006] Obtain the current system version, and based on the current system version, determine the resolution-aware attribute corresponding to the control identifier;
[0007] Obtain the resolution configuration data corresponding to the control identifier;
[0008] Based on the resolution-aware attribute and resolution configuration data corresponding to the control identifier, control the IE control corresponding to the control identifier to display high-definition page data.
[0009] An IE control display control device, comprising:
[0010] A control startup instruction acquisition module is used to acquire control startup instructions, wherein the control startup instructions include a control identifier;
[0011] The resolution-aware attribute acquisition module is used to acquire the current system version and, based on the current system version, determine the resolution-aware attribute corresponding to the control identifier.
[0012] The resolution configuration data acquisition module is used to acquire the resolution configuration data corresponding to the control identifier;
[0013] The high-definition page data display module is used to control the IE control corresponding to the control identifier to display page data in high definition based on the resolution perception attribute and resolution configuration data corresponding to the control identifier.
[0014] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described IE control display control method.
[0015] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described IE control display control method.
[0016] The aforementioned IE control display control method, device, computer equipment, and storage medium determine the resolution-aware attribute of the IE control based on the current system version. This allows for the determination of whether the installation environment supports high-definition display based on the resolution-aware attribute, and the determination of whether the software code itself supports high-definition display based on the resolution configuration data corresponding to the IE control. This achieves the goal of controlling the high-definition display page data of the IE control based on the resolution-aware attribute and the allocation rate configuration data, thereby improving the display effect of the IE control page. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of an IE control display control method according to an embodiment of the present invention;
[0019] Figure 2 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0020] Figure 3 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0021] Figure 4 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0022] Figure 5 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0023] Figure 6 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0024] Figure 7 This is another flowchart of an IE control display control method in one embodiment of the present invention;
[0025] Figure 8 This is a schematic diagram of an IE control display control method according to an embodiment of the present invention;
[0026] Figure 9 This is a schematic diagram of a computer device according to an embodiment of the present invention. Detailed Implementation
[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0028] The IE control display control method provided in this embodiment of the invention can be applied to computer devices, specifically to computer devices with an IE browser installed. The IE control refers to a control loaded into the IE browser to perform a specific function. Using this IE control display control method, the IE control can display its page data in high definition. In this example, the computer device includes, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented using a standalone server or a server cluster consisting of multiple servers.
[0029] In one embodiment, such as Figure 1 As shown, an IE control display control method is provided, which is applied to... Figure 1 Taking a computer device as an example, the explanation includes the following steps:
[0030] S101: Obtain the control startup command, which includes the control identifier;
[0031] S102: Obtain the current system version, and based on the current system version, determine the resolution-aware attribute corresponding to the control identifier;
[0032] S103: Obtain the resolution configuration data corresponding to the control identifier;
[0033] S104: Based on the resolution-aware attribute and resolution configuration data corresponding to the control identifier, control the IE control corresponding to the control identifier to display high-definition page data.
[0034] The control launch command is used to control the launch of the IE control corresponding to the control identifier. The control identifier is an identifier used to uniquely identify a specific IE control.
[0035] As an example, in step S101, the computer device may receive a control launch command triggered by the user, or it may receive a control launch command triggered by a system preset program. Each control launch command carries a control identifier used to uniquely identify a certain IE control.
[0036] The current system version refers to the current version of the operating system installed on the computer device. Resolution-aware attribute, or DPI (Dots Per Inch), is a unit of measurement that refers to the number of pixels per inch of an image. Used for raster digital images, it refers to the number of sampled, displayable, or output dots per inch.
[0037] As an example, in step S102, after receiving the control activation command, the computer device can first use a pre-set system version query command or other existing technologies to obtain the current system version; then, based on the current system version, it determines the perceptual attribute determination rule corresponding to the current system version. For example, it can query a pre-defined version rule lookup table to determine the perceptual attribute determination rule corresponding to the current system version; next, based on the perceptual attribute determination rule, it determines the resolution perceptual attribute of the IE control corresponding to the control identifier. In this example, the resolution perceptual attribute can include high resolution or low resolution, so as to assess whether the installation environment of the IE control supports high-definition display based on the resolution perceptual attribute of the IE control corresponding to the control identifier.
[0038] The resolution configuration data refers to the configuration data related to the display resolution of the IE control, which is configured by the user during the development of the IE control. In other words, this resolution configuration data is the resolution-related data configured in the IE control's own software code.
[0039] As an example, in step S103, after receiving the control launch instruction, the computer device can first obtain the control properties of the IE control corresponding to the control identifier; if the control properties of the IE control corresponding to the control identifier are a self-developed IE control, then the resolution configuration data of the IE control corresponding to the control identifier can be read from the system file or other file corresponding to the control identifier, so as to evaluate whether the software code of the IE control itself supports high-definition display based on the resolution configuration data of the IE control corresponding to the control identifier.
[0040] As an example, in step S104, after obtaining the resolution-aware attribute and resolution configuration data corresponding to the control identifier, the computer device can assess whether the installation environment of the IE control corresponding to the control identifier supports high-definition display based on the resolution-aware attribute. Specifically, it determines whether the installation environment supports high-definition display by assessing whether the resolution-aware attribute meets the high-resolution standard. Furthermore, the computer device also needs to assess whether the software code of the IE control corresponding to the control identifier itself supports high-definition display based on the resolution configuration data. In this example, when the resolution-aware attribute assessment determines that the installation environment supports high-definition display, and the resolution configuration data determines that the software code itself supports high-definition display, the computer device can determine that it meets the pre-set high-definition display conditions. Therefore, it can control the IE control corresponding to the control identifier to display high-definition page data to improve the display effect of the IE control.
[0041] In the IE control display control method provided in this embodiment, the resolution-aware attribute of the IE control is determined according to the current system version. Based on this resolution-aware attribute, it is determined whether the installation environment supports high-definition display. Furthermore, based on the resolution configuration data corresponding to the IE control, it is determined whether the software code itself supports high-definition display. This achieves the goal of controlling the high-definition display page data of the IE control according to the resolution-aware attribute and the allocation rate configuration data, thereby improving the display effect of the IE control page.
[0042] In one embodiment, such as Figure 2 As shown, step S102, which is to determine the resolution-aware attribute corresponding to the control identifier based on the current system version, includes:
[0043] S201: Compare the current system version with the preset system version and obtain the version comparison result;
[0044] S202: Based on the version comparison results, determine the system resolution-aware attribute or the display resolution-aware attribute as the resolution-aware attribute corresponding to the control identifier.
[0045] The preset system version refers to the system version that is pre-set for evaluating the processing using different perceptual attribute functions.
[0046] As an example, in step S201, after determining the current system version, the computer device can compare the current system version with the preset system version, that is, compare the size of the two system versions to obtain the version comparison result.
[0047] As an example, in step S202, after obtaining the version comparison result, the computer device can use a perceptual attribute function matching the version comparison result to obtain either the system resolution perceptual attribute corresponding to the operating system or the display resolution perceptual attribute corresponding to the display, and then determine the obtained system resolution perceptual attribute or display resolution perceptual attribute as the resolution perceptual attribute corresponding to the control identifier. In this example, the computer device can use different perceptual attribute functions to determine the system resolution perceptual attribute or the display resolution perceptual attribute based on the version comparison result between the current system version and the preset system version, and then determine the determined system resolution perceptual attribute or display resolution perceptual attribute as the resolution perceptual attribute corresponding to the IE control corresponding to the control identifier.
[0048] In this embodiment, the current system version is compared with a preset system version. Based on the version comparison result, different perception attribute functions are used to determine the system resolution perception attribute or the display resolution perception attribute, which is then used as the resolution perception attribute corresponding to the IE control. This method helps to improve the applicability of IE control for high-definition display by determining different resolution perception attributes based on the current system version.
[0049] In one embodiment, such as Figure 3 As shown, step S102, which is to determine the resolution-aware attribute corresponding to the control identifier based on the current system version, includes:
[0050] S301: Compare the current system version with the first system version and the second system version, and obtain the version comparison result;
[0051] S302: If the version comparison result is that the current system version is greater than the first system version and the current system version is less than the second system version, then the system resolution awareness attribute is determined as the resolution awareness attribute corresponding to the control identifier.
[0052] S303: If the version comparison result is that the current system version is not less than the second system version, then the display resolution perception attribute is determined as the resolution perception attribute corresponding to the control identifier.
[0053] Wherein, step S301 is a specific implementation of step S201, and steps S302 and S303 are specific implementations of step S202.
[0054] Here, the first system version refers to a pre-set version used to evaluate processing using different perceptual attribute functions. The second system version refers to a pre-set version used to evaluate processing using different perceptual attribute functions. In this example, the first system version is less than the second system version. As an example, the first system version could be set to Windows Vista, and the second system version could be set to Windows 8.1.
[0055] As an example, in step 301, after determining the current system version, the computer device can compare the current system version with the first system version and compare the current system version with the second system version to obtain the version comparison result.
[0056] The system resolution awareness attribute (PROCESS_SYSTEM_DPI_AWARE) is used to sense the system resolution. After passing the system resolution awareness attribute to the SetProcessDpiAwareness function, the IE control can sense and obtain the operating system's system resolution so that it can control the display of the IE control according to the system resolution.
[0057] As an example, in step S302, the computer device compares the current system version with the first system version and the second system version. If the version comparison result is that the current system version is greater than the first system version and less than the second system version, for example, the current system version is less than Windows Vista and greater than Windows 8.1, it is determined that the evaluation condition for determining the system resolution-aware attribute as a resolution-aware attribute is met. At this time, the SetProcessDpiAwareness function, which is a perception attribute input function, needs to be called to determine the PROCESS_SYSTEM_DPI_AWARE system resolution-aware attribute corresponding to the operating system as the resolution-aware attribute corresponding to the IE control corresponding to the control identifier.
[0058] The display resolution awareness attribute (PROCESS_PER_MONITOR_DPI_AWARE) is used to sense the display resolution. After passing this display resolution awareness attribute to the SetProcessDpiAwareness function, the IE control can sense and obtain the display resolution so that it can control the display of the IE control at that display resolution.
[0059] As an example, in step S303, the computer device compares the current system version with the first system version and the second system version. If the version comparison result shows that the current system version is not less than the second system version, for example, if the current system version is not greater than Windows 8.1, it is determined that it meets the evaluation condition of determining the system resolution awareness attribute as the display awareness attribute. At this time, the SetProcessDpiAwareness awareness attribute input function needs to be called to determine the display resolution awareness attribute corresponding to the display, PROCESS_PER_MONITOR_DPI_AWARE, as the resolution awareness attribute corresponding to the IE control corresponding to the control identifier.
[0060] In this example, if the computer device's version comparison result shows that the current system version is not greater than the first system version, it can be determined that its installation environment cannot support high-definition display, and there is no need to perform the subsequent operation of obtaining resolution-aware attributes.
[0061] In this embodiment, the current system version is compared with the first system version and the second system version. Based on the version comparison result, either the system resolution perception attribute or the display resolution perception attribute is determined as the resolution perception attribute corresponding to the IE control. This achieves the goal of determining different resolution perception attributes based on the current system version, which helps to improve the applicability of IE control for high-definition display.
[0062] In one embodiment, such as Figure 4 As shown, step S104, which involves controlling the IE control corresponding to the control identifier to display high-definition page data based on the resolution-aware attribute and resolution configuration data corresponding to the control identifier, includes:
[0063] S401: Determine whether the resolution-aware attribute corresponding to the control identifier is a high-resolution-aware attribute, and determine whether the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute;
[0064] S402: If the resolution-aware attribute corresponding to the control identifier is a high-resolution-aware attribute, and the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute, then control the IE control corresponding to the control identifier to display the page data in high definition.
[0065] As an example, in step S401, after obtaining the resolution-aware attribute and resolution configuration data corresponding to the control identifier, the computer device can compare the resolution-aware attribute corresponding to the control identifier with a preset resolution. If the resolution-aware attribute is greater than the preset resolution, it is determined to be a high-resolution attribute; if the resolution-aware attribute is not greater than the preset resolution, it is determined to be a low-resolution attribute. This is to assess whether the hardware requirements for high-definition display are met based on the resolution-aware attribute, that is, to assess whether the operating system's system resolution-aware attribute or the monitor's display resolution-aware attribute meets the hardware requirements for high-definition display. Furthermore, the computer device also needs to determine whether the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute to assess whether its custom-developed resolution configuration data meets the software requirements for supporting high-definition display.
[0066] The DOCHOSTUIFLAG_DPI_AWARE property is a property that can be used in the GetHostInfo method of the IDocHostUIHandler COM component interface. It is not set by default in IE controls and needs to be determined by custom development.
[0067] As an example, in step S402, when the resolution perception attribute corresponding to the control identifier is a high-resolution perception attribute, i.e., Hi-DPI, the computer device can determine that the installation environment of the IE control corresponding to the control identifier supports high-definition display. When the resolution configuration data includes the DOCHOSTUIFLAG_DPI_AWARE attribute, it can be determined that the software code of the IE control itself supports high-definition display. Therefore, when the resolution perception attribute corresponding to the control identifier is a high-resolution perception attribute and the resolution configuration data corresponding to the control identifier includes the DOCHOSTUIFLAG_DPI_AWARE attribute, it can be determined that it meets the pre-set high-definition display conditions. Therefore, the high-definition display page data of the IE control corresponding to the control identifier can be controlled to improve the display effect of the IE control.
[0068] In this example, when the computer device has a resolution-aware attribute corresponding to the control identifier that is a high-resolution-aware attribute, and the resolution configuration data does not include the DOCHOSTUIFLAG_DPI_AWARE attribute, it can output an attribute addition reminder message to remind the user to update the input parameter of the GetHostInfo method implemented by the IE control, which can inherit CAxHostWindow, so that the DOCHOSTUIFLAG_DPI_AWARE attribute is added to the input parameter. Specifically, the DOCHOSTUIFLAG_DPI_AWARE attribute can be added by using STDMETHOD(GetHostInfo)(DOCHOSTUIINFOFAR*pInfo){pInfo->cbSize=sizeof(DOCHOSTUIINFO); pInfo->dwFlags=pInfo->dwFlags|DOCHOSTUIFLAG_DPI_AWARE; return S_OK;} to ensure that subsequent calls to the GetHostInfo method achieve high-definition display. In other words, when the software code of an IE control does not support high-definition display, the computer device can output a reminder message to prompt the user to override the GetHostInfo method through the IDocHostUIHandler interface. In the GetHostInfo method, add the DOCHOSTUIFLAG_DPI_AWARE attribute to the dwFlags attribute of the pInfo parameter. If the installation environment meets the requirements for high-definition display, the software code itself will also meet the requirements for high-definition display by updating the parameter, thereby controlling the corresponding IE control to display page data in high definition.
[0069] In this embodiment, only when the resolution perception attribute corresponding to the control identifier is a high-resolution perception attribute and the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute, it is determined that the installation environment and the software code itself can achieve high-definition display. Only then will the high-definition display page data of the IE control corresponding to the control identifier be controlled to ensure the feasibility of high-definition display of the IE control.
[0070] In one embodiment, such as Figure 5 As shown, step S104, which involves controlling the IE control corresponding to the control identifier to display high-definition page data based on the resolution-aware attribute and resolution configuration data corresponding to the control identifier, includes:
[0071] S501: Obtain the target registry information corresponding to the control identifier that meets the registry high-definition display evaluation conditions. The registry high-definition display evaluation conditions are the conditions used to limit the position offset of control elements of IE controls.
[0072] S502: Based on the resolution-aware attribute, resolution configuration data, and target registry information corresponding to the control identifier, control the IE control corresponding to the control identifier to display high-definition page data.
[0073] The target registry information refers to the registry information related to IE controls, specifically DWORD (Double Word), which is a registry key value. Each word is 2 bytes long, so a DWORD double word is 4 bytes, with each byte being 8 bits, for a total of 32 bits. Right-clicking in a blank area of the key value window and selecting the "New" menu item reveals that these key values are further categorized into five types: string value, binary value, DWORD value, multi-string value, and expandable string value.
[0074] The registry high-definition display evaluation criteria are pre-set conditions used to evaluate whether the registry meets the requirements for high-definition display. As an example, the registry high-definition display evaluation criteria are used to limit the position offset of control elements in Internet Explorer controls.
[0075] As an example, in step S501, the computer device can use CRegKey to obtain the original registry information corresponding to the control identifier. This original registry information is the registry information recorded before the current time. Then, the original registry information corresponding to the control identifier is compared with the registry high-definition display evaluation conditions. When the original registry information matches the registry high-definition display evaluation conditions, this original registry information can be determined as the target registry information, and the process proceeds to step S502. When the original registry information does not match the registry high-definition display evaluation conditions, the registry configuration interface can be displayed to remind the user to modify the registry high-definition display evaluation conditions to obtain the target registry information that meets the requirements for high-definition display.
[0076] For example, in Internet Explorer 8, the WebOC control cannot be displayed in high resolution using the high-resolution perceptual property (HI-DPI). This means that all web content is not rendered at the default 96-DPI. When WebOC is displayed in high resolution, if the target registry information is not set, the control elements will be offset, causing misalignment in the display and affecting the page data display effect of the IE control. Therefore, it is necessary to obtain the target registry information corresponding to the control identifier that meets the registry's high-resolution display evaluation conditions to avoid the position offset of the control elements during the display of the IE control, which would affect the page data display effect.
[0077] As an example, in step S502, the computer device determines that its installation environment supports high-definition display based on the resolution perception attribute corresponding to the control identifier, and evaluates that its software code itself supports high-definition display based on the resolution configuration information corresponding to the control identifier. It can control the IE control corresponding to the control identifier to display page data in high definition. In the process of controlling the high-definition display of the IE control, since the target registry information meets the registry high-definition display evaluation conditions, the conditions for the position offset of the control elements in the IE control can be restricted, so that the position of the control elements in the IE control does not shift, which can further ensure the display effect of the high-definition display page data of the IE control.
[0078] In this embodiment, target registry information including the target attribute value corresponding to the control name is first obtained. This is so that when it is confirmed that the IE control can be controlled to display high-definition page data based on the resolution-aware attribute and resolution configuration data, the position of the control element in the IE control will not be offset based on the target registry information containing the target attribute value corresponding to the control name, which can further ensure the display effect of the IE control to display high-definition page data.
[0079] In one embodiment, such as Figure 6 As shown, step S501, which involves obtaining the target registry information corresponding to the control identifier that meets the requirements for high-definition display, includes:
[0080] S601: Get the control name corresponding to the control identifier;
[0081] S602: Obtain the target registry path corresponding to the control name based on the control identifier;
[0082] S603: Get the target attribute value corresponding to the control name;
[0083] S603: Based on the target registry path corresponding to the control name and the target attribute value corresponding to the control name, obtain the target registry information corresponding to the control identifier.
[0084] As an example, in step S601, the computer device can read the control name corresponding to the obtained control identifier. For example, the computer device can use, but is not limited to, the GetModuleFileName method to read the system file corresponding to the control identifier and obtain the control name corresponding to the control identifier, which carries the .exe extension suffix, such as wkbrowser.exe.
[0085] The target registry path refers to the registry path of the IE control corresponding to the control identifier.
[0086] As an example, in step S602, the computer device can open the registry using the CRegKey registry operation method based on the control name corresponding to the control identifier, and then determine the target registry path corresponding to the control name using the CRegKey registry operation method. For example, the computer device can use the CointernetSetFeatureEnabled function or use the CointernetSetFeatureEnabled function at the following registry location, or create a target registry path called "feature_96DPI_Pixel", that is, the target registry path can be set to HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_96DPI_PIXEL.
[0087] As an example, in step S603, the computer device can display a registry configuration interface, which shows the control name and its corresponding original attribute value. The interface determines whether the original attribute value is the target attribute value; for example, the target attribute value can be set to 1. If the original attribute value is the target attribute value (i.e., 1), then the original attribute value is determined as the target attribute value. If the original attribute value is not the target attribute value (i.e., not 1), then the original attribute value is updated using the target attribute value. The original attribute value is the attribute value recorded in the original registry information before the current moment. The target attribute value is a pre-set attribute value used by the system to prevent the position of control elements from shifting. Understandably, when the original attribute value is the target attribute value, no update is needed; when the original attribute value is not the target attribute value, it will cause the IE control to shift its attribute during display, resulting in misalignment and affecting the page data display effect of the IE control. Therefore, it needs to be updated to the target attribute value.
[0088] As an example, in step S604, the computer device can obtain the target registry information corresponding to the control identifier based on the target registry path and the target attribute value corresponding to the control name, so as to determine the target registry information based on the target registry path and the target attribute value. For example, the computer device can use the CRegKey registry operation method to create target registry information with the control name wkbrowser.exe (including the .exe suffix) and the target attribute value of 1 under the target registry path FEATURE_96DPI_PIXEL, so that the IE control corresponding to the control identifier can be clearly displayed, avoiding page misalignment or displacement due to unclear HTML data addresses, which would result in unclear data.
[0089] In one embodiment, such as Figure 7 As shown, step S602, which involves determining the target registry path corresponding to the control name based on the control identifier, includes:
[0090] S701: Determine whether there is an existing registry path corresponding to the control identifier based on the control name corresponding to the control identifier;
[0091] S702: If an existing registry path exists, then the existing registry path will be determined as the target registry path corresponding to the control name;
[0092] S703: If no existing registry path exists, create the target registry path corresponding to the control name.
[0093] The existing registry path refers to the registry path created before the current system time. As an example, the existing registry path is HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_96DPI_PIXEL.
[0094] As an example, in step S701, the computer device can open the registry using CRegKey based on the control name corresponding to the control identifier, and determine whether there is an existing registry path corresponding to the control name in the registry, so as to determine whether to set the registry properties of the IE control when the process starts.
[0095] As an example, in step S702, if the computer device has an existing registry path HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_96DPI_PIXEL, it can be determined that the registry path configuration operation has been completed when the process starts, and the existing registry path can be directly determined as the target registry path.
[0096] As an example, in step S703, if the computer device does not have an existing registry path, it can use CRegKey to create the target registry path HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Main\FeatureControl\FEATURE_96DPI_PIXEL to complete the target registry path configuration operation.
[0097] In this embodiment, the system determines whether an existing registry path exists based on the control name corresponding to the control identifier. Based on the determination result, it decides whether to use the existing registry path or recreate it, thus determining the target registry path to complete the registry path configuration operation. By using a unified target registry path, the system ensures that the registry path of the IE control is clear, avoiding page misalignment and coordinate position shift of control elements caused by unclear registry paths, thereby ensuring the clarity of the page data displayed by the IE control.
[0098] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0099] In one embodiment, an IE control display control device is provided, which corresponds one-to-one with the IE control display control method described in the above embodiments. For example... Figure 8 As shown, the IE control display control device includes a control launch command acquisition module 801, a resolution-aware attribute acquisition module 802, a resolution configuration data acquisition module 803, and a page data high-definition display module 804. Detailed descriptions of each functional module are as follows:
[0100] The control startup instruction acquisition module 801 is used to acquire control startup instructions, which include control identifiers.
[0101] The resolution-aware attribute acquisition module 802 is used to acquire the current system version and, based on the current system version, determine the resolution-aware attribute corresponding to the control identifier.
[0102] The resolution configuration data acquisition module 803 is used to acquire the resolution configuration data corresponding to the control identifier;
[0103] The high-definition page data display module 804 is used to control the IE control corresponding to the control identifier to display page data in high definition based on the resolution perception attribute and resolution configuration data corresponding to the control identifier.
[0104] In one embodiment, the resolution-aware attribute acquisition module 802 includes:
[0105] The version comparison result acquisition unit is used to compare the current system version with the preset system version and obtain the version comparison result.
[0106] The resolution-aware attribute determination unit is used to determine the system resolution-aware attribute or the display resolution-aware attribute as the resolution-aware attribute corresponding to the control identifier based on the version comparison results.
[0107] In one embodiment, the version comparison result acquisition unit is used to compare the current system version with the first system version and the second system version to obtain the version comparison result;
[0108] The resolution-aware attribute determination unit is used to determine the system resolution-aware attribute as the resolution-aware attribute corresponding to the control identifier if the version comparison result is that the current system version is greater than the first system version and the current system version is less than the second system version; and to determine the display resolution-aware attribute as the resolution-aware attribute corresponding to the control identifier if the version comparison result is that the current system version is not less than the second system version.
[0109] In one embodiment, the high-definition display module 804 for page data includes:
[0110] The attribute data judgment unit is used to determine whether the resolution perception attribute corresponding to the control identifier is a high resolution perception attribute, and to determine whether the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute.
[0111] The first high-definition display unit is used to control the IE control corresponding to the control identifier to display page data in high definition if the resolution perception attribute corresponding to the control identifier is a high-resolution perception attribute and the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute.
[0112] In one embodiment, the high-definition display module 804 for page data includes:
[0113] The target registry information acquisition unit is used to acquire the target registry information corresponding to the control identifier that meets the registry high-definition display evaluation conditions. The registry high-definition display evaluation conditions are the conditions used to limit the position offset of control elements of IE controls.
[0114] The second high-definition display unit is used to control the high-definition display page data of the IE control corresponding to the control identifier based on the resolution perception attribute, resolution configuration data and target registry information corresponding to the control identifier.
[0115] In one embodiment, the target registry information acquisition unit includes:
[0116] The control name retrieval sub-unit is used to retrieve the control name corresponding to the control identifier;
[0117] The target registry path retrieval sub-unit is used to retrieve the target registry path corresponding to the control name based on the control identifier.
[0118] The target attribute value retrieval sub-unit is used to retrieve the target attribute value corresponding to the control name;
[0119] The target registry information acquisition subunit is used to obtain the target registry information corresponding to the control identifier based on the target registry path corresponding to the control name and the target attribute value corresponding to the control name.
[0120] In one embodiment, the target registry path acquisition subunit is used to determine whether there is an existing registry path corresponding to the control identifier based on the control name corresponding to the control identifier; if there is an existing registry path, the existing registry path is determined as the target registry path corresponding to the control name; if there is no existing registry path, the target registry path corresponding to the control name is created.
[0121] For specific limitations regarding the IE control display control device, please refer to the limitations on the IE control display control method above, which will not be repeated here. Each module in the aforementioned IE control display control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0122] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data used or generated during the execution of an IE control display control method. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements an IE control display control method.
[0123] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the IE control display control method described in the above embodiment, for example... Figure 1 As shown in S101-S104, or Figures 2 to 7 As shown, to avoid repetition, it will not be described again here. Alternatively, when the processor executes the computer program, it implements the functions of each module / unit in this embodiment of the IE control display control device, for example... Figure 8The functions of the control start command acquisition module 801, resolution perception attribute acquisition module 802, resolution configuration data acquisition module 803, and page data high-definition display module 804 shown are not described again here to avoid repetition.
[0124] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the IE control display control method described in the above embodiment, for example... Figure 1 As shown in S101-S104, or Figures 2 to 7 As shown, to avoid repetition, it will not be described again here. Alternatively, when the computer program is executed by the processor, it implements the functions of each module / unit in this embodiment of the IE control display control device, for example... Figure 8 The functions of the control start command acquisition module 801, resolution perception attribute acquisition module 802, resolution configuration data acquisition module 803, and page data high-definition display module 804 shown are not described again here to avoid repetition.
[0125] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0126] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0127] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for controlling the display of an IE control, characterized in that, include: Obtain control startup instructions, wherein the control startup instructions include control identifiers, and the control startup instructions are instructions used to control the startup of the IE control corresponding to the control identifiers, and the control identifiers are identifiers used to uniquely identify a certain IE control; Obtain the current system version, and based on the current system version, determine the resolution-aware attribute corresponding to the control identifier; Obtain the resolution configuration data corresponding to the control identifier; Based on the resolution-aware attribute and resolution configuration data corresponding to the control identifier, control the IE control corresponding to the control identifier to display high-definition page data, including: Determine whether the resolution-aware attribute corresponding to the control identifier is a high-resolution-aware attribute, and determine whether the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute; If the resolution-aware attribute corresponding to the control identifier is a high-resolution-aware attribute, and the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute, then control the IE control corresponding to the control identifier to display high-definition page data.
2. The IE control display control method as described in claim 1, characterized in that, The step of determining the resolution-aware attribute corresponding to the control identifier based on the current system version includes: The current system version is compared with the preset system version to obtain the version comparison result; Based on the version comparison results, the system resolution-aware attribute or the display resolution-aware attribute is determined as the resolution-aware attribute corresponding to the control identifier.
3. The IE control display control method as described in claim 2, characterized in that, The step of comparing the current system version with a preset system version to obtain a version comparison result includes: The current system version is compared with the first system version and the second system version to obtain the version comparison result; The step of determining the system resolution-aware attribute or the display resolution-aware attribute as the resolution-aware attribute corresponding to the control identifier based on the version comparison result includes: If the version comparison result is that the current system version is greater than the first system version and the current system version is less than the second system version, then the system resolution awareness attribute is determined as the resolution awareness attribute corresponding to the control identifier; If the version comparison result indicates that the current system version is not less than the second system version, then the display resolution perception attribute is determined as the resolution perception attribute corresponding to the control identifier.
4. The IE control display control method as described in claim 1, characterized in that, The step of controlling the IE control corresponding to the control identifier to display high-definition page data according to the resolution-aware attribute and resolution configuration data corresponding to the control identifier includes: Obtain the target registry information corresponding to the control identifier that meets the registry high-definition display evaluation conditions, wherein the registry high-definition display evaluation conditions are conditions used to limit the position offset of control elements of IE controls; Based on the resolution-aware attribute, resolution configuration data, and target registry information corresponding to the control identifier, control the IE control corresponding to the control identifier to display high-definition page data.
5. The IE control display control method as described in claim 4, characterized in that, The step of obtaining the target registry information corresponding to the control identifier that satisfies high-definition display includes: Obtain the control name corresponding to the control identifier; Based on the control name corresponding to the control identifier, obtain the target registry path corresponding to the control name; Get the target attribute value corresponding to the control name; Based on the target registry path corresponding to the control name and the target attribute value corresponding to the control name, obtain the target registry information corresponding to the control identifier.
6. The IE control display control method as described in claim 5, characterized in that, The step of determining the target registry path corresponding to the control name based on the control identifier includes: Based on the control name corresponding to the control identifier, determine whether there is an existing registry path corresponding to the control identifier; If an existing registry path exists, then that existing registry path will be determined as the target registry path corresponding to the control name; If no existing registry path exists, the target registry path corresponding to the control name will be created.
7. An IE control display control device, characterized in that, include: The control startup instruction acquisition module is used to acquire control startup instructions. The control startup instructions include control identifiers. The control startup instructions are instructions used to control the IE control corresponding to the control identifier to start. The control identifier is an identifier used to uniquely identify a certain IE control. The resolution-aware attribute acquisition module is used to acquire the current system version and, based on the current system version, determine the resolution-aware attribute corresponding to the control identifier. The resolution configuration data acquisition module is used to acquire the resolution configuration data corresponding to the control identifier; The page data high-definition display module is used to determine whether the resolution perception attribute corresponding to the control identifier is a high-resolution perception attribute, and to determine whether the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute. If the resolution-aware attribute corresponding to the control identifier is a high-resolution-aware attribute, and the resolution configuration data corresponding to the control identifier contains the DOCHOSTUIFLAG_DPI_AWARE attribute, then control the IE control corresponding to the control identifier to display high-definition page data.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the IE control display control method as described in any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the IE control display control method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Zoom processing method and device
CN108734656A
User interface component registry
US20180292958A1