http://bugs.winehq.org/show_bug.cgi?id=20040
Summary: After sending EM_SETREADONLY to change edit controls the screen does not get updated Product: Wine Version: 1.1.29 Platform: PC URL: http://rh-software.com/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: ray@pobox.co.uk
Created an attachment (id=23588) --> (http://bugs.winehq.org/attachment.cgi?id=23588) Window image showing "White" (RW) edit controls what should be "Grey" (RO)
While running SIV (http://rh-software.com/) with an updating [Volumes] page the screen does not get repainted when I send an EM_SETREADONLY to change R/W to R/O. I discovered I can work-a-round this by doing an InvalidateRect() on the child window as follows: SendMessage( chl, EM_SETREADONLY, FALSE, 0 ); if( mode & MODE_WINE ) InvalidateRect( chl, NULL, TRUE ); This is the case for both Set and Clear of EM_SETREADONLY. Note that SIV is just changing the EM_SETREADONLY property, it is not changing the text. It would probably be less effort for me to actually change SIV to add the work-a-round code than report the bug in Wine!, but...