常用函式 不斷新增

2021-07-05 07:45:21 字數 409 閱讀 3726

將選定的視窗提到頂層獲得焦點

函式定義:

procedure

switchtothiswindow

(hwnd:thandle;falttab:boolean);

hwnd是將要提前的視窗的控制代碼,falttab是設定是否模擬乙個alt+tab動作,如果為true,則可以使最小化的視窗提到頂層獲得焦點

函式呼叫:

這個函式無法直接呼叫,需要從user32.dll匯出

procedure

switchtothiswindow

(hwnd:thandle;falttab:boolean);

stdcall;external

'user32.dll';

MATLAB常用函式(不斷更新中)

1 常用取整函式 round x 四捨五入函式 floor x 向下取整,即 floor 1.2 1,floor 1.8 1 ceil x 向上取整,即 ceil 1.2 2,ceil 1.8 2 2 取模函式 mod 5,2 1 rem 5,2 1 區別 當x和y的正負號一樣的時候,兩個函式結果是...

numpy的常用函式 不斷更新

numpy最基本的就是陣列和矩陣,先簡單介紹一下陣列的基本操作 1.陣列 1.1建立 from numpy import array a1 array 2,3,4 print a1 2 3 4 a2 array 1,2,3 4,5,6 print a2 1 2 3 4 5 6 import nump...

C 常用函式集合 不斷更新

其它函式庫 1.strncpy char to,const char from,size t count 將字串from 中至多count個字元複製到字串to中。如果字串from 的長度小於count,其餘部分用 0 填補。返回處理完成的字串。2.strcmp const char str1,con...