Sign in to follow this  
Followers 0
Iczer

_WinAPI_InvalidateRgn() VS _WinAPI_RedrawWindow()

3 posts in this topic

#1 ·  Posted

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted

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.

1 person likes this

Share this post


Link to post
Share on other sites

#3 ·  Posted

Sorry for delay Thanks!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0