Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Do the UI controls use DirectX

Do the user interface controls, particularly the CNiGraph, use DirectX?
If so whats the recommended version to use, also do controls such as the
graphs benefit from HW acceleration in the graphics cards?
0 Kudos
Message 1 of 3
(3,874 Views)
No, the UI controls do not use DirectX. The controls all use standard Windows GDI for drawing. Most graphics cards have direct hardware support for GDI operations. In addition to GDI, the 3D graph uses OpenGL; it will perform better if the graphics card has direct support for OpenGL. To realize this performance benefit, you have to set the CNiGraph3D::Use3DHardwareAcceleration to true (you can do this from the property pages as well).
Message 2 of 3
(3,868 Views)
In addition to what David said, CNiGraph also uses Mesa when you're using the 3D frame. In this case, just the frame is drawn with Mesa, and the rest is drawn with GDI as David mentioned. The same goes for CNiButton and CNiSlide - the classic styles use GDI and the 3D styles use Mesa.

- Elton
0 Kudos
Message 3 of 3
(3,859 Views)