WinDefFileDlgProc: Difference between revisions
Appearance
Created page with "This function is the default dialog procedure for the file dialog. ==Syntax== WinDefFileDlgProc(hwnd, msg, mp1, mp2); ==Parameters== ;hwnd (HWND) - input :Dialog-window han..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
This function is the default dialog procedure for the file dialog. | This function is the default dialog procedure for the file dialog. | ||
==Syntax== | ==Syntax== | ||
WinDefFileDlgProc(hwnd, msg, mp1, mp2) | WinDefFileDlgProc(hwnd, msg, mp1, mp2) | ||
==Parameters== | ==Parameters== | ||
;hwnd (HWND) - input | ;hwnd (HWND) - input:Dialog-window handle. | ||
:Dialog-window handle. | ;msg (ULONG) - input:Message identity. | ||
;mp1 (MPARAM) - input:Parameter 1. | |||
;msg (ULONG) - input | ;mp2 (MPARAM) - input:Parameter 2. | ||
:Message identity. | |||
;mp1 (MPARAM) - input | |||
:Parameter 1. | |||
;mp2 (MPARAM) - input | |||
:Parameter 2. | |||
==Returns== | ==Returns== | ||
;mresReply (MRESULT) - returns | ;mresReply (MRESULT) - returns:Message-return data. | ||
:Message-return data. | |||
==Remarks== | ==Remarks== | ||
All unprocessed messages in a custom dialog procedure should be passed to the default file dialog procedure so that the dialog can implement its default behavior. | All unprocessed messages in a custom dialog procedure should be passed to the default file dialog procedure so that the dialog can implement its default behavior. | ||
==Example Code== | ==Example Code== | ||
Line 46: | Line 38: | ||
} | } | ||
} | } | ||
</pre> | </pre> | ||
Definition | Definition | ||
<pre> | <pre> | ||
Line 62: | Line 52: | ||
mresReply = WinDefFileDlgProc(hwnd, msg, mp1, mp2); | mresReply = WinDefFileDlgProc(hwnd, msg, mp1, mp2); | ||
</pre> | </pre> | ||
[[Category:Win]] | [[Category:Win]] |
Latest revision as of 10:17, 5 April 2025
This function is the default dialog procedure for the file dialog.
Syntax
WinDefFileDlgProc(hwnd, msg, mp1, mp2)
Parameters
- hwnd (HWND) - input
- Dialog-window handle.
- msg (ULONG) - input
- Message identity.
- mp1 (MPARAM) - input
- Parameter 1.
- mp2 (MPARAM) - input
- Parameter 2.
Returns
- mresReply (MRESULT) - returns
- Message-return data.
Remarks
All unprocessed messages in a custom dialog procedure should be passed to the default file dialog procedure so that the dialog can implement its default behavior.
Example Code
This example uses the default dialog procedure for the file dialog to cause default processing of unprocessed dialog messages.
#define INCL_WINSTDFILE /* Window Standard File Functions */ #include <os2.h> MRESULT MyFileDlgProc(HWND hwnd, ULONG msg, MPARAM mpParam1, MPARAM mpParam2) { switch(msg) { /**************************************************************/ /* Process user-supported messages */ /**************************************************************/ . . . default: return (WinDefFileDlgProc(hwnd, msg, mpParam1, mpParam2)); } }
Definition
#define INCL_winstdfile #include <os2.h> HWND hwnd; /* Dialog-window handle. */ ULONG msg; /* Message identity. */ MPARAM mp1; /* Parameter 1. */ MPARAM mp2; /* Parameter 2. */ MRESULT mresReply; /* Message-return data. */ mresReply = WinDefFileDlgProc(hwnd, msg, mp1, mp2);