Thanks GCDEF and krmed, whereby krmed actually went to the trouble of posting how to UpdateWindow(). Actually, UpdateWindow() does nothing disecernible if entered verbatim - presumably it updates...
I have an application which communicates with some measurement hardware, and I want to display the readings from that hardware, which consist of several digits. I do not need a sophisticated display...
VC++6.
I have a simple Dialog app. There is one Edit Box, updated in a function triggered by a Button. In the function, the Edit Box's CString member variable is modified twice, firstly as "a",...
You have coherently defined a project in general terms. You could implement this in many programming languages on a variety of platforms. If you use Visual C++, and you come across a problem whilst...
OK, as you wrote, the first line in the file is some sort of header with the city name & state; the rest of the file consists of birdies and an index or count.
Seems to me that it would make most...
Sounds cool Cilu.
But from where do I get the pointer to the dialog? Or the handle to the window? Could you recommend a sample project which does either of these? I have tried to implement various...
That's the problem, VictorN: writing to an Edit Box, whether it's a CString or a control member, work fine from within the Dialog, i.e in *Dlg.cpp . But the various modules in different cpp files,...
I created a Dialog-based MFC app. The dialog boilerplate is used to manually start USB controlled hardware functions, which usually execute repeatedly, with various hardware parameters being changed...
Yes, SkynetTo, you're right. Arjay (thanks 2!) had already made that clear earlier, but I 'd already gone into frustration/desperation mode. Thanks for pointing out my stupid mistake.
You too were...
Thanks again Arjay.
I made a few small changes to your project, in order to access a CListBox which I added to the dialog. I commented all the changes ( I hope) with //**crasher.
I get an assertion...
Thanks Arjay. I appreciate your efforts and time spent. You have created a Doc/View project in Visual Studio 2005, which successfully permits writing of data from Doc/View to a dialog called from a...
GCDEF, yes , thanks for the reminder. And I did notice that nice row of medals you've got there. Now, what about a suggestion, or is putting a usable listbox in a dialog called from a menu entry in a...
I should add that I want to access the ListBox from the Doc: that's where the data is.
I'll also repeat the point: I can write to the EditBox in the dialog from a Doc function, but attempting to...
Thanks for reply, bhushan.
The Dialog class has a DDX entry for the ListBox (c_list):
void CDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlg)...
Instantiating a dialog in a Doc function, I can update an Edit box in the dialog, but when I try to use AddString on a Listbox (using "simple text"), I get an Assertion Failure.
Using VC++6; to...
I am making physical measurements using hardware controlled from a Doc/View based project. The hardware can return several numeric results per second, continuously.
I want to run a series of tests,...
Presently I copy the .h and .cpp files containing general purpose functions into each project directory, and everything compiles and links nicely. However, if I try to #include the .h file when it...
Thanks for the reply, VladimirF.
No, GetPathName returns NULL until OnOpenDocument finishes.
Thanks for your trouble. I'll use my solution. It's only some code to control temperature in a nuclear...
Thanks, but IsModified doesn't help, because at startup, i.e. when the View is first displayed, no document has been loaded, but the App Window is created and drawn. "IsModified" doesn't seem to be...
I have a standard wizard - generated SDI, which imports data via OnOpenDocument. I want to view this processed data, and can do so quite happily in the View. Trouble is, when the SDI App first...
The user can scroll through the data by means of the ARROWS on the SPIN control in the Dialog. I want to assign the LEFT ARROW and RIGHT ARROW keys such that when they are pressed on the keyboard,...