ReactOS 0.4.16-dev-1019-g2c2cdfd
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 1440 of file framewnd.c.

1441{
1442 RECT rc;
1443 switch (message)
1444 {
1445 case WM_CREATE:
1446 // For now, the Help dialog item is disabled because of lacking of HTML Help support
1448 GetClientRect(hWnd, &rc);
1451 rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
1452 hWnd, (HMENU)0, hInst, 0);
1453 break;
1454 case WM_COMMAND:
1457 break;
1458 case WM_ACTIVATE:
1461 break;
1462 case WM_SIZE:
1464 break;
1465 case WM_INITMENU:
1467 break;
1468 case WM_ENTERMENULOOP:
1470 break;
1471 case WM_EXITMENULOOP:
1473 break;
1474 case WM_MENUSELECT:
1476 break;
1477 case WM_SYSCOLORCHANGE:
1478 /* Forward WM_SYSCOLORCHANGE to common controls */
1481 break;
1482 case WM_DESTROY:
1483 WinHelpW(hWnd, L"regedit", HELP_QUIT, 0);
1484 SaveSettings();
1485 PostQuitMessage(0);
1486 default:
1488 }
1489 return 0;
1490}
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:1127
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:2425
#define WM_CREATE
Definition: winuser.h:1619
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SIZE
Definition: winuser.h:1622
#define WM_COMMAND
Definition: winuser.h:1751
BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR)
#define WM_INITMENU
Definition: winuser.h:1756
#define WA_INACTIVE
Definition: winuser.h:2633
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1637
#define WM_ACTIVATE
Definition: winuser.h:1623
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define WM_ENTERMENULOOP
Definition: winuser.h:1815
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:1816
#define WM_DESTROY
Definition: winuser.h:1620
#define WM_MENUSELECT
Definition: winuser.h:1758
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().