Click here to Skip to main content
11,920,772 members (60,875 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
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

My program is MODBUS program!
this is video(working) :
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
0 OriginalGriff 548
1 Dave Kreskowiak 245
2 phil.o 170
3 KrunalRohit 134
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,530
2 Sergey Alexandrovich Kryukov 3,203
3 George Jonsson 2,815
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.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