InfoLabel->Text = "Expand the element class nodes " + InfoLabel->Size = System::Drawing::Size(300, 60) If (!Application::RenderWithVisualStyles) Make sure the visual styles are enabled before Void ElementViewer_Load(Object^ sender, EventArgs^ e) This->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D This->Text = "VisualStyleElement Viewer" Public ref class ElementViewer : public UserControlĬurrentTrueSize = System::Drawing::Size() ĮlementDescription = gcnew StringBuilder() Using namespace System::Windows::Forms::VisualStyles Using namespace System::Collections::Generic This sample will draw the selected element only if the element is defined by the current visual style. To view an element, use the ListView control on the left side of the window to navigate to the node that represents the state of the element you want to draw, and then click the node. The following code example is a complete application that provides a UI for browsing and drawing all of the VisualStyleElement objects exposed by the namespace.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |