Click here to Skip to main content
Rate this: bad
good
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
(no name)14.3K
v4
Comments
johny10151981 at 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 at 15-Dec-11 1:06am
   
Now I saw the link, now I know what you mean.
sun mi Kang at 15-Dec-11 1:50am
   
I used RS-232C USB Port
sun mi Kang at 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 at 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 at 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
0 OriginalGriff 365
1 Sergey Alexandrovich Kryukov 319
2 CPallini 275
3 DamithSL 214
4 Maciej Los 185
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 15 Dec 2011
Copyright © CodeProject, 1999-2014
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