// JP opened flex table

Click to See Complete Forum and Search --> : Triangular Buttons works on NT Only


Liam Murray
April 8th, 1998, 09:58 PM
The triangular button demo by Janus Kjempff has an NT-only API that results in the code not working on Windows 95:


In CTriangleButton::DrawItem() a pen is created like this:


CPen FocusPen(PS_COSMETIC | PS_ALTERNATE, 1, &logbrush);


According to the documentation for ExtCreatePen(), PS_ALTERNATE is not supported for Windows95.


If you are using Win95 you can replace the above line with the following:


CPen FocusPen(PS_COSMETIC | PS_DOT, 1, &logbrush);


I don't know if this effect is exactly the same, but at least it makes this cool sample runable on Win95.

//JP added flex table