Doing WINDOW LIST($aWin) in On Startup will return the window's ref in the array (on the Mac anyway).
Keith - CDI > On Jan 31, 2019, at 4:40 PM, Peter Hay via 4D_Tech <[email protected]> > wrote: > > Hi, > > I'm trying to get the Window reference of 4D's application window so that I > can put a custom icon on it, and change the window title. > > This is for 64 bit 4D v17R3 on MS Windows. > > I've been doing this for years with the excellent Win32API > using gui_GetWindowEx (""). This works fine with 32 Bit 4D apps, but fails > on 64 bit apps. I've checked with Orchard Software, and they confirm the > issue, but they're still using 32 bit 4D Remote, so it's not a priority for > them. I have no problem with this stance. It's their plugin, and it's > free, and I'm very grateful for them giving it away. > > So, does anyone know how to get the 4D window ref of the main 4D > application MDI window for 64 bit 4D apps? > > Thanks. > -- > Pete Hay > Managing Director > Foreground Software Limited > New Zealand > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

