Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting NoTitle in a top level form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00683976
Message ID:
00687470
Views:
44
>Put the following code in the Load() event method of the form class:
>
>
>#DEFINE GWL_STYLE (-16)
>#DEFINE WS_CAPTION 0x00C00000
>
>DECLARE INTEGER SetWindowLong IN user32;
>        INTEGER hWnd, INTEGER nIndex, INTEGER dwNewLong
>
>DECLARE INTEGER GetWindowLong IN user32;
>        INTEGER hWnd, INTEGER nIndex
>
>LOCAL lnHwnd, lnSetting
>lnHwnd = THIS.Hwnd
>
>*-- Get old style setting
>lnSetting = GetWindowLong(lnHwnd, GWL_STYLE)
>THIS.AddProperty("nOldGWLSTYLE", lnSetting)
>
>*-- Calculate and set new style setting
>lnSetting = lnSetting - WS_CAPTION
>SetWindowLong(lnHwnd, GWL_STYLE, lnSetting)
>
>
>I've added this to the API section a minute ago, but I think it will take some time until the new entries will be visible.
>

Thanks. I ended up having to change to a "In Screen" form because I had another set of problems with displaying PDF's in my top level forms. I've added this code to our internal wiki page just in case it comes up again. I appreciate the help.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform