[Bug 20040] New: After sending EM_SETREADONLY to change edit controls the screen does not get updated

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Sep 14 05:16:51 CDT 2009


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 at winehq.org
        ReportedBy: ray at 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...

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list