To download NI software, including the products shown below, visit ni.com/downloads.
Overview
demonstrates how to calculate the full size of a panel window, which includes the panel size, the title, and the border frame sizes.
Description
This example demonstrates how you determine the full size of a panel in LabWindows/CVI. The panel attributes Height and Width, that you can get or set with the functions GetPanelAttribute or SetPanelAttribute respectively, refer to the panel itself without taking into account the title or the borders.
Some window attributes (e.g. title bar size, border frame size) belong to every window on your computer and not only to your particular CVI panel. These attributes, that influence the final window size, depend on your Operating System settings. Therefore, in order to get the correct size of the entire window that will be displayed, you can use the Windows SDK function, GetSystemMetrics.
Requirements
Steps to Implement or Execute Code
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.