Click here to Skip to main content
16,019,285 members

Comments by Member 13495762 (Top 15 by date)

Member 13495762 18-Jan-18 5:47am View    
Deleted
I create my own class where I derrived CBCGPStatic and write method code BOOL StaticStartpage::OnEraseBkgnd(CDC * pDC) { ASSERT_VALID(pDC); CRect rectClient; GetClientRect(rectClient); //pDC->FillRect(rectClient, clrTabSelected); CBrush brush(clrTabSelected); CBrush *pbrush = pDC->SelectObject(&brush); if (m_bHighlighted) { //pDC->FillSolidRect(rectClient, clrTabSelected); pDC->FillRect(rectClient, &brush); } return TRUE; } code , but it didn't help..
Member 13495762 14-Dec-17 8:09am View    
yes, I have it in DDX_Control. I set in this dialog few static text next to each other
Member 13495762 13-Dec-17 6:18am View    
I deleted last one.
Member 13495762 8-Dec-17 5:46am View    
In this case it is not about coding. I have dialog, startpage in visual studio. This dialog has let's say grey background.

In this dialog I added picture control. In my resorce I have bitmap which I can add using properties of my picture control. The bitmap has also grey background. I can see in visual studio that bitmap has also grey bacground.

After I build and run applicaton the bitmap has white color background...instead of greay which it has oryginally
Member 13495762 7-Dec-17 8:33am View    
It is quite difficult to use it for me. Is it possible somehow to use onPaint() method to draw this png on Picture Control?