Re: NEW ERA AND C
Posted in 1996
"Vardan Yu. Aroustamian" — — source: Informix-list mailing list archive (1991-1998)
In article <32508570.4B90@starnetinc.com> Bob Leurck <rjleurck@starnetinc.com> wrote: >Here is a simple example (and useful too!) >that uses New Era's BEGIN_C/END_C method >of incorporating C into New Era Code. > >set_focus.4gl ... > BEGIN_C >{ > HWND hwnd; > HWND hwndFrom; > hwnd =3D __getHWndFromixWindow(win); > hwndFrom =3D SetFocus(hwnd); > >} > END_C Really fine code! And one comment: did you try this code, if winTo isIconic? In this case focus isn't move and I changed code like this: if( IsIconic(hwnd) ) hwndFrom =3D SetActiveWindow(hwnd); else hwndFrom =3D SetFocus(hwnd); -- Vardan