mercredi 4 décembre 2019

MFC : Problem with Background color on a CFormview

I posted a question about a problem displaying some buttons on a CFormView :
MFC : Focus rectangle of check box or radio button blackened in a Cformview

I was not able to provide a source code. To overcome this constraint, I found an example wich compiles correctly and on which I have the same problem:

1. Project URL :
https://www.codeproject.com/Articles/11262/Enumerate-Controls-In-a-Dialog-Box-or-FormView

2. My Modification :
2.1 Code :

#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")  

2.2 Dialogs
I increase the CviewForm Size and added two Buttons at the bottom in order to have a "vscroll" bare enter image description here

I have the same problem! Background blacked.
enter image description here

Remarques :
- I don't have this problem in Release
- I don't have this problem without my code modification (#pragma comment ...)

someone has an idea?

Thanks.




Aucun commentaire:

Enregistrer un commentaire