Board index » Visual Studio » Drawing "splitter" bars
|
russel
|
Drawing "splitter" bars
Visual Studio124
Hello, I have a CDialog derived object that contains two child windows. I implement splitter-like functionality (without using CSplitterWnd) and have everything working correctly. Now, I want to add a "track bar" so when the user drags to resize, he sees where the split will end up being. I use code like this: CDC *pDC = GetDC() if(pDC) { CBrush *pBrush = pDC->GetHalftoneBrush(); if(pBrush) pBrush = pDC->SelectObject(pBrush); pDC->PatBlt(rc.left, rc.top, rc.Width(), rc.Height(), PATINVERT); if(pBrush) pDC->SelectObject(pBrush); ReleaseDC(pDC); } This *seems* to work OK, except the drawing (understandably) takes place *under* the child windows, and the bar is, therefore, occluded. Any ideas on how I can make the tracking bar paint on top of child windows? -n - |
