Keith: Win32 fixes. Much appreciation to Markus L�din.

git-svn-id: trunk@3257 -
This commit is contained in:
lazarus 2002-08-28 17:28:11 +00:00
parent fa11d46a46
commit 3e9ae9aac4
6 changed files with 12 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 645 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 KiB

After

Width:  |  Height:  |  Size: 68 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 77 B

View File

@ -56,6 +56,7 @@ Var
C: Cardinal; C: Cardinal;
List: TMsgArray; List: TMsgArray;
LMessage: TLMessage; LMessage: TLMessage;
R: TRect;
OwnerObject: TObject; OwnerObject: TObject;
WinProcess: Boolean; WinProcess: Boolean;
Begin Begin
@ -300,12 +301,14 @@ Begin
End; End;
WM_MOVE: WM_MOVE:
Begin Begin
Windows.GetWindowRect(Window, @R);
With TLMMove(LMessage) Do With TLMMove(LMessage) Do
Begin Begin
Msg := LM_MOVE; Msg := LM_MOVE;
MoveType := WParam; // MoveType := WParam; WParam is not defined!
XPos := Lo(LParam); MoveType := 0;
YPos := Hi(LParam); XPos := R.Left;
YPos := R.Top;
End; End;
End; End;
//TODO:LM_MOVEPAGE,LM_MOVETOROW,LM_MOVETOCOLUMN //TODO:LM_MOVEPAGE,LM_MOVETOROW,LM_MOVETOCOLUMN
@ -382,12 +385,13 @@ Begin
End; End;
WM_SIZE: WM_SIZE:
Begin Begin
Windows.GetWindowRect(Window, @R);
With TLMSize(LMessage) Do With TLMSize(LMessage) Do
Begin Begin
Msg := LM_SIZE; Msg := LM_SIZE;
SizeType := WParam; SizeType := WParam;
Width := Lo(LParam); Width := R.Right - R.Left;
Height := Hi(LParam); Height := R.Bottom - R.Top;
End; End;
End; End;
WM_SYSKEYDOWN: WM_SYSKEYDOWN:
@ -464,6 +468,9 @@ End;
{ {
$Log$ $Log$
Revision 1.15 2002/08/28 17:28:11 lazarus
Keith: Win32 fixes. Much appreciation to Markus Lüdin.
Revision 1.14 2002/08/13 07:08:25 lazarus Revision 1.14 2002/08/13 07:08:25 lazarus
MG: added gdkpixbuf.pp and changes from Andrew Johnson MG: added gdkpixbuf.pp and changes from Andrew Johnson