Re: SetWindowText question.
From: Paul G. Tobey [eMVP] (ptobey)
Date: 08/04/04
- Next message: marabo82: "WaitCommEvent problem"
- Previous message: Paul G. Tobey [eMVP]: "Re: IP configuration at runtime and persisting the configuration changes."
- In reply to: Channa: "Re: SetWindowText question."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 15:19:39 -0700
The About dialog in the default wizard-generated code is, too. I think
you're doing something way wrong. Try generating the Hello, World program
using the wizard and see if you have the same problem, there. I doubt that
you will. This is not something that requires a work-around; your code is
broken.
Paul T.
"Channa" <Channa@discussions.microsoft.com> wrote in message
news:287657FA-44FD-4339-8E56-79F4B7DFC044@microsoft.com...
> Hi Tobey,
>
> My dialog box is a Modal, probably that's why then. Is there a way
around this problem?
>
> Thanks,
> -Channa.
>
> "Paul G. Tobey [eMVP]" wrote:
>
> > I have no problems with the same thing. I had the new application
wizard
> > generate me a program with an About box and changed the caption on the
> > dialog every time I moved it and it works just perfectly. Obviously, if
the
> > message loop isn't running, the caption won't change...
> >
> > Paul T.
> >
> > "Channa" <Channa@discussions.microsoft.com> wrote in message
> > news:E77C7EC8-A469-4B71-B448-AB1C31E8770E@microsoft.com...
> > > Hi,
> > > I am using "SetWindowText(hwnd, lpString)" to get the Caption of
a
> > dialog box changed at run time. I pass it in the handle for the dialog
box
> > and also the text that I want to change to. But, I do not see the
caption
> > changes there. If I end the dialog box and then comeback in, then dialog
box
> > shows the new text in the Caption!!! This might be a simple issue, but I
> > don't know how to fix it. It would be greatly appreciated if anybody
help me
> > out. Thanks in advance.
> > >
> > > -Channa.
> > >
> >
> >
> >
- Next message: marabo82: "WaitCommEvent problem"
- Previous message: Paul G. Tobey [eMVP]: "Re: IP configuration at runtime and persisting the configuration changes."
- In reply to: Channa: "Re: SetWindowText question."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|