close

首先 還是要先取得其他程式的 handle

 

然後才能設定不能縮小

 

var

Style:LongInt;

 

begin

Style := GetWindowLong(h, GWL_STYLE);  //不能最小化
      SetWindowLong(h, GWL_STYLE ,
        Style and
        (not WS_MINIMIZEBOX) and
        (not WS_MAXIMIZEBOX) and
        (not WS_SIZEBOX));
arrow
arrow
    文章標籤
    Delphi handle
    全站熱搜

    抓狂小白 發表在 痞客邦 留言(0) 人氣()