Click here to Skip to main content
12,068,108 members (39,828 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ MFC GDI+
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(0, 1, RUNTIME_CLASS(CViewUpper),
                                                CSize(150, 50), pContext);*/
 m_wndSplitter.CreateView(1, 0, RUNTIME_CLASS(CViewLower),
                                                CSize(150, 50), pContext);
 //m_wndSplitter.CreateView(1, 1, RUNTIME_CLASS(CViewCount),
 //                                               CSize(150, 50), pContext);
 return TRUE;
 
 return CFrameWndEx::OnCreateClient(lpcs, pContext);
}



Master  is my screen (having problem to show LCD)
 
//  this part is LCD Display,, (See my attached picture)

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 );               //--> No work.. I think,

}

I dont know why did not show number,
Posted 14-Dec-11 16:54pm
Edited 14-Dec-11 20:02pm
v4
Comments
johny10151981 15-Dec-11 1:04am
   
How do you control it?

What port do you use?

i mean,
1. Parallel Port
2. Serial Port
3. USB Port
johny10151981 15-Dec-11 1:06am
   
Now I saw the link, now I know what you mean.
sun mi Kang 15-Dec-11 1:50am
   
I used RS-232C USB Port
sun mi Kang 15-Dec-11 1:54am
   
this is my program problem picture


http://cyw.do/133aGP/UlAsQ

My program is MODBUS program!
this is video(working) : http://minihp.cyworld.com/45183393/3161472486
johny10151981 15-Dec-11 1:57am
   
I have Understood your problem, Its not related with transferring, or receiving data, you are having problem with displaying output, I think you should re-analysis the original code you are following.
sun mi Kang 15-Dec-11 2:02am
   
Thanks., I change Dialog Format,, Very thanks you
(^_^) Thanks for editing my article!, I m making elect car battery test program

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 15 Dec 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100