Hi I made seven segment on SDI format.
but I cannot see the number.
i refered this link
A MFC/GDI+ LCD Control[
^]
MainFrame part : SDI (Splitter)
BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext)
{
m_wndSplitter.CreateStatic(this, 2, 1);
m_wndSplitter.CreateView(0, 0, RUNTIME_CLASS(CMASTER),
CSize(640, 500), pContext);
m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CViewLower),
CSize(150, 50), pContext);
return TRUE;
return CFrameWndEx::OnCreateClient(lpcs, pContext);
}
Master is my screen (having problem to show LCD)
void CMASTER::OnLcdDisplay()
{
m_LcdVolt.SetSegmentStyle( Segment7, FALSE );
m_LcdVolt.SetValueNbDigit( 4,2 );
m_LcdVolt.ShowSign( FALSE );
m_LcdVolt.SetColor( RGB(150,150,0) );
m_LcdVolt.SetValue( 2.35 );
}
I dont know why did not show number,