|
DefFrameProc
The DefFrameProc function provides default processing for any window messages that the window
procedure of a multiple document interface (MDI) frame window does not process.
All window messages that are not explicitly processed by the window procedure
must be passed to the DefFrameProc function, not the DefWindowProc function.
LRESULT DefFrameProc(
HWND hWnd,
| // handle to MDI frame window
| HWND hWndMDIClient,
| // handle to MDI client window
| UINT uMsg,
| // message
| WPARAM wParam,
| // first message parameter
| LPARAM lParam
| // second message parameter
| );
|
|
Parameters
hWnd
Identifies the MDI frame window.
hWndMDIClient
Identifies the MDI client window.
uMsg
Specifies the message to be processed.
wParam
Specifies additional message-specific information.
lParam
Specifies additional message-specific information.
Return Values
The return value specifies the result of the message processing and depends on
the message. If the hWndMDIClient parameter is NULL, the return value is the same as for the DefWindowProc function.
Remarks
When an application's window procedure does not handle a message, it typically
passes the message to the DefWindowProc function to process the message. MDI applications use the DefFrameProc and DefMDIChildProc functions instead of DefWindowProc to provide default message processing. All messages that an application would
usually pass to DefWindowProc (such as nonclient messages and the WM_SETTEXT message) should be passed to DefFrameProc instead. The DefFrameProc function also handles the following messages:
Message
| Response
| WM_COMMAND
| Activates the MDI child window that the user chooses. This message is sent
when the user chooses an MDI child window from the Window menu of the MDI frame
window. The window identifier accompanying this message identifies the MDI child
window to be activated.
| WM_MENUCHAR
| Opens the window menu of the active MDI child window when the user presses the ALT+ (minus) key combination.
| WM_SETFOCUS
| Passes the keyboard focus to the MDI client window, which in turn passes it to
the active MDI child window.
| WM_SIZE
| Resizes the MDI client window to fit in the new frame window's client area. If
the frame window procedure sizes the MDI client window to a different size, it
should not pass the message to the DefWindowProc function.
|
See Also
DefMDIChildProc, DefWindowProc, WM_SETTEXT
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|