Re: SetWindowText question.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Paul G. Tobey [eMVP] (ptobey)
Date: 08/04/04


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.
> > >
> >
> >
> >



Relevant Pages

  • Re: Help in saving database
    ... Can you tell what wizard you did use, by generating only a connection string ... generated toolbar nothing saved to my database file, ... what code should I add to the wizard-generated code to let the original ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Displaying Text in a Dialog
    ... The ClassWizard and AppWizard are meant to generate code for the most common (in ... starting with Wizard-generated code, then modifying it. ... because the Class Wizard did not ... > give me an option for creating a member variable for a static control, ...
    (microsoft.public.vc.mfc)
  • Re: Wizard problum
    ... Cari Windows Client - Printing/Imaging and Hardware ... > I installed a hp printer on my laptop, ... the wizard keeps coumming up saying the hardware ... Thanks Paul ...
    (microsoft.public.windowsxp.print_fax)
  • RE: Security settings changed when using File Server Migration Wiz
    ... ...also, the source and destination servers are on different domains, does ... "Paul" wrote: ... >> migration wizard and that worked fine. ... >> Using the file server migration wizard I am trying to copy a shared folder ...
    (microsoft.public.windows.server.migration)
  • IRDA irnet_ppp driver
    ... there lived a wizard called Paul. ... powerful wizard and created the ppp daemon from the darkness. ... The pppd daemon was good and hard working, ... do the relevant work to the irda FIR code. ...
    (Linux-Kernel)