Ah, danke! QuadInt kommt als Steuerwort hinzu, ab FreeProfan32 bzw. Profan64 vermute ich mal.
Abt. Fensterputzer
==============
Es gibt Window-Styles, die ziemlich exotisch sind. Damit man da mal experimentieren kann, gibt´s das nachstehende Progi, das die auf MSDN angegbenen Steuerelemente übersetzt. Der Windows-Befehl von XProfan erspart uns, am Ende immer die drei Nullen einzugeben, die beim API-Befehl erforderlich sind. NUTZUNG AUF EIGENE GEFAHR! Frank Abbings LemonEd-Editor bietet hier den Vorteil, Programme durch Drücken beider SHIFT-Tasten gleichzeitig jederzeit abbrechen zu können (- erspart häufig den Taskmanager!).
Gruss
Code
'Window Styles:
'After the window has been created, these styles cannot be modified, except as noted.
'Constant/value Description
'-------------------------------------------------------------------------------------
var WS_BORDER&=$00800000 'The window has a thin-line border.
var WS_CAPTION&=$00C00000 'The window has a title bar (includes the WS_BORDER style).
var WS_CHILD&=$40000000 'The window is a child window. A window with this style cannot
' have a menu bar. This style cannot be used with the WS_POPUP style.
var WS_CHILDWINDOW&=$40000000 'Same as the WS_CHILD style.
var WS_CLIPCHILDREN&=$02000000 'Excludes the area occupied by child windows when drawing
'occurs within the parent window. This style is used when creating the parent window.
var WS_CLIPSIBLINGS&=$04000000 'Clips child windows relative to each other; that is, when a
' particular child window receives a WM_PAINT message, the WS_CLIPSIBLINGS style clips all other
' overlapping child windows out of the region of the child window to be updated.
' If WS_CLIPSIBLINGS is not specified and child windows overlap, it is possible, when drawing
' within the client area of a child window, to draw within the client area of a neighboring
' child window.
var WS_DISABLED&=$08000000 'The window is initially disabled. A disabled window cannot receive
' input from the user. To change this after a window has been created, use the EnableWindow function.
var WS_DLGFRAME&=$00400000 'The window has a border of a style typically used with dialog boxes.
' A window with this style cannot have a title bar.
var WS_GROUP&=$00020000 'The window is the first control of a group of controls. The group
' consists of this first control and all controls defined after it, up to the next control with
' the WS_GROUP style. The first control in each group usually has the WS_TABSTOP style so that
' the user can move from group to group. The user can subsequently change the keyboard focus from
' one control in the group to the next control in the group by using the direction keys.
' You can turn this style on and off to change dialog box navigation. To change this style after
' a window has been created, use the SetWindowLong function.
var WS_HSCROLL&=$00100000 'The window has a horizontal scroll bar.
var WS_ICONIC&=$20000000 'The window is initially minimized. Same as the WS_MINIMIZE style.
var WS_MAXIMIZE&=$01000000 'The window is initially maximized.
var WS_MAXIMIZEBOX&=$00010000 'The window has a maximize button. Cannot be combined with
' the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.
var WS_MINIMIZE&=$20000000 'The window is initially minimized. Same as the WS_ICONIC style.
var WS_MINIMIZEBOX&=$00020000 'The window has a minimize button. Cannot be combined with
' the WS_EX_CONTEXTHELP style. The WS_SYSMENU style must also be specified.
var WS_OVERLAPPED&=$00000000 'The window is an overlapped window. An overlapped window has
' a title bar and a border. Same as the WS_TILED style.
var WS_SYSMENU&=$00080000 'The window has a window menu on its title bar. The WS_CAPTION style
' must also be specified.
var WS_THICKFRAME&=$00040000 'The window has a sizing border. Same as the WS_SIZEBOX style.
var WS_POPUP&=$80000000 'The windows is a pop-up window. This style cannot be used with
' the WS_CHILD style.
var WS_SIZEBOX&=$00040000 'The window has a sizing border. Same as the WS_THICKFRAME style.
var WS_TABSTOP&=$00010000 'The window is a control that can receive the keyboard focus when
' the user presses the TAB key. Pressing the TAB key changes the keyboard focus to the next
' control with the WS_TABSTOP style.
' You can turn this style on and off to change dialog box navigation. To change this style after
' a window has been created, use the SetWindowLong function. For user-created windows and
' modeless dialogs to work with tab stops, alter the message loop to call the IsDialogMessage function.
var WS_TILED&=$00000000 'The window is an overlapped window. An overlapped window has a
' title bar and a border. Same as the WS_OVERLAPPED style.
var WS_VISIBLE&=$10000000 'The window is initially visible.
' This style can be turned on and off by using the ShowWindow or SetWindowPos function.
var WS_VSCROLL&=$00200000 'The window has a vertical scroll bar.
var WS_OVERLAPPEDWINDOW& =\
WS_OVERLAPPED& | WS_CAPTION& | WS_SYSMENU& | WS_THICKFRAME& | WS_MINIMIZEBOX& | WS_MAXIMIZEBOX&
' The window is an overlapped window. Same as the WS_TILEDWINDOW style.
var WS_POPUPWINDOW&= WS_POPUP& | WS_BORDER& | WS_SYSMENU&
' The window is a pop-up window. The WS_CAPTION and WS_POPUPWINDOW styles must be combined
' to make the window menu visible.
var WS_TILEDWINDOW& = \
WS_OVERLAPPED& | WS_CAPTION& | WS_SYSMENU& | WS_THICKFRAME& | WS_MINIMIZEBOX& | WS_MAXIMIZEBOX&
' The window is an overlapped window. Same as the WS_OVERLAPPEDWINDOW style.
'Header: Winuser.h (include Windows.h)
WindowStyle (\
WS_OVERLAPPED& | \
WS_CAPTION& | \
WS_SYSMENU& | \
WS_THICKFRAME& | \
WS_MINIMIZEBOX& | \
WS_MAXIMIZEBOX& \
)\1000
Window 300,200 - 300,400
cls $A0A000
Waitinput
End
Alles anzeigen