?? 一個很cool的api介紹 (2001年4月3日).txt
字號:
一個很cool的api介紹 (2001年4月3日)
網友更新 分類:Win API 作者:閻磊 推薦:yanlei 閱讀次數:603
(http://www.codesky.net)
--------------------------------------------------------------------------------
showmessage('鼠標鍵數:'+floattostr(GetSystemMetrics(SM_CMOUSEBUTTONS)));//0表示沒有鼠標
showmessage('光標的x:'+floattostr(GetSystemMetrics( SM_CXCURSOR)));
showmessage('光標的y:'+floattostr(GetSystemMetrics(SM_CYCURSOR)));
showmessage('屏幕有效尺寸:'+floattostr(GetSystemMetrics(SM_CXFULLSCREEN))+'*'+floattostr(GetSystemMetrics(SM_CYFULLSCREEN)));
showmessage('水平滾動條的高度:'+floattostr(GetSystemMetrics(SM_CXHSCROLL)));
showmessage('菜單的高度:'+floattostr(GetSystemMetrics(SM_CYMENUSIZE)));
showmessage('分辨率:'+floattostr(GetSystemMetrics(SM_CXSCREEN))+'*'+floattostr(GetSystemMetrics(SM_CYSCREEN)));
showmessage('標題欄的高度:'+floattostr(GetSystemMetrics(SM_CYCAPTION)));
IF GetSystemMetrics(SM_SWAPBUTTON)>0 then
showmessage('鼠標左右鍵交換')
else
showmessage('鼠標左右鍵沒有交換');
IF GetSystemMetrics(SM_SLOWMACHINE)>0 then
showmessage('計算機低頻機')
else
showmessage('計算機是高頻機');
還有其它功能請看幫助
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -