掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
選択可能なフォームのサイズを変更できなくするには? (ID:23446)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
選択可能なフォームのサイズを変更できなくするにはどのようにすれば良いのでしょうか? 過去ログ等を参考に下記のコードを記述したら、アクセス違反の例外が形成されました。 unit FrmAddCodeMod; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Grids, DBGrids, DBCtrls, ExtCtrls, StdCtrls; type TFrmAddCode = class(TForm) private { Private 宣言 } procedure WMGetMinMaxInfo(var Msg:TWMGetMinMaxInfo); message WM_GetMinMaxInfo; public { Public 宣言 } end; var FrmAddCode: TFrmAddCode; implementation uses DM09; {$R *.dfm} procedure TFrmAddCode.WMGetMinMaxInfo(var Msg: TWMGetMinMaxInfo); begin inherited; with Msg.MinMaxInfo^ do begin ptMinTrackSize.X := FrmAddCode.Width; ptMaxTrackSize.X := FrmAddCode.Width; ptMinTrackSize.Y := FrmAddCode.Height; ptMaxTrackSize.Y := FrmAddCode.Height; end; end; end.
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.