CodePudding user response:
This, as far as I know, if just using the built-in function in the control, seems to reach the purpose of your said,May need to change the High speed charting the source code, if you say you don't need the scroll bar is the function of functions, such as advice or write a template reference chicken peck rice tutorial cpen line drawing,
CodePudding user response:
The original poster can come to a source? I used vc + + to add this control has been failure, mailboxes, genuflect is begged 1463431379 @qq.comCodePudding user response:
Refer to the https://blog.csdn.net/czyt1988/article/details/8740500CodePudding user response:
Can consider to change the source code ChartAxis. CPP DrawTick in function, the content ofIf (m_bIsHorizontal)
{
If (TickPos
BTickOnAxis=false;
if (! M_bIsSecondary)
{
If (bTickOnAxis)
{
PDC - & gt; MoveTo (TickPos, m_AxisRect. Top + 1);
PDC - & gt; LineTo (TickPos, m_AxisRect. Top + 4);
}
If (bLabelOnAxis)
{
//I change the content of the reference
TChartString TMP=_T (" ");
Int allsize=m_pXAxisName. The size ();
If (dTickVal & lt; Allsize)
{
TMP=m_pXAxisName [dTickVal];
//m_pindex + +;
PDC - & gt; ExtTextOut (lLabelPos - TextSize. Cx/2-15, m_AxisRect. Top + 5,
ETO_CLIPPED | ETO_OPAQUE, NULL, TMP. C_str (), NULL);
}
}
}
The else
{
If (bTickOnAxis)
{
PDC - & gt; MoveTo (TickPos, m_AxisRect. Bottom - 1);
PDC - & gt; LineTo (TickPos, m_AxisRect. Bottom - 4);
}
If (bLabelOnAxis)
{
PDC - & gt; ExtTextOut (lLabelPos - TextSize. Cx/2, m_AxisRect. The bottom - 5 - TextSize. Cy,
ETO_CLIPPED | ETO_OPAQUE, NULL, strBuffer c_str (), NULL);
}
}
}