I am using Windows built-in Remote Desktop (Windows 7 in both sides) with current trunk (r12073, wx3.1.3). The steps to get the black rectangle are:
Switching editor tabs does not restore tab contents, when selecting again the affected tab you see the image of the previously selected tab.
Minimizing and then maximizing C::B changes the black rectangle to whatever was in screen before, with the added effect of toolbars and part of the status bar (the C/C++ button) becoming transparent also (see attached image).
The only way to restore tab behaviour is restarting C::B
If I disable Direct2D rendering everything work as intended, including toolbars.
The out-of-the-box STC sample works OK, I don't know if it uses D2D.
I'm using the C::B rev 11957 nightly build 64bit version on a remote desktop Win7, and I just tested and I don't have your mentioned issue. (I believe that he remote C::B is already D2D enabled)
The out-of-the-box stc sample probably doesn't use d2d. You'd have to add a technology call in it to test it properly.
The stc sample modified to use D2D (SetTechnology(1)) also fails, see attached image.
As an added bonus, after the failure the program does not close (Quit menu and close button do nothing).
This is good, now go report this to wx people and paste here trac id.
18750