Iczer Posted April 2, 2017 Share Posted April 2, 2017 Somewhat strange question maybe... But _WinAPI_InvalidateRgn($hWndCtrl) VS _WinAPI_RedrawWindow($hWndCtrl) - wich function is better to use in wich case and why? Assume I have some GUI in on-event mode wich use custom painting on ListView(s) and TreeView(s) and happen to run function wich change variables to choose icons, colours of items in those controls, boldness of text etc. Link to comment Share on other sites More sharing options...
LarsJ Posted April 3, 2017 Share Posted April 3, 2017 For a ListView you should not use any of these functions but _GUICtrlListView_RedrawItems. For a TreeView it doesn't matter which function to use. Personally, I prefer _WinAPI_RedrawWindow( $hTV, 0, 0, $RDW_INVALIDATE ) because it clearly tells what's going on: The TreeView window is invalidated and then redrawn. Iczer 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Iczer Posted April 5, 2017 Author Share Posted April 5, 2017 Sorry for delay Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now