When starting an app of mine, I sometimes get bleed through of the underlying desktop - where a rectangle of the desktop appears in the RichEdit. Scrolling the RichEdit will cause the bleed through to go away (correctly redraw the RichEdit control).
It does not happen every time - only occasionally.
The code below is pretty much what I use in the app, but the code below will not duplicate the bleed-through. It's hard to test fixes because the problem doesn't happen repeatedly.
It does not happen every time - only occasionally.
The code below is pretty much what I use in the app, but the code below will not duplicate the bleed-through. It's hard to test fixes because the problem doesn't happen repeatedly.
Code:
#Include "win32api.inc" %MultiLineREStyle_Wrap = %WS_Child Or %WS_ClipSiblings Or %WS_Visible Or %ES_MultiLine Or %WS_VScroll Or %ES_AutoVScroll Or %ES_WantReturn Or %ES_NoHideSel Or %WS_TabStop Or %ES_SaveSel %IDC_RichEdit = 500 Global hDlg, hRichEdit As Dword Function PBMain() Dialog Default Font "Arial Bold", 32, 1 Dialog New Pixels, 0, "Bleed Test",0,0,1920,1080, %WS_Popup Or %WS_ClipSiblings Or %WS_ClipChildren To hDlg LoadLibrary("msftedit.dll") Control Add "RichEdit50W", hDlg, %IDC_RichEdit, "Bleed Test",10,10,1900,1060, %MultiLineREStyle_Wrap, %WS_Ex_ClientEdge Dialog Show Modal hDlg Call DlgProc End Function CallBack Function DlgProc() As Long Select Case Cb.Msg Case %WM_ContextMenu : Dialog End hDlg Case %WM_Command : If Cb.Ctl = %IdCancel Then Dialog End hDlg End Select End Function
Comment