Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

mdi.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "win.h"
#include "heap.h"
#include "controls.h"
#include "user.h"
#include "nonclient.h"
#include "struct32.h"
#include "debugtools.h"
#include "dlgs.h"

Include dependency graph for mdi.c:

Include dependency graph

Go to the source code of this file.

Compounds

struct  MDICLIENTINFO

Defines

#define MDI_MAXLISTLENGTH   0x40
#define MDI_MAXTITLELENGTH   0xa1
#define MDI_NOFRAMEREPAINT   0
#define MDI_REPAINTFRAMENOW   1
#define MDI_REPAINTFRAME   2
#define WM_MDICALCCHILDSCROLL   0x10ac
#define MDI_MOREWINDOWSLIMIT   9
#define MDI_IDC_LISTBOX   100
#define MDI_IDS_MOREWINDOWS   13
#define MDIF_NEEDUPDATE   0x0001
#define ccs   ((LPCLIENTCREATESTRUCT)cs->lpCreateParams)

Functions

 DEFAULT_DEBUG_CHANNEL (mdi)
void MDI_UpdateFrameText (HWND, HWND, BOOL, LPCWSTR)
BOOL MDI_AugmentFrameMenu (HWND, HWND)
BOOL MDI_RestoreFrameMenu (HWND, HWND)
LONG MDI_ChildActivate (HWND, HWND)
HWND MDI_MoreWindowsDialog (HWND)
void MDI_SwapMenuItems (HWND, UINT, UINT)
LRESULT WINAPI MDIClientWndProcA (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI MDIClientWndProcW (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
HWND MDI_GetChildByID (HWND hwnd, UINT id)
void MDI_PostUpdate (HWND hwnd, MDICLIENTINFO *ci, WORD recalc)
MDICLIENTINFOget_client_info (HWND client)
void MDI_MenuModifyItem (HWND client, HWND hWndChild)
BOOL MDI_MenuDeleteItem (HWND client, HWND hWndChild)
HWND MDI_GetWindow (MDICLIENTINFO *clientInfo, HWND hWnd, BOOL bNext, DWORD dwStyleMask)
void MDI_CalcDefaultChildPos (HWND hwnd, WORD n, LPPOINT lpPos, INT delta)
LRESULT MDISetMenu (HWND hwnd, HMENU hmenuFrame, HMENU hmenuWindow)
LRESULT MDIRefreshMenu (HWND hwnd, HMENU hmenuFrame, HMENU hmenuWindow)
HWND MDICreateChild (HWND parent, MDICLIENTINFO *ci, LPMDICREATESTRUCTA cs, BOOL unicode)
void MDI_ChildGetMinMaxInfo (HWND client, HWND hwnd, MINMAXINFO *lpMinMax)
void MDI_SwitchActiveChild (HWND clientHwnd, HWND childHwnd, BOOL bNextWindow)
LRESULT MDIDestroyChild (HWND parent, MDICLIENTINFO *ci, HWND child, BOOL flagDestroy)
HBITMAP CreateMDIMenuBitmap (void)
LONG MDICascade (HWND client, MDICLIENTINFO *ci)
void MDITile (HWND client, MDICLIENTINFO *ci, WPARAM wParam)
LRESULT MDIClientWndProc_common (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL unicode)
LRESULT WINAPI DefFrameProc16 (HWND16 hwnd, HWND16 hwndMDIClient, UINT16 message, WPARAM16 wParam, LPARAM lParam)
LRESULT WINAPI DefFrameProcA (HWND hwnd, HWND hwndMDIClient, UINT message, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI DefFrameProcW (HWND hwnd, HWND hwndMDIClient, UINT message, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI DefMDIChildProc16 (HWND16 hwnd, UINT16 message, WPARAM16 wParam, LPARAM lParam)
LRESULT WINAPI DefMDIChildProcA (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
LRESULT WINAPI DefMDIChildProcW (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
HWND WINAPI CreateMDIWindowA (LPCSTR lpClassName, LPCSTR lpWindowName, DWORD dwStyle, INT X, INT Y, INT nWidth, INT nHeight, HWND hWndParent, HINSTANCE hInstance, LPARAM lParam)
HWND WINAPI CreateMDIWindowW (LPCWSTR lpClassName, LPCWSTR lpWindowName, DWORD dwStyle, INT X, INT Y, INT nWidth, INT nHeight, HWND hWndParent, HINSTANCE hInstance, LPARAM lParam)
BOOL16 WINAPI TranslateMDISysAccel16 (HWND16 hwndClient, LPMSG16 msg)
BOOL WINAPI TranslateMDISysAccel (HWND hwndClient, LPMSG msg)
void WINAPI CalcChildScroll16 (HWND16 hwnd, WORD scroll)
void WINAPI CalcChildScroll (HWND hwnd, INT scroll)
void WINAPI ScrollChildren16 (HWND16 hWnd, UINT16 uMsg, WPARAM16 wParam, LPARAM lParam)
void WINAPI ScrollChildren (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
WORD WINAPI CascadeWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect, UINT cKids, const HWND *lpKids)
WORD WINAPI TileWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect, UINT cKids, const HWND *lpKids)
BOOL WINAPI MDI_MoreWindowsDlgProc (HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam)

Variables

HBITMAP hBmpClose = 0
HBITMAP hBmpRestore = 0
const struct builtin_class_descr MDICLIENT_builtin_class


Define Documentation

#define MDI_MAXLISTLENGTH   0x40
 

Definition at line 101 of file mdi.c.

#define MDI_MAXTITLELENGTH   0xa1
 

Definition at line 102 of file mdi.c.

#define MDI_NOFRAMEREPAINT   0
 

Definition at line 104 of file mdi.c.

#define MDI_REPAINTFRAMENOW   1
 

Definition at line 105 of file mdi.c.

#define MDI_REPAINTFRAME   2
 

Definition at line 106 of file mdi.c.

#define WM_MDICALCCHILDSCROLL   0x10ac
 

Definition at line 108 of file mdi.c.

#define MDI_MOREWINDOWSLIMIT   9
 

Definition at line 111 of file mdi.c.

#define MDI_IDC_LISTBOX   100
 

Definition at line 113 of file mdi.c.

#define MDI_IDS_MOREWINDOWS   13
 

Definition at line 114 of file mdi.c.

#define MDIF_NEEDUPDATE   0x0001
 

Definition at line 116 of file mdi.c.

#define ccs   ((LPCLIENTCREATESTRUCT)cs->lpCreateParams)
 


Function Documentation

DEFAULT_DEBUG_CHANNEL mdi   
 

void MDI_UpdateFrameText HWND    frame,
HWND    hClient,
BOOL    repaint,
LPCWSTR    lpTitle
[static]
 

Definition at line 1192 of file mdi.c.

Referenced by DefFrameProcA(), DefFrameProcW(), DefMDIChildProcA(), DefMDIChildProcW(), MDIClientWndProc_common(), and MDIDestroyChild().

BOOL MDI_AugmentFrameMenu HWND    frame,
HWND    hChild
[static]
 

Definition at line 1023 of file mdi.c.

Referenced by DefMDIChildProcW(), and MDISetMenu().

BOOL MDI_RestoreFrameMenu HWND    frame,
HWND    hChild
[static]
 

Definition at line 1131 of file mdi.c.

Referenced by DefMDIChildProcW(), MDIClientWndProc_common(), MDIDestroyChild(), and MDISetMenu().

LONG MDI_ChildActivate HWND    client,
HWND    child
[static]
 

Definition at line 750 of file mdi.c.

Referenced by DefMDIChildProcW(), and MDIDestroyChild().

HWND MDI_MoreWindowsDialog HWND    hwnd [static]
 

Definition at line 2315 of file mdi.c.

Referenced by DefFrameProcW().

void MDI_SwapMenuItems HWND    parent,
UINT    pos1,
UINT    pos2
[static]
 

Definition at line 2351 of file mdi.c.

Referenced by MDICreateChild(), and MDI_ChildActivate().

LRESULT WINAPI MDIClientWndProcA HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
[static]
 

Definition at line 1465 of file mdi.c.

LRESULT WINAPI MDIClientWndProcW HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
[static]
 

Definition at line 1475 of file mdi.c.

HWND MDI_GetChildByID HWND    hwnd,
UINT    id
[static]
 

Definition at line 155 of file mdi.c.

Referenced by DefFrameProcW(), and MDI_MenuDeleteItem().

void MDI_PostUpdate HWND    hwnd,
MDICLIENTINFO   ci,
WORD    recalc
[static]
 

Definition at line 171 of file mdi.c.

Referenced by DefMDIChildProcW(), MDIClientWndProc_common(), and MDIDestroyChild().

MDICLIENTINFO* get_client_info HWND    client [static]
 

Definition at line 197 of file mdi.c.

void MDI_MenuModifyItem HWND    client,
HWND    hWndChild
[static]
 

Definition at line 215 of file mdi.c.

Referenced by DefMDIChildProcA(), DefMDIChildProcW(), MDICreateChild(), and MDI_ChildActivate().

BOOL MDI_MenuDeleteItem HWND    client,
HWND    hWndChild
[static]
 

Definition at line 238 of file mdi.c.

Referenced by MDIDestroyChild().

HWND MDI_GetWindow MDICLIENTINFO   clientInfo,
HWND    hWnd,
BOOL    bNext,
DWORD    dwStyleMask
[static]
 

Definition at line 294 of file mdi.c.

Referenced by DefMDIChildProcW(), and MDI_SwitchActiveChild().

void MDI_CalcDefaultChildPos HWND    hwnd,
WORD    n,
LPPOINT    lpPos,
INT    delta
[static]
 

Definition at line 335 of file mdi.c.

Referenced by MDICascade(), and MDICreateChild().

LRESULT MDISetMenu HWND    hwnd,
HMENU    hmenuFrame,
HMENU    hmenuWindow
[static]
 

Definition at line 355 of file mdi.c.

Referenced by MDIClientWndProc_common().

LRESULT MDIRefreshMenu HWND    hwnd,
HMENU    hmenuFrame,
HMENU    hmenuWindow
[static]
 

Definition at line 470 of file mdi.c.

Referenced by MDIClientWndProc_common().

HWND MDICreateChild HWND    parent,
MDICLIENTINFO   ci,
LPMDICREATESTRUCTA    cs,
BOOL    unicode
[static]
 

Definition at line 491 of file mdi.c.

Referenced by MDIClientWndProc_common().

void MDI_ChildGetMinMaxInfo HWND    client,
HWND    hwnd,
MINMAXINFO *    lpMinMax
[static]
 

Definition at line 654 of file mdi.c.

Referenced by DefMDIChildProcW().

void MDI_SwitchActiveChild HWND    clientHwnd,
HWND    childHwnd,
BOOL    bNextWindow
[static]
 

Definition at line 678 of file mdi.c.

Referenced by MDIClientWndProc_common(), and MDIDestroyChild().

LRESULT MDIDestroyChild HWND    parent,
MDICLIENTINFO   ci,
HWND    child,
BOOL    flagDestroy
[static]
 

Definition at line 708 of file mdi.c.

Referenced by MDIClientWndProc_common().

HBITMAP CreateMDIMenuBitmap void    [static]
 

Definition at line 849 of file mdi.c.

Referenced by MDIClientWndProc_common().

LONG MDICascade HWND    client,
MDICLIENTINFO   ci
[static]
 

Definition at line 883 of file mdi.c.

Referenced by MDIClientWndProc_common().

void MDITile HWND    client,
MDICLIENTINFO   ci,
WPARAM    wParam
[static]
 

Definition at line 937 of file mdi.c.

Referenced by MDIClientWndProc_common().

LRESULT MDIClientWndProc_common HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam,
BOOL    unicode
[static]
 

Definition at line 1259 of file mdi.c.

Referenced by MDIClientWndProcW().

LRESULT WINAPI DefFrameProc16 HWND16    hwnd,
HWND16    hwndMDIClient,
UINT16    message,
WPARAM16    wParam,
LPARAM    lParam
 

Definition at line 1485 of file mdi.c.

LRESULT WINAPI DefFrameProcA HWND    hwnd,
HWND    hwndMDIClient,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1514 of file mdi.c.

Referenced by DefFrameProc16().

LRESULT WINAPI DefFrameProcW HWND    hwnd,
HWND    hwndMDIClient,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1544 of file mdi.c.

Referenced by DefFrameProc16(), and DefFrameProcA().

LRESULT WINAPI DefMDIChildProc16 HWND16    hwnd,
UINT16    message,
WPARAM16    wParam,
LPARAM    lParam
 

Definition at line 1650 of file mdi.c.

LRESULT WINAPI DefMDIChildProcA HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1690 of file mdi.c.

Referenced by DefMDIChildProc16().

LRESULT WINAPI DefMDIChildProcW HWND    hwnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 1727 of file mdi.c.

Referenced by DefMDIChildProc16(), and DefMDIChildProcA().

HWND WINAPI CreateMDIWindowA LPCSTR    lpClassName,
LPCSTR    lpWindowName,
DWORD    dwStyle,
INT    X,
INT    Y,
INT    nWidth,
INT    nHeight,
HWND    hWndParent,
HINSTANCE    hInstance,
LPARAM    lParam
 

Definition at line 1876 of file mdi.c.

Referenced by CreateWindowExA().

HWND WINAPI CreateMDIWindowW LPCWSTR    lpClassName,
LPCWSTR    lpWindowName,
DWORD    dwStyle,
INT    X,
INT    Y,
INT    nWidth,
INT    nHeight,
HWND    hWndParent,
HINSTANCE    hInstance,
LPARAM    lParam
 

Definition at line 1920 of file mdi.c.

Referenced by CreateWindowExW().

BOOL16 WINAPI TranslateMDISysAccel16 HWND16    hwndClient,
LPMSG16    msg
 

Definition at line 1961 of file mdi.c.

BOOL WINAPI TranslateMDISysAccel HWND    hwndClient,
LPMSG    msg
 

Definition at line 1980 of file mdi.c.

Referenced by TranslateMDISysAccel16().

void WINAPI CalcChildScroll16 HWND16    hwnd,
WORD    scroll
 

Definition at line 2018 of file mdi.c.

void WINAPI CalcChildScroll HWND    hwnd,
INT    scroll
 

Definition at line 2027 of file mdi.c.

Referenced by CalcChildScroll16(), MDIClientWndProc_common(), and ScrollChildren().

void WINAPI ScrollChildren16 HWND16    hWnd,
UINT16    uMsg,
WPARAM16    wParam,
LPARAM    lParam
 

Definition at line 2094 of file mdi.c.

void WINAPI ScrollChildren HWND    hWnd,
UINT    uMsg,
WPARAM    wParam,
LPARAM    lParam
 

Definition at line 2103 of file mdi.c.

Referenced by MDIClientWndProc_common(), and ScrollChildren16().

WORD WINAPI CascadeWindows HWND    hwndParent,
UINT    wFlags,
const LPRECT    lpRect,
UINT    cKids,
const HWND *    lpKids
 

Definition at line 2188 of file mdi.c.

WORD WINAPI TileWindows HWND    hwndParent,
UINT    wFlags,
const LPRECT    lpRect,
UINT    cKids,
const HWND *    lpKids
 

Definition at line 2206 of file mdi.c.

BOOL WINAPI MDI_MoreWindowsDlgProc HWND    hDlg,
UINT    iMsg,
WPARAM    wParam,
LPARAM    lParam
[static]
 

Definition at line 2228 of file mdi.c.


Variable Documentation

HBITMAP hBmpClose = 0 [static]
 

Definition at line 132 of file mdi.c.

HBITMAP hBmpRestore = 0 [static]
 

Definition at line 133 of file mdi.c.

const struct builtin_class_descr MDICLIENT_builtin_class
 

Initial value:

{
    "MDIClient",            
    CS_GLOBALCLASS,         
    MDIClientWndProcA,      
    MDIClientWndProcW,      
    sizeof(MDICLIENTINFO),  
    IDC_ARROWA,             
    COLOR_APPWORKSPACE+1    
}

Definition at line 186 of file mdi.c.


Generated on Wed Jan 23 23:18:57 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001