Note that there are some explanatory texts on larger screens.

plurals
  1. POWeird display errors in Windows GDI+ application
    text
    copied!<p>I am facing a strange problem while using GDI+ to draw the user interface of an application. Sometimes there are display errors showing artifacts of other applications. Sometimes the borders of my text controls are drawn completely in black. </p> <p>In some cases the problem is also more than a simple display error. When that happens I have a menu or a context menu from another application embedded into my application. This menu is not only visible, but you can also highlight menu entries by hovering above them with your mouse and expand submenus. However there is no functionallity behind them when you click on the entries. It seems to be that these menus are always part of the Windows Explorer.</p> <p>I have no clue where I should start my search for the cause of these problems. Perhaps someone here at SO can point me to a possible source of the problem or even a solution?</p> <p><strong>Clarification:</strong> The same code shows this error on multiple PCs with different hardware, different graphic card drivers and different operating systems (XP, Win7, Server 2008). I would love to post some code, but it is very complex and wide-spread throughout the application. And since I have no clue what could be the root cause of the problems, I cannot isolate the right part the code.</p> <p><strong>Here are some screenshots:</strong></p> <p>Black borders around my text controls and my panel control: </p> <p><img src="https://i.stack.imgur.com/SObze.png" alt=""></p> <p>Content of another application is drawn inside my applications window. You can see a context menu from the Windows explorer on the left and parts of an excel sheet on the right. The grid-table in the lower part of the form is normally directly under the window titlebar: Display error in form showing context menu of explorer:</p> <p><img src="https://i.stack.imgur.com/Eu52s.gif" alt=""></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload