Click here to Skip to main content
11,805,316 members (65,874 online)
Rate this: bad
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 15:54pm
Edited 14-Dec-11 19:02pm
(no name)16.4K
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

My program is MODBUS program!
this is video(working) :
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 3,265
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 15 Dec 2011
Copyright © CodeProject, 1999-2015
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