|
I am sorry, I couldn't send the bug fix to Nikolai Teofilov. Somebody please update the code.
Bug Fix:
I have noticed that there is a small bug in the control. When we change the "Track Mode", it in turn changes the "Frame Style" and vice versa. I have added a small fix please update in the code.
Add the following code at the specified line numbers
Line # 253, NTGraphCtl.cpp
afx_msg void OnTrackModeChanged();<br />
line # 92, NTGraphCtl.cpp
DISP_PROPERTY_NOTIFY(CRRActiveGraphCtrl, "TrackMode", m_nTrackMode, OnTrackModeChanged, VT_I2)
Line # 1657, NTGraphCtl.cpp
void CRRActiveGraphCtrl::OnTrackModeChanged()<br />
{<br />
InvalidateControl();<br />
SetModifiedFlag();<br />
}
Use this code at line # 87, NTGraphPpg
DDP_CBIndex(pDX, IDC_COMBO_FRAME, m_nFrame, _T("FrameStyle") );<br />
DDX_CBIndex(pDX, IDC_COMBO_FRAME, m_nFrame);<br />
DDX_Control(pDX, IDC_COMBO_FRAME, m_cbFrame);<br />
DDP_CBIndex(pDX, IDC_COMBO_MODE, m_nMode, _T("TrackMode") );<br />
DDX_CBIndex(pDX, IDC_COMBO_MODE, m_nMode);<br />
DDX_Control(pDX, IDC_COMBO_MODE, m_cbTrackMode);
instead of
DDP_CBIndex(pDX, IDC_COMBO_FRAME, m_nFrame, _T("FrameStyle") );<br />
DDX_CBIndex(pDX, IDC_COMBO_FRAME, m_nFrame);<br />
DDX_Control(pDX, IDC_COMBO_FRAME, m_cbFrame);<br />
DDP_CBIndex(pDX, IDC_COMBO_FRAME, m_nMode, _T("TrackMode") );<br />
DDX_CBIndex(pDX, IDC_COMBO_FRAME, m_nMode);<br />
DDX_Control(pDX, IDC_COMBO_MODE, m_cbTrackMode);
Hope this helps,
Suresh
|
|
|
|