![]()  | 
 
CXTPPropertyGridToolBar::OnPaint | 
 
    Post Reply  
   | 
  
| Author | |
   
   adrien  
   
   Senior Member  
   Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: CXTPPropertyGridToolBar::OnPaintPosted: 23 July 2007 at 11:45pm  | 
 
| 
   
    void CXTPPropertyGridToolBar::OnPaint() 
{ CPaintDC dc(this);  CXTPClientRect rc(this); 
CXTPBufferDC memDC(dc, rc); memDC.FillSolidRect(rc, GetXtremeColor(COLOR_3DFACE));  CToolBar::DefWindowProc(WM_PAINT, (WPARAM)memDC.m_hDC, 0); 
} shouldn't do the FillSolidRect.  In fact will need a transparent mode just like the property grid itself. 
Also, it would be really handy to have such a toolbar on the list control,  
and... 
it would be even better if we could use our own TOOLBAR resource, instead of being stuck with the hard-coded one that just does sorting. 
 | 
 |
![]()  | 
 |
   
   adrien  
   
   Senior Member  
   Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 23 July 2007 at 11:56pm | 
 
| 
   
    
   PS.  It has the same problem also in
 
   
  void CXTPSkinObjectToolBar::OnPaint() 
{ CXTPSkinObjectPaintDC dc(this); // device context for painting  CRect rcClient; 
GetClientRect(&rcClient);  CXTPBufferDC dcMem(dc, rcClient); 
dcMem.FillSolidRect(rcClient, GetColor(COLOR_3DFACE));  HFONT hFont = (HFONT)SendMessage(WM_GETFONT); 
HFONT hOldFont = (HFONT)::SelectObject(dcMem, hFont);  DrawToolbarH(&dcMem); 
 ::SelectObject(dcMem, hOldFont); 
   }  | 
 |
![]()  | 
 |
   
   adrien  
   
   Senior Member  
   Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 July 2007 at 12:22am | 
 
| 
   
    
   P.P.S, here's the image showing why it's an issue.
 
   
  ![]()  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24 July 2007 at 5:24am | 
 
| 
   
    
   Hello,
 
   
  We will enhance it for 11.2 release. 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |