> Nohting's wrong with it; you just have to have a global for the text it > points to. CtlSetLabel() doesn't COPY the string. All it does is point > ctl.label to the string you pass it. SO, if you ever redraw the form and > your string is gone the label will be garbage. Assuming you've allowed enough space in Constructor you can use: StrCopy (ctl->text, "..."); CtlSetLabel (ctl, ctl->text); Sure beats using a global or allocating space especially. Stephen Best Bitware Australia Pty. Ltd.
- Changing Text on Button: How Programatically Michael S. Davis
- Re: Changing Text on Button: How Programatically Alan Pinstein
- Re: Changing Text on Button: How Programatically Dave Lippincott
- Re: Changing Text on Button: How Programatically Robert Baglin
- Re: Changing Text on Button: How Programatically Chris Antos
- RE: Changing Text on Button: How Programatically Kevin O'Keefe
- Re: Changing Text on Button: How Programatically Mark Nudelman
- Re: Changing Text on Button: How Programatically Alan Pinstein
- Stephen Best
