please dont rip this site Prev Next

DefFrameProc info  Overview  Group

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 


file: /Techref/os/win/api/win32/func/src/f14_16.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/14 12:18,
TOP NEW HELP FIND: 
44.211.24.175:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://www.piclist.com/techref/os/win/api/win32/func/src/f14_16.htm"> DefFrameProc</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .