Re: edit control (Naming an edit box)
- very cool, I will try that as soon as I get a chance. Thanks Ernesto.
--- In perlguitest@y..., "erngui" <erngui@y...> wrote:
> --- In perlguitest@y..., "paulbt2000" <pcovington@a...> wrote:
> > In my product code how do I name an edit box? I am using C++.
> It normally already has a number that identifies it (that's the
> control id). In MFC it normally is a define that looks like
> IDC_EDIT1. You can then lookup the control id in the resource.h
> #define IDC_EDIT1 1000
> If your dialog box has the title "Silly Example" you can use this
> my @win = FindWindowLike(0, "Silly Example");
> my @edit = FindWindowLike(shift @win, "", "Edit", 1000);
> WMSetText(shift @edit, "Whatever");
> Ernesto Guisado