Windows API-GDI入門基礎知識詳解(2)

2021-01-11 太平洋電腦網
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 boot
1 Fail-safe boot
2 Fail-safe with network boot

Fail-safe boot (also called SafeBoot, Safe Mode, or Clean Boot) bypasses the user's startup files.

SM_CMONITORS

Number of display monitors on the desktop. See Remarks for more information.

Windows NT, Windows 95:  This value is not supported.

SM_CMOUSEBUTTONS

Number of buttons on mouse, or zero if no mouse is installed.

SM_CXBORDER, SM_CYBORDER

Width and height of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.

SM_CXCURSOR, SM_CYCURSOR

Width and height of a cursor, in pixels. 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 of the rectangle around the location of a first click in a double-click sequence, in pixels. 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.)

To set the width and height of the double-click rectangle, call SystemParametersInfo with the SPI_SETDOUBLECLKHEIGHT and SPI_SETDOUBLECLKWIDTH flags.

SM_CXDRAG, SM_CYDRAG

Width and height of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. These values are in pixels. It allows the user to click and release the mouse button easily without unintentionally starting a drag operation.

SM_CXEDGE, SM_CYEDGE

Dimensions of a 3-D border, in pixels. These are the 3-D counterparts of SM_CXBORDER and SM_CYBORDER.

SM_CXFIXEDFRAME, SM_CYFIXEDFRAME

Thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border.

Same as SM_CXDLGFRAME and SM_CYDLGFRAME.

SM_CXFOCUSBORDER, SM_CYFOCUSBORDER

Width of the left and right edges and the height of the top and bottom edges of the focus rectangle drawn by DrawFocusRect. These values are in pixels.

Windows 2000/NT, Windows Me/98/95:  This value is not supported.

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 on the primary display monitor, in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value.

SM_CXHSCROLL, SM_CYHSCROLL

Width of the arrow bitmap on a horizontal scroll bar, in pixels; and height of a horizontal scroll bar, in pixels.

SM_CXHTHUMB

Width of the thumb box in a horizontal scroll bar, in pixels.

SM_CXICON, SM_CYICON

Default width and height of an icon, in pixels. The LoadIcon function can load only icons of these dimensions.

SM_CXICONSPACING, SM_CYICONSPACING

Dimensions of a grid cell for items in large icon view, in pixels. 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 on the primary display monitor.

SM_CXMAXTRACK, SM_CYMAXTRACK

Default maximum dimensions of a window that has a caption and sizing borders, in pixels. This metric refers to the entire desktop. 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 of the default menu check-mark bitmap, in pixels.

SM_CXMENUSIZE, SM_CYMENUSIZE

Dimensions of menu bar buttons, such as the child window close button used in the multiple document interface, in pixels.

SM_CXMIN, SM_CYMIN

Minimum width and height of a window, in pixels.

SM_CXMINIMIZED, SM_CYMINIMIZED

Dimensions of a minimized window, in pixels.

SM_CXMINSPACING SM_CYMINSPACING

Dimensions of a grid cell for a minimized window, in pixels. 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 of a window, in pixels. 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 of the screen of the primary display monitor, in pixels. These are the same values obtained by calling GetDeviceCaps(hdcPrimaryMonitor, HORZRES/VERTRES).

SM_CXSIZE, SM_CYSIZE

Width and height of a button in a window's caption or title bar, in pixels.

SM_CXSIZEFRAME, SM_CYSIZEFRAME

Thickness of the sizing border around the perimeter of a window that can be resized, in pixels. 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 of a small icon, in pixels. Small icons typically appear in window captions and in small icon view.

SM_CXSMSIZE SM_CYSMSIZE

Dimensions of small caption buttons, in pixels.

SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN

Width and height of the virtual screen, in pixels. The virtual screen is the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN metrics are the coordinates of the top-left corner of the virtual screen.

Windows NT, Windows 95:  This value is not supported.

SM_CXVSCROLL, SM_CYVSCROLL

Width of a vertical scroll bar, in pixels; and height of the arrow bitmap on a vertical scroll bar, in pixels.

SM_CYCAPTION

Height of a caption area, in pixels.

SM_CYKANJIWINDOW

For double byte character set versions of the system, this is the height of the Kanji window at the bottom of the screen, in pixels.

SM_CYMENU

Height of a single-line menu bar, in pixels.

SM_CYSMCAPTION

Height of a small caption, in pixels.

SM_CYVTHUMB

Height of the thumb box in a vertical scroll bar, in pixels.

SM_DBCSENABLED

TRUE or nonzero if User32.dll supports DBCS; FALSE or zero otherwise.

Windows Me/98/95:   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 debug version of User.exe is installed; FALSE or zero otherwise.

SM_IMMENABLED

TRUE or nonzero if Input Method Manager/Input Method Editor features are enabled; FALSE or zero otherwise.

Windows NT, Windows Me/98/95:  This value is not supported.

SM_IMMENABLED indicates whether the system is ready to use a Unicode-based IME on a Unicode application. To ensure that a language-dependent IME works, check SM_DBCSENABLED and the system ANSI code page. Otherwise the ANSI-to-Unicode conversion may not be performed correctly, or some components like fonts or registry setting may not be present.

SM_MENUDROPALIGNMENT

TRUE or nonzero if drop-down menus are right-aligned with the corresponding menu-bar item; FALSE or zero if the menus are left-aligned.

SM_MIDEASTENABLED

TRUE if the system is enabled for Hebrew and Arabic languages.

SM_MOUSEPRESENT

TRUE or nonzero if a mouse is installed; FALSE or zero otherwise.

SM_MOUSEWHEELPRESENT

TRUE or nonzero if a mouse with a wheel is installed; FALSE or zero otherwise.

Windows 3.51 and earlier, Windows 95:  This value is not supported.

SM_NETWORK

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; FALSE or zero otherwise.

SM_REMOTECONTROL

This system metric is used in a Terminal Services environment. Its value is TRUE if the current session is remotely controlled; FALSE otherwise.

Windows 2000/NT, Windows Me/98/95:  This value is not supported.

SM_REMOTESESSION

This system metric is used in a Terminal Services environment. If the calling process is associated with a Terminal Services client session, the return value is TRUE or nonzero. If the calling process is associated with the Terminal Server console session, the return value is zero.

Windows NT 4.0 SP3 and earlier, Windows Me/98/95:  This value is not supported.

SM_SECURE

TRUE if security is present; FALSE otherwise.

SM_SAMEDISPLAYFORMAT

TRUE if all the display monitors have the same color format, FALSE otherwise. Note that two displays can have the same bit depth, but different color formats. For example, the red, green, and blue pixels can be encoded with different numbers of bits, or those bits can be located in different places in a pixel's color value.

Windows NT, Windows 95:  This value is not supported.

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_SHUTTINGDOWN

TRUE if the current session is shutting down; FALSE otherwise.

Windows 2000/NT, Windows Me/98/95:  This value is not supported.

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.

SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN

Coordinates for the left side and the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN metrics are the width and height of the virtual screen.

Windows NT, Windows 95:  This value is not supported.

相關焦點

  • 網際網路編程如何入門,學習路徑又是什麼?
    今天給大家來講一講網際網路學習編程以及如何入門等相關知識。1.先學會C++和socket或者windows的http server api做一個http server,做一個小網站。2.多加幾個網頁後,你就會比較的明白為什麼的大家總是需要一個template語言工具了,然後可以自己去試一試,做出一個。
  • 學了這麼久C/C+,還沒有入門?
    首先是語言的選擇,C/C++,百度應該有很多的,如果你剛剛入門,那麼請專注於你所學的那一門語言,專注,無論它現在是否流行。 在沒有開發出幾個窗體程序之前,請準備好足夠的耐心,最好把耐心的技能樹給點滿了。
  • DOS命令dir圖文教程,bat批處理腳本入門基礎教學,cmd學習講解
    今天我們開始學dos命令,dos命令在windows上有一定用途,可以更好的使用電腦和協助工作等作用,本文是第一節,從最基礎的入門開始學習,先簡單的學一下dir這個命令,找一下感覺,然後在逐步增加內容,開始學習前說一下學習和測試的環境。在屏幕左下方點開始點運行。出現運行的窗口輸入cmd點擊確定。
  • 玄空風水基礎知識入門
    揭秘玄空風水神秘的面紗,本文進行玄空風水基礎知識入門介紹。玄空之道,其大無邊,玄空學就是一門研究時間和空間風水,為人趨吉避兇為人改造命運的風水學問。2、何謂九運?即指每一元中又包含著三運,三元共計九運,每運20年,九運共180年。亦即上元分1、2、3運;中元分數線4、5、6、運;下元分7、8、9運。
  • 汽車基礎知識入門大全系列
    大家好,今後我將會持續不斷地更新,做有關於汽車基礎知識入門大全系列分享。從最基本的汽車結構知識,名詞含義,理論知識,汽車發展史等各方面跟大家一起交流學習,希望大家對汽車有更深的了解。前兩期跟大家分享了有關於汽車發動機的基礎知識,這期講汽車組成的另外一個部分--車身。
  • 就能學會以太坊 JSON API 基礎知識!
    基礎設置首先,讓我們聲明幾個變量,這將有助於以後發送請求:import requestsimport jsonsession = requests.Session()url = "https://ropsten.infura.io/v3/YOUR_INFURA_KEY
  • python入門基礎之lambda匿名函數詳解
    python入門基礎之lambda匿名函數詳解剛開始學習python的時候很多人可能對於lambda函數不了解,感覺和def很混亂,下面我來介紹一下lambda函數我從一下幾個方面來介紹lambda:1、lambda簡介2、lambda與def不同之處3、lambda的使用方法1、lambda簡介先來看一段代碼示例:
  • 水電安裝基礎知識 裝修入門注意事項
    水電安裝基礎知識 裝修入門注意事項 房天下房天下
  • 福建醫學基礎知識:細胞膜的物質轉運方式詳解
    福建醫學基礎知識:細胞膜的物質轉運方式詳解 【導讀】福建衛生人才網:提供2018福建醫療衛生招聘信息,如需了解關於醫療衛生招聘的報考指南、歷年試題、招聘信息等,請點擊上方連結了解更多詳情。細胞是構成人體最基本的結構和功能單位。
  • 零基礎入門:實時音視頻技術基礎知識全面盤點
    本人在學習音視頻開發的過程中,深刻體會到了由於知識的分散、過渡斷層帶來的種種困惑和痛苦,因此希望通過自己的理解,可以把音視頻開發相關的知識總結出來,並形成系列文章,循序漸進,剖析各個環節,一則對自己所學做一個總結和鞏固,二則希望可以幫助想入門音視頻開發的開發者小夥伴們。本文是作者自已根據入門實時音視頻的親身經歷,對於基礎知識點的認知總結。
  • I2C基礎知識入門簡單介紹
    I2C基礎知識入門簡單介紹 玩轉單片機 發表於 2020-12-02 14:29:05 廢話 I2C其實肝的我挺難受的,通訊協議這種規範往往可以摳出很多的細節
  • 手機攝影基礎知識入門,ISO測光模式曝光補償等6類參數詳解
    手機攝影入門技巧還是很多,但是手機的傻瓜拍攝模式也不錯,在需求不是很強烈的時候,你可以不用去調參數,可以使用手機自帶的濾鏡去完成自己的拍攝工作和創意。但是想要拍出好的作品,還是需要懂得一些攝影知識,手機也一樣。同時現在大部分智慧型手機都帶有相對的專業攝影功能。
  • 大學生計算機二級考試C語言中的函數入門詳解
    C語言計算機二級考試必考考點之函數入門詳解一般來說理科生的大學生有一門必修課是編程,而想要從事軟體開發的人員,沒有C語言基礎是不行的。而C語言中比較重要的部分就是函數。函數是實現各種軟體開發功能的途徑,如果你對函數了如指掌,那麼軟體開發將是一件很簡單的事情了。
  • 2018粵東西北醫療衛生招聘醫學基礎知識:細胞膜的物質轉運方式詳解
    粵東西北事業單位醫療網同步粵東西北醫療衛生招聘網醫療衛生信息:2018粵東西北醫療衛生招聘醫學基礎知識:細胞膜的物質轉運方式詳解,請考生多加關注。更多2018粵東西北醫療衛生招聘,醫學基礎知識,廣東醫療衛生考試,廣東人事考試的內容,請關注粵東西北事業單位醫療頻道/廣東人事考試網!   細胞是構成人體最基本的結構和功能單位。細胞的基本功能主要有物質跨膜轉運、型號轉導、生物電現象、收縮功能等。其中,物質跨膜轉運是常考的內容。   當前公認的細胞膜結構學說為液態鑲嵌模型。
  • Rocket-API 2.3.2 發布,基於 spring boot 的 API 敏捷開發框架
    功能新增或修改: 遠程部署重複判斷 添加mongo對象操作函數 mapping路徑匹配修改,解決restful下路徑可能會匹配執行邏輯錯誤問題 增加配置項 駝峰轉換配置 spring.rocket-api.map-underscore-to-camel-case
  • 0基礎新手電工如何快速入門?電工快速入門方法
    初學電工,必須從電工基礎知識學起,建議可以先買一本電工基礎專業書籍。也可以在網上看一些大學出的電工學方面的教學視頻。基礎理論很重要,電氣各種控制理論要搞明白。一年左右時間掌握系統理論是沒問題的。搞電氣,關鍵是實踐,有理論作為指導,多多動手。前提是,你必須對電氣有濃厚的興趣愛好,這樣進步就很快了。
  • 命理學入門基礎知識!
    _ 二零二零 開啟鴻運 _ 道 教 文 化 研 究 會 為方便想學習命理學的朋友,現整理下列命理學入門基礎知識。
  • 英語語法基礎入門 英語入門最基礎的語法知識大全
    英語語法基礎入門 英語入門最基礎的語法知識大全很多人想知道怎麼才能學好英語語法,英語入門基礎語法有哪些呢?下面小編為大家介紹一下!初學英語語法如何入門1、 對於一個初學者來說,剛開始不應過度在意語法。
  • crimaster犯罪大師入門篇2進階答案是什麼?入門篇2進階答案大全...
    crimaster犯罪大師入門篇2進階第三題的答案是什麼?入門篇2進階問題的答案是什麼?入門篇2進階需要我們根據線索在一張英文字母表中尋找答案。我們需要坎通字母對應的秘鑰才能找到合理的答案。下面就來圖文詳解的為大家介紹。