Visual C++ :: Use Of CListCtrl For Live Data View?

Jul 29, 2013

I'm working on an app which monitors user selected data sets from various devices, and I'd like to display the data in a CListCtrl. This would be very convenient, but I'm just a little concerned about (1) just how fast can a CListCtrl be populated, and (2) how can i reduce or eliminate screen flicker. To be specific...

1. There will likely be upwards of 100 rows of data, maybe more (probably 5 or 6 columns), and I'm going to have to refresh it all as quickly as possible, perhaps as fast as once per second. I can play games and only refresh a visible rectangle, but how responsive the control would be, having all that data deleted and refreshed continually?

2. You can see why I'd be worried about screen flicker, and I thought I'd likely have to make two identical overlapped controls so I could double buffer as I would with a graphic animation, switching the visibility of one or another control after its updated to give the appearance of sudden complete updates. BUT... I see there is an extended style you can set called "LVS_EX_DOUBLEBUFFER"

View 10 Replies


ADVERTISEMENT

Visual C++ :: How To Use CListCtrl For Show Multiple DialogBoxs Like Items In Icon View

Jan 15, 2014

i can write a mfc program to make a Thumbnail view with image but can not this when change image with CDialogBox.

Thumbnail view with image(chart) like this:

for (int i=0;i<10;i++) {
CChartContainer *cc = new CChartContainer();
if(cc->m_frmWin->Create(_T(""),
WS_CHILD|WS_VISIBLE|SS_BITMAP, rc,
this,idDyn)) {
}
}

how can i write mfc program to make a Thumbnail view of CDialogBoxs?

do i can use CListCtrl for show multiple DialogBoxs?

View 13 Replies View Related

Visual C++ :: Display Data Of Text File In List View

Sep 24, 2012

I want to display data from text file in list view and in tree view root will be file name, but i dont know how to do it, the problem is with displaying text file data in list view, i don't know anything about that. text file data is very simple. It is just a square matrix of double values like:

21.06 34.06 5.0
12.78 45.25 6.9
12.89 45.98 5.5

in list view i want to display it.

View 14 Replies View Related

C++ :: Get Live Data To Simulate Algorithm?

Apr 9, 2014

How to get live streaming of stock data from yahoo finance? Using C++. I need the code and fetch the data so I can do calculations on the price and volume or what not.

View 1 Replies View Related

Visual C++ :: Show A Tooltip For ClistCtrl?

Feb 7, 2014

I have problems to show a tooltip for a ClistCtrl.

I searched for some solutions in the web.

I found only solution where derived classes are used.

Is it no possible to use tooltips in ClistCtrl without a derivate ClistCtrl?

View 11 Replies View Related

Visual C++ :: CListCtrl On Dialog - Row Selection?

Aug 22, 2014

I have a ListCtrl on my dailog. It has a report view. In my case I have selected first row with left click of mouse and entire row is displayed in blue color as selection (as per expected) and when I right click the second row of the listctrl it displays the menu which I have added to it and the selection remains with the first row.(as expected). I have already overridden the ListCtrl class.

I want that on the right click of second row the selection should remain with the first row but this second row also should be displayed with dotted line border.

View 1 Replies View Related

Visual C++ :: Change Item Height In CListBox / CListCtrl

Jul 1, 2014

I need a ownerdraw CListBox where I can change the item height during working with the list. The msdn says that I can specify the height in OnMeasureItem when the listbox will be created (ownerdrawfixed) or when an item will be inserted (ownerdrawvariable).

How to change the height e.g. when I click a button?

I made also some tests with CListCtrl. There I can change the height. But there is only one height for all items. How to set individual heights for the items?

View 14 Replies View Related

Visual C++ :: CEdit Control As A Child In A CListCtrl For Making Each Column Editable

Jul 8, 2013

I am using a CEdit control as a child in a CListCtrl for purpose of making each column editable. The application is a dialog based app. My problem is... I have overwritten OnOK and OnCancel in the main dialog so the edit control never receives notifications for Escape or Enter whether in OnChar or PreTranslateMessage and I would like to delete the CEdit control after updating the CListCtrl on Enter. What can I do? I have rewritten this code many many times over the past 4 days and nothing is working.

View 4 Replies View Related

C# :: Populating List View With Data

Mar 31, 2014

I am trying to complete this program and as far as I am aware, the only thing not working correctly is populating the listview with my data. I've been stressing over this for a few days and achieving no success. I have to load data from two text files (incidents.txt and technicians.txt), then use a query to populate a listview with all incidents that have been closed. Also, I have to use LINQ for this assignment, so I cannot change anything that would alter my use of that. I'm thinking that perhaps the problem is with my code in form1.cs?Included are all my classes,txt files, etc.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IncidentsByTechnician {

[Code] ....

Incidents.txt

45|1089|LEAGD10 |12|7/9/2012|7/13/2012|Problem upgrading from League Scheduler 1.0|Program fails with error 303 when trying to install upgrade.
46|1016|TEAM10 |14|7/9/2012|7/12/2012|Unable to restore data from backup|Error 405 encountered while restoring backup: File not found.
47|1034|DRAFT10 |13|7/9/2012||Can't activate product|Product activation code invalid.
48|1049|TRNY20 |11|7/9/2012||Unable to print brackets|Program doesn't recognize printer.

Technicians.txt

11|Alison Diaz
12|Jason Lee
13|Andrew Wilson
14|Gunter Wendt
15|Gina Fiori

View 4 Replies View Related

C# :: Populate Textboxes And ComboBoxes Through Data Grid View?

Dec 23, 2011

i m working on a simple project, i want to populate my text boxes and comboBoxes through DataGridView, means when i double click on cell content then the text boxes are populated.my question is that if i have to populate comboBox with the specific value then what i have to do then because comboBox.selectedItem is an object but my class property is a string..

e.g
combobox shows 30 days in it and my class is Code: class account
{
public string day{set;get}

[Code]....

but that does not happen because "comboBox.selectedItem" is an object so if i have to do that what i have to do then?

View 3 Replies View Related

C# :: Add Data Grid View Column To Listbox Using For Loop

Apr 18, 2014

I need to take a single column and all the rows in the column from a datagridview to a listbox using a for loop. My code is giving me no errors just not showing any data in the listbox.

private void frmProject6_Load(object sender, EventArgs e) {
// TODO: This line of code loads data into the 'enrollmentsDataSet.Enrollments' table. You can move, or remove it, as needed.
this.enrollmentsTableAdapter.Fill(this.enrollmentsDataSet.Enrollments);

[Code] .....

View 1 Replies View Related

C# :: StreamWriter / View Written Data Prior To Closing?

Oct 11, 2014

I've found that with streamwriter(sw) the data isn't displayed with the written to document until you either leave scope or use sw.close I'd prefer to keep sw open as I will be writing to the file in and out, sometimes very frequently, but would also prefer the data to be viewed in real time. Is there an efficient way of going about this?

View 12 Replies View Related

Visual C++ :: Can't Interconnect Doc And View

Nov 6, 2012

I'm trying to exchange data between doc and view but i can't do it.

I've readed that i need to write AddView but i don't know where.

View 10 Replies View Related

Visual C++ :: Doc / View In CDialog

May 13, 2014

I have a app with doc/view architekture. Is it possible to show/edit a doc of this type also in a CDialog within this app? How can I do that?

View 9 Replies View Related

Visual C++ :: USB Node View - What Devices Connected To Hub

Jan 29, 2014

Is it possible to see what usb devices are connected to a hub?

An example would be:

Onboard usb hub:
usb mass storage device
webcam imaging device

superspeed hub:
Mass storage device
Printer
MTD device

I am currently able to get a list of all connected devices with ManagementobjectCollection in C# but that doesn't give me any hierarchy (as far as I am aware).

I am not dead set on C#, I assumed that would be fastest way to get this up and running.

View 2 Replies View Related

C# :: Populating Second View From Info In First View

Jul 22, 2014

I have a program I have been working on where the user selects a date and enters the number of days to be viewed in the Calendar.cshtml view. This input renders another view (Update.cshtml) that contains two date picker boxes, one that should contain the selected date and the second one that should contain the calculated date. I am having an issue getting the date selected in the first view to populate to the first date block on the second view as the default and getting the calculated date to populate the second date block in the Update.cshtml view. In addition given the two dates, I would like to generate a calendar, which is why I chose the date picker approach and setting static dates.

Here is my code:

**CalendarController:**

using System.Web.Mvc;
using VanickCalendarApp.Models;
using System;
namespace VanickCalendarApp.Controllers {
public class CalendarController : Controller {

[Code] .....

View 5 Replies View Related

Visual C++ :: Insert Common Control Into View Dynamically

Jun 23, 2013

This is what I try to achieve:

1. Using a CScrollView as the View class type.
2. Using Document/View Architecture.
3. Insert multiple Common Controls such as CEdit, CButton, CListCtrl into the View dynamically.
4. All the Common Controls is base on a template created by user. So I do not know the quantity of the Common Controls.

This is the plan on how to do it:

1. In View OnInitialUpdate(), read the template to get all necessary info on the Common Controls to be create.
2. In View OnInitialUpdate(), create all Common Control. Some Common Control may not have WS_VISIBLE as it may not needed at initial stage.
3. In View OnUpdate(), I need to refresh the Common Control properties such as is its text, position or its visibility. This should happen if Document call UpdateAllView().

My Question:
1. Is this a normal & useable plan?
2. Do I miss other functions for any other messages?
3. Still wondering if I need to involve any coding in OnDraw() for this plan.

View 1 Replies View Related

Visual C++ :: Selecting Subitem In A List View Control?

Aug 7, 2013

How would I go about selecting a subitem in a listview control with just pure Win32 API? I know it's possible with MFC... but I can't use MFC for this project. Right now, when you click on a subitem , it selects only the first column of the row . I used the following by referring internet. But its not working.

HTML Code:
iSlected=SendMessage(hList,LVM_GETNEXTITEM,-1,LVNI_FOCUSED|LVNI_SELECTED);
ListView_SetItemState(hList,iSlected,LVIS_FOCUSED|LVIS_SELECTED,0x000F);

View 5 Replies View Related

Visual C++ :: How To View Line Length In Cm To User (using Map Mode)

Nov 3, 2012

My program allow user to draw lines and the user should know the length of the line that he draw in centimeter (.cm)

I did use

SetMapMode(MM_LOMETRIC) function to convert the device units into logical units

and it works correctly but I don't know how the line length will appear to the user to let him draw in correct length

I think to make the length appear on the mouse when the user draw but I don't know how I calculate and display it.

View 2 Replies View Related

Visual C++ :: Use CFormView As Main View Without Using Document Support?

Jul 17, 2013

Is it possible to use a CFormView as the main view without using document support. IE pointing CWinApps m_pMainWnd to the CFrameWnd derived MainFrame and attaching the CFormView from there. It does not seem to be working and I was wondering before I waste any more time on the solution if it is even possible. I know it is an easy solution if I create a true SDI application however I have no use for documents in this application.

View 9 Replies View Related

Visual C++ :: Resource View Takes Hangs When Trying To Edit Rc File

Mar 15, 2013

Found an online suggestion of using an rc2 file and cut and paste stuff from .rc file to .rc2 file to see which line causes the problem but don't know how to create a blank .rc2 file. Problem started after I ported from VC++ 6 to VS2010.

View 5 Replies View Related

Visual C++ :: Skip And Rotate View A Page In Property Sheet

Feb 19, 2015

When i click the back button, I like to skip some old pages & rotate pages view in my property sheet.

I have 5 pages, when i clicked the User button in my MainDlg the below function called like,
User Button Clicked -> Page1 Opened
Next Button Clicked
-> Page2 -> Page3 -> Page4 -> Page5
Back Button Clicked
Page1 <- Page2 <- Page3 <- Page4 <- Page5

This work done. working good.

Code:
void MainDlg:: onButtonUserClicked()
{
CSheet oSht(this);
Page1 p1;

[Code]...

My requirement is,
User Button Clicked -> Page1 Opened
Next Button Clicked
-> Page2 -> Page3 -> Page4-> Page5 -> Page1(Again called 1st page automatically - rotate pages view)
Back Button Clicked(Cur Page loc is Page5)
(Start the prev Process)Page5 <- Page1 <- (Skip the Page2 & 3)Page4 <- Page5

View 9 Replies View Related

Visual C++ :: Launching Current Version Of IE To View HTML File From Program

Nov 29, 2012

I tried to do this with _spawnl(), but first of all I'm not sure how to properly ask for the path to iexplore.exe, as I'm sure it will change every time MS gets a whim to move it. I know there's a GetWindowsDirectory() call, but that's not where IE resides (its in "C:Program FilesInternet Exploreriexplore.exe" in XP, Lord know where on win 7 or 8).

Also, even temporarily hard coding the path to make it launch with spawnl(), I can't seem to get my html document to display. I know the path to that is right (since I put it there ).

char * pFile = "someFile.htm";
char * pCmd = "C:Program FilesInternet Exploreriexplore.exe";

int res = _spawnl(_P_NOWAIT, pCmd,pCmd, pFile, NULL); // also tried without specifying pCmd 2x
if (res == -1) MessageBox("Can't Open File.");

So my second question would be, how to you PROPERLY pass the file to view as an argument.

View 7 Replies View Related

Visual C++ :: CMFCComboBoxButton - Force Redraw Of Control To Show Updated Selection Via View

May 13, 2015

I have a CMFCToolbar containing a CMFCComboBoxButton which needs to be updated via a view. The view correctly updates the selection of the ComboBoxButton however the edit window is not updated until the control receives the focus or the entire window is redrawn.

How can I force the redrawing of the control to show the updated selection via the view

TextEditView::OnUpdateFontBox(CCmdUI *pCmdUI) routine?

View 1 Replies View Related

C :: Make A Live Price Chart Graph

Dec 14, 2013

The only language I know so far is C. Is there any way I can use c programming to display a live chart for a price graph including volume in different time intervals that I want to select. I want it to look like this URL....

View 2 Replies View Related

C/C++ :: Image Overlaid Five Consecutive Times On A Live Video

Nov 30, 2012

I am trying to overlay an image on a live video.I have used alpha blending method to overlay image on the video. On overlaying the image, it gets overlayed five times rather than one as expected.

Both frame data and the image data is taken as BYTE* for overlaying and displaying it.

The image used is a bitmap image.

The data (BYTE*) of both the video and the image is overlayed and the resultant is stored back in the variable of the video and den drawn on the picture control of vc++.

The video resolution is 640x480.

The image I m overlaying is 128x128.

The IDE used is visual studio professional.The code is developed using c++.

How do I overlay the bitmap image as a single image on the live video at a specific position.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved