Italia
Fonte/ Codesnippets

Dialogfenstern Ermitteln Fenstereigenschaften

 

KompilierenMarkierenSeparieren
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Fenstereigenschaften ermitteln (auch von Dialogfenstern)
Def @GetSystemMetrics(1) !USER32,GetSystemMetrics
Window 0,0-%MaxX,600
SetTrueColor 1
CLS
Print &SM_CMETRICS ,@TAB(25),Erm. Wert:,@GetSystemMetrics(76),
Print &SM_CMOUSEBUTTONS ,@TAB(25),Erm. Wert:,@GetSystemMetrics(43),
Print &SM_CXBORDER ,@TAB(25),Erm. Wert:,@GetSystemMetrics(5),
Print &SM_CXCURSOR ,@TAB(25),Erm. Wert:,@GetSystemMetrics(13),
Print &SM_CXDLGFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(7),
Print &SM_CXDOUBLECLK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(36),
Print &SM_CXDRAG ,@TAB(25),Erm. Wert:,@GetSystemMetrics(68),
Print &SM_CXEDGE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(45),
Print &SM_CXFIXEDFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(7),
Print &SM_CXFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(32),
Print &SM_CXFULLSCREEN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(16),
Print &SM_CXHSCROLL ,@TAB(25),Erm. Wert:,@GetSystemMetrics(21),
Print &SM_CXHTHUMB ,@TAB(25),Erm. Wert:,@GetSystemMetrics(10),
Print &SM_CXICON ,@TAB(25),Erm. Wert:,@GetSystemMetrics(11),
Print &SM_CXICONSPACING ,@TAB(25),Erm. Wert:,@GetSystemMetrics(38),
Print &SM_CXMAXIMIZED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(61),
Print &SM_CXMAXTRACK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(59),
Print &SM_CXMENUCHECK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(71),
Print &SM_CXMENUSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(54),
Print &SM_CXMIN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(28),
WaitInput
CLS
Print &SM_CXMINIMIZED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(57),
Print &SM_CXMINSPACING ,@TAB(25),Erm. Wert:,@GetSystemMetrics(47),
Print &SM_CXMINTRACK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(34),
Print &SM_CXSCREEN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(0),
Print &SM_CXSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(30),
Print &SM_CXSIZEFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(32),
Print &SM_CXSMICON ,@TAB(25),Erm. Wert:,@GetSystemMetrics(49),
Print &SM_CXSMSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(52),
Print &SM_CXVSCROLL ,@TAB(25),Erm. Wert:,@GetSystemMetrics(2),
Print &SM_CYBORDER ,@TAB(25),Erm. Wert:,@GetSystemMetrics(6),
Print &SM_CYCAPTION ,@TAB(25),Erm. Wert:,@GetSystemMetrics(4),
Print &SM_CYCURSOR ,@TAB(25),Erm. Wert:,@GetSystemMetrics(14),
Print &SM_CYDLGFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(8),
Print &SM_CYDOUBLECLK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(37),
Print &SM_CYDRAG ,@TAB(25),Erm. Wert:,@GetSystemMetrics(69),
Print &SM_CYEDGE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(46),
Print &SM_CYFIXEDFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(8),
Print &SM_CYFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(33),
Print &SM_CYFULLSCREEN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(17),
Print &SM_CYHSCROLL ,@TAB(25),Erm. Wert:,@GetSystemMetrics(3),
WaitInput
CLS
Print &SM_CYICON ,@TAB(25),Erm. Wert:,@GetSystemMetrics(12),
Print &SM_CYICONSPACING ,@TAB(25),Erm. Wert:,@GetSystemMetrics(39),
Print &SM_CYKANJIWINDOW ,@TAB(25),Erm. Wert:,@GetSystemMetrics(18),
Print &SM_CYMAXIMIZED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(62),
Print &SM_CYMAXTRACK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(60),
Print &SM_CYMENU ,@TAB(25),Erm. Wert:,@GetSystemMetrics(15),
Print &SM_CYMENUCHECK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(72),
Print &SM_CYMENUSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(55),
Print &SM_CYMIN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(29),
Print &SM_CYMINIMIZED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(58),
Print &SM_CYMINSPACING ,@TAB(25),Erm. Wert:,@GetSystemMetrics(48),
Print &SM_CYMINTRACK ,@TAB(25),Erm. Wert:,@GetSystemMetrics(35),
Print &SM_CYSCREEN ,@TAB(25),Erm. Wert:,@GetSystemMetrics(1),
Print &SM_CYSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(31),
Print &SM_CYSIZEFRAME ,@TAB(25),Erm. Wert:,@GetSystemMetrics(33),
Print &SM_CYSMICON ,@TAB(25),Erm. Wert:,@GetSystemMetrics(50),
Print &SM_CYSMSIZE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(53),
Print &SM_CYVSCROLL ,@TAB(25),Erm. Wert:,@GetSystemMetrics(20),
Print &SM_CYVTHUMB ,@TAB(25),Erm. Wert:,@GetSystemMetrics(9),
Print &SM_DBCSENABLED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(42),
WaitInput
CLS
Print &SM_DEBUG ,@TAB(25),Erm. Wert:,@GetSystemMetrics(22),
Print &SM_MENUDROPALIGNMENT ,@TAB(25),Erm. Wert:,@GetSystemMetrics(40),
Print &SM_MIDEASTENABLED ,@TAB(25),Erm. Wert:,@GetSystemMetrics(74),
Print &SM_MOUSEPRESENT ,@TAB(25),Erm. Wert:,@GetSystemMetrics(19),
Print &SM_MOUSEWHEELPRESENT ,@TAB(25),Erm. Wert:,@GetSystemMetrics(75),
Print &SM_PENWINDOWS ,@TAB(25),Erm. Wert:,@GetSystemMetrics(41),
Print &SM_SECURE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(44),
Print &SM_SHOWSOUNDS ,@TAB(25),Erm. Wert:,@GetSystemMetrics(70),
Print &SM_SLOWMACHINE ,@TAB(25),Erm. Wert:,@GetSystemMetrics(73),
Print &SM_SWAPBUTTON ,@TAB(25),Erm. Wert:,@GetSystemMetrics(23),
WaitInput
CLS
Color 9,-1
Print Die wichtigsten:
Print
Color 0,15
Print &SM_CXEDGE ,@TAB(20),Erm. Wert:,@GetSystemMetrics(45),@TAB(37),= Ausmaße in Pixeln eines 3D_Randes. Das 3D-Gegenstück zu SM_CXBORDER.
Color 4,15
Print   Entspricht @GetSystemMetrics(45)
Color 0,15
Print &SM_CYEDGE ,@TAB(20),Erm. Wert:,@GetSystemMetrics(46),@TAB(37),= Ausmaße in Pixeln eines 3D_Randes. Das 3D-Gegenstück zu SM_CYBORDER.
Color 4,15
Print   Entspricht @GetSystemMetrics(46)
Color 0,15
Print &SM_CXMIN ,@TAB(20),Erm. Wert:,@GetSystemMetrics(28),@TAB(37),= Minimale Breite eines Fensters in Pixeln.
Color 4,15
Print   Entspricht @GetSystemMetrics(28)
Color 0,15
Print &SM_CYMIN ,@TAB(20),Erm. Wert:,@GetSystemMetrics(29),@TAB(37),= Minimale Höhe eines Fensters in Pixeln.
Color 4,15
Print   Entspricht @GetSystemMetrics(29)
Color 0,15
Print &SM_CXSIZE ,@TAB(20),Erm. Wert:,@GetSystemMetrics(30),@TAB(37),= Breite eines Buttons in der Titel- oder Captionleiste eines Fensters.
Color 4,15
Print   Entspricht @GetSystemMetrics(30)
Color 0,15
Print &SM_CYSIZE ,@TAB(20),Erm. Wert:,@GetSystemMetrics(31),@TAB(37),= Höhe eines Buttons in der Titel- oder Captionleiste eines Fensters.
Color 4,15
Print   Entspricht @GetSystemMetrics(31)
Color 0,15
Print &SM_CXFRAME ,@TAB(20),Erm. Wert:,@GetSystemMetrics(32),@TAB(37),= Breite in Pixeln des Rahmens eines vergrößerbaren Fensters.
Color 4,15
Print   Entspricht @GetSystemMetrics(32)
Color 0,15
Print &SM_CYFRAME ,@TAB(20),Erm. Wert:,@GetSystemMetrics(33),@TAB(37),= Höhe in Pixeln des Rahmens eines vergrößerbaren Fensters.
Color 4,15
Print   Entspricht @GetSystemMetrics(33)
Color 0,15
Print &SM_CXFIXEDFRAME ,@TAB(20),Erm. Wert:,@GetSystemMetrics(7),@TAB(37),= Breite in Pixeln des Rahmens eines nicht vergrößerbaren Fensters. (Auch Dialoge)
Color 4,15
Print   Entspricht @GetSystemMetrics(7)
Color 0,15
Print &SM_CYFIXEDFRAME ,@TAB(20),Erm. Wert:,@GetSystemMetrics(8),@TAB(37),= Höhe in Pixeln des Rahmens eines nicht vergrößerbaren Fensters. (Auch Dialoge)
Color 4,15
Print   Entspricht @GetSystemMetrics(8)
Color 0,15
Print &SM_CXVSCROLL ,@TAB(20),Erm. Wert:,@GetSystemMetrics(2),@TAB(37),= Breite in Pixeln eines vertikalen Scrollbalkens.
Color 4,15
Print   Entspricht @GetSystemMetrics(2)
Color 0,15
Print &SM_CYVSCROLL ,@TAB(20),Erm. Wert:,@GetSystemMetrics(20),@TAB(37),= Höhe in Pixeln des Pfeil-Bitmaps in einem vertikalen Scrollbalken.
Color 4,15
Print   Entspricht @GetSystemMetrics(20)
Color 0,15
Print &SM_CXHSCROLL ,@TAB(20),Erm. Wert:,@GetSystemMetrics(21),@TAB(37),= Breite in Pixeln des Pfeil-Bitmaps in einem horizontalen Scrollbalken.
Color 4,15
Print   Entspricht @GetSystemMetrics(21)
Color 0,15
Print &SM_CYHSCROLL ,@TAB(20),Erm. Wert:,@GetSystemMetrics(3),@TAB(37),= Höhe in Pixeln eines horizontalen Scrollbalkens.
Color 4,15
Print   Entspricht @GetSystemMetrics(3)
Color 0,15
Print &SM_CYVTHUMB ,@TAB(20),Erm. Wert:,@GetSystemMetrics(9),@TAB(37),= Höhe in Pixeln des Greifers in einem vertikalen Scrollbalken.
Color 4,15
Print   Entspricht @GetSystemMetrics(9)
Color 0,15
Print &SM_CYCAPTION ,@TAB(20),Erm. Wert:,@GetSystemMetrics(4),@TAB(37),= Höhe in Pixeln einer Titel- oder Captionleiste eines Fensters.
Color 4,15
Print   Entspricht @GetSystemMetrics(4)
WaitInput
End
The GetSystemMetrics function retrieves various system metrics and system configuration settings.
System metrics are the dimensions (widths and heights) of Windows display elements. All dimensions retrieved by GetSystemMetrics are in pixels.
Specifies the system metric or configuration setting to retrieve.
All SM_CX* values are widths.
All SM_CY* values are heights.
The following values are defined:
Value                   Meaning
SM_ARRANGE	           Flags specifying how the system arranged minimized windows. For more information about minimized windows, see the following Remarks section.
SM_CLEANBOOT	           Value that specifies how the system was started:0  Normal boot1  Fail-safe boot2  Fail-safe with network bootFail-safe boot (also called SafeBoot) bypasses the users startup files.
SM_CMOUSEBUTTONS	   Number of buttons on mouse, or zero if no mouse is installed.
SM_CXBORDER,
SM_CYBORDER             The width and height, in pixels, of a window border. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.
SM_CXCURSOR,
SM_CYCURSOR             Width and height, in pixels, of a cursor. These are the cursor dimensions supported by the current display driver. The system cannot create cursors of other sizes.
SM_CXDLGFRAME,
SM_CYDLGFRAME           Same as SM_CXFIXEDFRAME and SM_CYFIXEDFRAME.
SM_CXDOUBLECLK,
SM_CYDOUBLECLK          Width and height, in pixels, of the rectangle around the location of a first click in a double-click sequence. The second click must occur within this rectangle for the system to consider the two clicks a double-click. (The two clicks must also occur within a specified time.)
SM_CXDRAG,
SM_CYDRAG               Width and height, in pixels, of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation.
SM_CXEDGE,
SM_CYEDGE               Dimensions, in pixels, of a 3-D border. These are the 3-D counterparts of SM_CXBORDER and SM_CYBORDER.
SM_CXFIXEDFRAME,
SM_CYFIXEDFRAME         Thickness, in pixels, of the frame around the perimeter of a window that has a caption but is not sizable. SM_CXFIXEDFRAME is the width of the horizontal border and SM_CYFIXEDFRAME is the height of the vertical border. Same as SM_CXDLGFRAME and SM_CYDLGFRAME.
SM_CXFRAME,
SM_CYFRAME              Same as SM_CXSIZEFRAME and SM_CYSIZEFRAME.
SM_CXFULLSCREEN,
SM_CYFULLSCREEN         Width and height of the client area for a full-screen window. To get the coordinates of the portion of the screen not obscured by the tray, call the SystemParametersInfo function with the SPI_GETWORKAREA value.
SM_CXHSCROLL,
SM_CYHSCROLL            Width, in pixels, of the arrow bitmap on a horizontal scroll bar; and height, in pixels, of a horizontal scroll bar.
SM_CXHTHUMB             Width, in pixels, of the thumb box in a horizontal scroll bar.
SM_CXICON,
SM_CYICON               The default width and height, in pixels, of an icon. These values are typically 32x32, but can vary depending on the installed display hardware.The LoadIcon function can only load icons of these dimensions.
SM_CXICONSPACING,
SM_CYICONSPACING	   Dimensions, in pixels, of a grid cell for items in large icon view. Each item fits into a rectangle of this size when arranged. These values are always greater than or equal to SM_CXICON and SM_CYICON.
SM_CXMAXIMIZED,
SM_CYMAXIMIZED          Default dimensions, in pixels, of a maximized top-level window.
SM_CXMAXTRACK,
SM_CYMAXTRACK           Default maximum dimensions, in pixels, of a window that has a caption and sizing borders. The user cannot drag the window frame to a size larger than these dimensions. A window can override these values by processing the WM_GETMINMAXINFO message.
SM_CXMENUCHECK,
SM_CYMENUCHECK          Dimensions, in pixels, of the default menu check-mark bitmap.
SM_CXMENUSIZE,
SM_CYMENUSIZE           Dimensions, in pixels, of menu bar buttons, such as multiple document (MIDI) child close.
SM_CXMIN,
SM_CYMIN                Minimum width and height, in pixels, of a window.
SM_CXMINIMIZED,
SM_CYMINIMIZED          Dimensions, in pixels, of a normal minimized window.
SM_CXMINSPACING
SM_CYMINSPACING         Dimensions, in pixels, of a grid cell for minimized windows. Each minimized window fits into a rectangle this size when arranged. These values are always greater than or equal to SM_CXMINIMIZED and SM_CYMINIMIZED.
SM_CXMINTRACK,
SM_CYMINTRACK           Minimum tracking width and height, in pixels, of a window. The user cannot drag the window frame to a size smaller than these dimensions. A window can override these values by processing the WM_GETMINMAXINFO message.
SM_CXSCREEN,
SM_CYSCREEN             Width and height, in pixels, of the screen.
SM_CXSIZE,
SM_CYSIZE               Width and height, in pixels, of a button in a windows caption or title bar.
SM_CXSIZEFRAME,
SM_CYSIZEFRAME          Thickness, in pixels, of the sizing border around the perimeter of a window that can be resized. SM_CXSIZEFRAME is the width of the horizontal border and SM_CYSIZEFRAME is the height of the vertical border. Same as SM_CXFRAME and SM_CYFRAME.
SM_CXSMICON,
SM_CYSMICON             Recommended dimensions, in pixels, of a small icon. Small icons typically appear in window captions and in small icon view.
SM_CXSMSIZE
SM_CYSMSIZE             Dimensions, in pixels, of small caption buttons.
SM_CXVSCROLL,
SM_CYVSCROLL            Width, in pixels, of a vertical scroll bar; and height, in pixels, of the arrow bitmap on a vertical scroll bar.
SM_CYCAPTION            Height, in pixels, of normal caption area.
SM_CYKANJIWINDOW	   For double-byte character set versions of Windows, height, in pixels, of the Kanji window at the bottom of the screen.
SM_CYMENU               Height, in pixels, of single-line menu bar.
SM_CYSMCAPTION	        Height, in pixels, of a small caption.
SM_CYVTHUMB             Height , in pixels, of the thumb box in a vertical scroll bar.
SM_DBCSENABLED          TRUE or nonzero if the double-byte character set (DBCS) version of USER.EXE is installed; FALSE, or zero otherwise.
SM_DEBUG                TRUE or nonzero if the debugging version of USER.EXE is installed; FALSE, or zero, otherwise.
SM_MENUDROPALIGNMENT	   TRUE, or nonzero if drop-down menus are right-aligned relative to the corresponding menu-bar item; FALSE, or zero if they are left-aligned.
SM_MIDEASTENABLED	   TRUE if the system is enabled for Hebrew/Arabic languages.
SM_MOUSEPRESENT         TRUE or nonzero if a mouse is installed; FALSE, or zero, otherwise.
SM_MOUSEWHEELPRESENT	   Windows NT only: TRUE or nonzero if a mouse with a wheel is installed; FALSE, or zero, otherwise.
SM_NETWORK              The least significant bit is set if a network is present; otherwise, it is cleared. The other bits are reserved for future use.
SM_PENWINDOWS           TRUE or nonzero if the Microsoft Windows for Pen computing extensions are installed; zero, or FALSE, otherwise.
SM_SECURE               TRUE if security is present, FALSE otherwise.
SM_SHOWSOUNDS           TRUE or nonzero if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form; FALSE, or zero, otherwise.
SM_SLOWMACHINE          TRUE if the computer has a low-end (slow) processor, FALSE otherwise.
SM_SWAPBUTTON           TRUE or nonzero if the meanings of the left and right mouse buttons are swapped; FALSE, or zero, otherwise.
Return Values:

If the function succeeds, the return value is the requested system metric or configuration setting.

    If the function fails, the return value is zero. GetLastError does not provide extended error information.

        Remarks:
        System metrics may vary from display to display.
        The SM_ARRANGE setting specifies how the system arranges minimized windows, and consists of a starting position and a direction.
        The starting position can be one of the following values.
        Value                   Meaning
        ARW_BOTTOMLEFT          Start at lower-left corner of screen (default position).
        ARW_BOTTOMRIGHT         Start at lower-right corner of screen. Equivalent to ARW_STARTRIGHT.
        ARW_HIDE                Hide minimized windows by moving them off of the visible area of the screen.
        ARW_TOPLEFT             Start at upper-left corner of screen. Equivalent to ARV_STARTTOP.
        ARW_TOPRIGHT            Start at upper-right corner of screen. Equivalent to ARW_STARTTOP | SRW_STARTRIGHT.
        The direction in which to arrange can be one of the following values:
        Value                   Meaning
        ARW_DOWN                Arrange vertically, top to bottom.
        ARW_LEFT                Arrange horizontally, left to right.
        ARW_RIGHT               Arrange horizontally, right to left.
        ARW_UP                  Arrange vertically, bottom to top.
 
15.07.2007  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

Kein Systemprofil angelegt. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Bitte anmelden um einen Beitrag zu verfassen.
 

Topic-Options

1.350 Views

Untitledvor 0 min.
rquindt14.09.2015
Julian Schmidt21.08.2011

Themeninformationen

Dieses Thema hat 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Autori  |  Chat  |  Informativa sulla privacy  |  Download  |  Entrance  |  Aiuto  |  Merchantportal  |  Impronta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Giochi  |  Cerca  |  Support

Ein Projekt aller XProfaner, die es gibt!


Il mio XProfan
Private Notizie
Eigenes Ablageforum
Argomenti-Merkliste
Eigene Beiträge
Eigene Argomenti
Zwischenablage
Annullare
 Deutsch English Français Español Italia
Traduzioni

Informativa sulla privacy


Wir verwenden Cookies nur als Session-Cookies wegen der technischen Notwendigkeit und bei uns gibt es keine Cookies von Drittanbietern.

Wenn du hier auf unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung von Informationen in unseren Cookies auf XProfan.Net zu.

Weitere Informationen zu unseren Cookies und dazu, wie du die Kontrolle darüber behältst, findest du in unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Ich möchte keinen Cookie