WinDefAVioWindowProc: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:LEGACY:WinDefAVioWindowProc to WinDefAVioWindowProc |
mNo edit summary |
||
Line 1: | Line 1: | ||
This call invokes the default AVIO window procedure. | This call invokes the default AVIO window procedure. | ||
==Syntax== | ==Syntax== | ||
WinDefAVioWindowProc(HWND hwnd, USHORT msg, ULONG mp1, ULONG mp2) | WinDefAVioWindowProc(HWND hwnd, USHORT msg, ULONG mp1, ULONG mp2) | ||
or | or | ||
WinDefAVioWindowProc (hwnd, Msgid, Param1, Param2, reply) | WinDefAVioWindowProc (hwnd, Msgid, Param1, Param2, reply) | ||
==Parameters== | ==Parameters== | ||
; hwnd (HWND) - input : Window handle. | ;hwnd (HWND) - input : Window handle. | ||
;Msgid (USHORT) - input : Message identity. | |||
; Msgid (USHORT) - input : Message identity. | ;Param1 (MPARAM) - input : Parameter 1. | ||
;Param2 (MPARAM) - input : Parameter 2. | |||
; Param1 (MPARAM) - input : Parameter 1. | ;reply (MRESULT) - return : Message return data. | ||
; Param2 (MPARAM) - input : Parameter 2. | |||
; reply (MRESULT) - return : Message return data. | |||
==Remarks== | ==Remarks== | ||
Applications using AVIO must pass all WM_SIZE messages for the window with | Applications using AVIO must pass all WM_SIZE messages for the window with which the AVIO presentation space is associated to this routine, using the same parameters as are received in the WM_SIZE message. This routine maintains the window size data in the presentation space, and must be called before the application | ||
which the AVIO presentation space is associated | |||
to this routine, using the same parameters as are received in the WM_SIZE | |||
message. This routine maintains the window size | |||
data in the presentation space, and must be called before the application | |||
accesses the window. | accesses the window. | ||
This call is not a replacement for WinDefWindowProc, which must also be | This call is not a replacement for '''WinDefWindowProc''', which must also be called as usual, to process any messages that have not been handled by the application's window procedure. | ||
called as usual, to process any messages that have | |||
not been handled by the application's window procedure. | |||
==Example Code== | ==Example Code== | ||
Line 49: | Line 35: | ||
</PRE> | </PRE> | ||
[[Category:Win]] | |||
[[Category: |
Revision as of 22:30, 18 January 2017
This call invokes the default AVIO window procedure.
Syntax
WinDefAVioWindowProc(HWND hwnd, USHORT msg, ULONG mp1, ULONG mp2)
or
WinDefAVioWindowProc (hwnd, Msgid, Param1, Param2, reply)
Parameters
- hwnd (HWND) - input
- Window handle.
- Msgid (USHORT) - input
- Message identity.
- Param1 (MPARAM) - input
- Parameter 1.
- Param2 (MPARAM) - input
- Parameter 2.
- reply (MRESULT) - return
- Message return data.
Remarks
Applications using AVIO must pass all WM_SIZE messages for the window with which the AVIO presentation space is associated to this routine, using the same parameters as are received in the WM_SIZE message. This routine maintains the window size data in the presentation space, and must be called before the application accesses the window.
This call is not a replacement for WinDefWindowProc, which must also be called as usual, to process any messages that have not been handled by the application's window procedure.
Example Code
C Binding
#define INCL_AVIO /* Or use INCL_PM */ MRESULT mresreply = WinDefAVioWindowProc (hwnd, usMsgid, mpParam1, mpParam2) HWND hwnd; /* Window handle */ USHORT usMsgid; /* Message identity */ MPARAM mpParam1; /* Parameter 1 */ MPARAM mpParam2; /* Parameter 2 */ MRESULT mresreply; /* Message return data */