Closing a filepro application Window

Kenneth Brody kenbrody at bestweb.net
Thu Sep 27 08:49:57 PDT 2007


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.

[...]

-- 
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list