He probably means without invoking the dialog.
Perhaps he should ensure the application's version is stored in a version
resource and then read the resouce for the paper report and for the dialog
I can't find the right calls at the moment, but I know they exist.
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
> Back 9 wrote:
> > Hi All,
> > Does anyone know how to retrieve a string in IDC_STATIC on a dialog box?
> > I have to print out a report with an application version at the bottom
> > for users to be aware of it in my application.
> > I don't know how to retrieve the string in IDC_STATIC control on a
> > It would be very nice that someone let me know how to do that without
> > calling the dialog box.
> > TIA
> > Hwasoo Lee
> First you have to change the ID from IDC_STATIC to some unique name with
> unique ID value for that dialog. Then you can read the control's text
> all the ways you can read an edit control, such as GetWindowText and
> It is not clear what you mean by "without calling the dialog box."
> Scott McPhillips [VC++ MVP]