Jump to content

Child window doesn't refresh on parent resize


Self
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...