MFC Rendering button problem RRS feed

  • Pergunta

  • I am having this problem. When de dialog is loades, the buttons are as in the top figure. After some times passing the mouse over the buttons, or moving the dialog, a gray board, sometimes incomplete as it is on the Browse button appears. It is not always, but eventually the board will appear and won't fade until I move the dialog out of the screen and than back to it.

    The dialog is made by a static Bitmap with transparency false, and the buttons are transparent true. Otherwasi, the buttons would disappear on mouse over.

    How do I make the buttons don't change from the top picture to the bottom picture on redraw caused by mouse over?

    segunda-feira, 16 de abril de 2012 18:12


  • Ok... My problem seems to be with the transparent parameter.
    I used a class called CBDialog from U Can Code by Nishant Sivakumar.
    It sets a given image as background so I could delete the static bitmap and set all the controls' transparency to false.

    The bug is no more!

    • Marcado como Resposta Beto Raposa terça-feira, 17 de abril de 2012 16:27
    terça-feira, 17 de abril de 2012 16:26