Closing a filepro application Window

Bob Rasmussen ras at anzio.com
Thu Sep 27 08:51:24 PDT 2007


On Thu, 27 Sep 2007, Kenneth Brody wrote:

> Quoting Bob Rasmussen (Thu, 27 Sep 2007 06:18:50 -0700 (PDT)):
> [...]
> >I don't know if filePro gives you access to the Windows API; someone else
> >(Ken?) will have to answer that. If it doesn't, it might be possible to
> >write a separate program that would act upon the filePro window. Here are
> >the calls involved, assuming you have the window handle "H":
> >
> >GetWindowLong(H, GWL_STYLE)
> >   returns the current style
> >SetWindowLong(H, new_style)
> >   sets the new style, where new_style is a 32-bit integer
> >
> >GWL_STYLE is -16
> >WS_SYSMENU is hex 80000
> >
> >So if you GetWindowLong, turn off bit 80000, and SetWindowLong, you'll
> >remove the X box completely.
> 
> Good in theory.  In actuality, SetWindowLong() fails with error 5
> ("access denied") when attempting to clear WS_SYSMENU.  In fact, just
> passing the same style back gives an error 5.

It works for me. Are you trying it from within the same window, or from a 
separate program/window? Are you in Vista?

Regards,
....Bob Rasmussen,   President,   Rasmussen Software, Inc.

personal e-mail: ras at anzio.com
 company e-mail: rsi at anzio.com
          voice: (US) 503-624-0360 (9:00-6:00 Pacific Time)
            fax: (US) 503-624-0760
            web: http://www.anzio.com


More information about the Filepro-list mailing list