craig knutson
May 11th, 1999, 02:05 PM
... (this is barely graphics)
i use the following createpen statement:
m_penLine.CreatePen(
PS_SOLID
,m_rectSplitterBar.Height()
,RGB(192,192,192) // light gray
);
to create a pen that i use to draw a line across a dialog. (i use it as a "sizing line" for dragging a splitter type of bar).
the right "end cap" is rounded, (kind of).
i've tried:
m_penLine.CreatePen(
PS_SOLID & PS_ENDCAP_SQUARE
,m_rectSplitterBar.Height()
,RGB(192,192,192) // light gray
);
but then the line gets real thin, i guess it has to do with the PS_ENDCAP_SQUARE thing. i believe this really should be used with PS_GEOMETRIC.
i'm just wondering, how can i get the pen to have square ends?
thanks for any info you can provide.
craigk
cknutson@flash.net
i use the following createpen statement:
m_penLine.CreatePen(
PS_SOLID
,m_rectSplitterBar.Height()
,RGB(192,192,192) // light gray
);
to create a pen that i use to draw a line across a dialog. (i use it as a "sizing line" for dragging a splitter type of bar).
the right "end cap" is rounded, (kind of).
i've tried:
m_penLine.CreatePen(
PS_SOLID & PS_ENDCAP_SQUARE
,m_rectSplitterBar.Height()
,RGB(192,192,192) // light gray
);
but then the line gets real thin, i guess it has to do with the PS_ENDCAP_SQUARE thing. i believe this really should be used with PS_GEOMETRIC.
i'm just wondering, how can i get the pen to have square ends?
thanks for any info you can provide.
craigk
cknutson@flash.net