SDK Rollup not updating on open (+) after (-)

SDK Rollup not updating on open (+) after (-)

klvnk
Collaborator Collaborator
489 Views
4 Replies
Message 1 of 5

SDK Rollup not updating on open (+) after (-)

klvnk
Collaborator
Collaborator

I have a rollup with win32 List View in it which is not redraw if you close (-) and open (+). The weird thing is it also doesn't redraw other controls in the window either. Anyone else solved this problem or know how to intercept the rollout open close.

0 Likes
Accepted solutions (1)
490 Views
4 Replies
Replies (4)
Message 2 of 5

klvnk
Collaborator
Collaborator
Accepted solution

solved it, the window had Clip Children set to true 🙄 

0 Likes
Message 3 of 5

istan
Advisor
Advisor

A Win32 Listview? C++? Which Max Version?

 

0 Likes
Message 4 of 5

denisT.MaxDoctor
Advisor
Advisor

Did you set the WS_CLIPCHILDREN style yourself? Max SDK doesn't set this style by default. It sets WS_CLIPSIBLINGS, but if you remove this style it may cause some controls to flicker.

I do Rollout::UpdateLayout(TRUE) on rollup+ which also helps me control the "resizing" issue.

   

 

0 Likes
Message 5 of 5

klvnk
Collaborator
Collaborator

Found a hack, You can intercept the close/open from the dlg proc when it's rolling up or down it posts a

WM_SHOWWINDOW msg (wparam = 0 -> closed = 1 open) it also sends WM_WINDOWPOSCHANGED && WM_WINDOWPOSCHANGING messages

 

though I can't get the ui to draw with WS_CLIPCHILDREN set

 

no a big issue as there isn't any ficker with it, I didn't actually set it was copied over when I pasted in the resource 😎 honest indian!

 

0 Likes