Page 1 of 1

USEVISUALSTYLE with XbpBrowse

Posted: Sat Oct 29, 2016 10:02 am
by rdonnay
I'm trying to get the look of Windows Visual Style on a browse, but I also want to show lines between the columns and rows.

Has anyone figured out how to do this?
visualstyle.jpg
visualstyle.jpg (172.14 KiB) Viewed 5644 times

Re: USEVISUALSTYLE with XbpBrowse

Posted: Mon Oct 31, 2016 1:09 am
by Tom
Row lines don't work with visual styles. I added this using ownerdrawing (and I added different highlighting for Windows 10 (boxes), since row hilite is hard to see with those low contrasts). To get column lines back, you need to set XBPCOL_SEP_LINE for XBP_PP_COL_DA_COLSEPARATOR and (!) XBP_PP_COL_DA_ROWSEPARATOR, but there will be no line separator. Use XBPFRAME_BOX at XBP_PP_COL_DA_CELLFRAMELAYOUT.

Re: USEVISUALSTYLE with XbpBrowse

Posted: Mon Oct 31, 2016 5:04 pm
by rdonnay
I assumed that I could paint the lines with ownerdraw.
I had hoped there was a simpler solution.

Thanks for the advice.