ReactOS 0.4.16-dev-1188-gc03d779
framewnd.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

LRESULT CALLBACK FrameWndProc (HWND, UINT, WPARAM, LPARAM)
 

Function Documentation

◆ FrameWndProc()

LRESULT CALLBACK FrameWndProc ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

PURPOSE: Processes messages for the main frame window

WM_COMMAND - process the application menu WM_DESTROY - post a quit message and return

Definition at line 1463 of file framewnd.c.

1464{
1465 RECT rc;
1466 switch (message)
1467 {
1468 case WM_CREATE:
1469 // For now, the Help dialog item is disabled because of lacking of HTML Help support
1471 GetClientRect(hWnd, &rc);
1474 rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
1475 hWnd, (HMENU)0, hInst, 0);
1476 break;
1477 case WM_COMMAND:
1480 break;
1481 case WM_ACTIVATE:
1484 break;
1485 case WM_SIZE:
1487 break;
1488 case WM_INITMENU:
1490 break;
1491 case WM_ENTERMENULOOP:
1493 break;
1494 case WM_EXITMENULOOP:
1496 break;
1497 case WM_MENUSELECT:
1499 break;
1500 case WM_SYSCOLORCHANGE:
1501 /* Forward WM_SYSCOLORCHANGE to common controls */
1504 break;
1505 case WM_DESTROY:
1506 WinHelpW(hWnd, L"regedit", HELP_QUIT, 0);
1507 SaveSettings();
1508 PostQuitMessage(0);
1509 default:
1511 }
1512 return 0;
1513}
void SaveSettings(void)
Definition: settings.c:115
HWND hWnd
Definition: settings.c:17
ChildWnd * g_pChildWnd
Definition: childwnd.c:13
static void resize_frame_client(HWND hWnd)
Definition: framewnd.c:42
static void OnEnterMenuLoop(HWND hWnd)
Definition: framewnd.c:109
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: framewnd.c:129
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: framewnd.c:1150
static void OnExitMenuLoop(HWND hWnd)
Definition: framewnd.c:121
static void OnInitMenu(HWND hWnd)
Definition: framewnd.c:50
WCHAR szChildClass[MAX_LOADSTRING]
Definition: main.c:32
#define ID_HELP_HELPTOPICS
Definition: resource.h:60
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
HINSTANCE hInst
Definition: dxdiag.c:13
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define L(x)
Definition: ntvdm.h:50
#define LOWORD(l)
Definition: pedump.c:82
#define WS_CHILD
Definition: pedump.c:617
#define WS_VISIBLE
Definition: pedump.c:620
#define WS_CLIPSIBLINGS
Definition: pedump.c:618
#define WS_CLIPCHILDREN
Definition: pedump.c:619
HWND hTreeWnd
Definition: main.h:50
HWND hListWnd
Definition: main.h:51
HWND hWnd
Definition: main.h:49
Definition: tftpd.h:60
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
#define HIWORD(l)
Definition: typedefs.h:247
#define MF_BYCOMMAND
Definition: winuser.h:202
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define HELP_QUIT
Definition: winuser.h:2433
#define WM_CREATE
Definition: winuser.h:1627
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SIZE
Definition: winuser.h:1630
#define WM_COMMAND
Definition: winuser.h:1759
BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR)
#define WM_INITMENU
Definition: winuser.h:1764
#define WA_INACTIVE
Definition: winuser.h:2641
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1645
#define WM_ACTIVATE
Definition: winuser.h:1631
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define WM_ENTERMENULOOP
Definition: winuser.h:1823
HWND WINAPI SetFocus(_In_opt_ HWND)
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
#define WM_EXITMENULOOP
Definition: winuser.h:1824
#define WM_DESTROY
Definition: winuser.h:1628
#define WM_MENUSELECT
Definition: winuser.h:1766
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HMENU WINAPI GetMenu(_In_ HWND)
#define MF_GRAYED
Definition: winuser.h:129

Referenced by InitInstance().