CodePudding user response:
//change the back color of TBHBRUSH newBr=CreateSolidBrush (RGB (212122212));
SetClassLong (m_wndToolBar m_hWnd, GCL_HBRBACKGROUND, (long) newBr);
Use the
CreatePatternBrush (& amp; BMP);
Make your background Brush
CodePudding user response:
Thank you for your reply! But you can say clear point? What is m_hWnd parameter? CreatePatternBrush (& amp; BMP); What is the inside of the BMP and parameters? This function is used directly?CodePudding user response:
A. 1 m_wndToolBar m_hWnd2 CBitmap BMP.
BMP. LoadBitmap (IDB_BITMAP1);
M_CrayonBr. CreatePatternBrush (& amp; BMP);