How can I disable (turn off) drag windows (pages)?
How can I disable (turn off) drag windows (pages) ?
9 posts
You could do that by removing the titlebarHow can this be implemented ?
You shouldn't use the XOR (^) operator to clear flags unless you also test that they are actually set. It will end up adding the flag value when it isn't set, which is not what you want (XOR toggles). Using the ~ and & operators is better. These are semantically equal:Originally Posted by aerDNA View PostI was playing to see if this can all be done programmatically from within the script, just out of curiosity. You can use the attached script to get a preview of what the installer will look like and see if this is what you really want. Then if you decide to go for it, I suggest you use the reshack method.
IntOp $R1 ${WS_SYSMENU} ~
IntOp $R0 $R0 & $R1IntOp $R0 $R0 & ${WS_SYSMENU}
${If} $R0 = ${WS_SYSMENU}
IntOp $R0 $R0 ^ ${WS_SYSMENU}
${EndIf}Edit: And assuming they are always set is not good practice.unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
const
SC_MOVING =61458;
type
TForm1 = class(TForm)
Label1: TLabel;
procedure WndProc(var Msg: TMessage); override;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.WndProc(var Msg: TMessage);
begin
if (Msg.WParam = SC_MOVING) {or (Msg.WParam = SC_MOVE)} then Exit;
inherited WndProc(msg);
end;
end.
http://stackoverflow.com/questions/1...event-handlingAnd as it applies to the question you asked?