Jump to content
Sign in to follow this  
Self

Child window doesn't refresh on parent resize

Recommended Posts

Self

I've embedded explorer.exe into my main GUI.

When GUI is resized, I do either WinMove or _WinAPI_SetWindowPos of "explorer" window.

It works nearly Ok but loses parts of scrollbars during resize of the parent window...

Hiding and showing explorer window helps but produses a pause and strange blinking :D

Thanks in advance

post-49645-12519206395851_thumb.jpg

Edited by Self

Share this post


Link to post
Share on other sites
Self

The problem was solved by adding 2 lines around WinMove():

_WinAPI_SetWindowLong( $hExplorer, $GWL_EXSTYLE, BitOR( $WS_EX_COMPOSITED,$ExplorerExStyle ) )

WinMove( $hExplorer, "", ... )

_WinAPI_SetWindowLong( $hExplorer, $GWL_EXSTYLE, BitAND( BitNOT($WS_EX_COMPOSITED), $ExplorerExStyle ) )

Hope it may help somebody...

Edited by Self

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  

×