Hi Paul,
sometimes i do get the situation, that some Controls will not repainted after my application get back the focus.
For example in a tabcontrol i have some RRButtons, edit- and listview- controls. If i press one Button
and display a massagebox, which hide a part or the whole Button. If i press ok on the msgbox i miss
the hooded part of the msgbox. If i move with the mouse over the Button i get the rest.
The form get WM_PAINT, but no reaction,
I try %RBM_REFRESH in the function WM_PAINT, but nothing.
Sometimes i get this also with other Controls like edit or listview.
Do you have any idea about this?
It's not a major problem, but it looks not so nice.
Thanks,
Fürstauer Rudolf
(Sorry for my english)
I have also noticed this with RRButton's from time to time (especially when they are on TabControls).
Using RedrawWindow after the popup modal window closes does seem to correct the repaint problem.
For example:
Function FRMGENERAL_RRBUTTON1_BN_CLICKED ( _
ControlIndex As Long, _ ' index in Control Array
hWndForm As Dword, _ ' handle of Form
hWndControl As Dword, _ ' handle of Control
idButtonControl As Long _ ' identifier of button
) As Long
MsgBox "This is a popup message"
RedrawWindow hWndControl, ByVal %Null, ByVal %Null, %TRUE
End Function