Archived

This topic is now archived and is closed to further replies.

Zeblar Nagrim

Changing color for a button in win32

Recommended Posts

    
case WM_CTLCOLORBTN:

for(i=0; i<m_aChildWnds.size(); i++)
 if((HWND) p_lParam == m_aChildWnds[i].m_hWnd ) 
 {      
  SetBkMode((HDC) p_wParam, TRANSPARENT) ;   
  SetBkColor((HDC)p_wParam, m_aChildWnds[i].GetColor());         
  return (long) m_aChildWnds[i].GetBrush();     
 }
 
break;
    
Why dosen´t this work? (I get no debug error and I know that I reccive the message in the msgproc). Zeblar Nagrim, Lord of Chaos Edited by - Zeblar Nagrim on December 16, 2001 5:42:45 PM Edited by - Zeblar Nagrim on December 16, 2001 5:43:21 PM

Share this post


Link to post
Share on other sites