ReactOS 0.4.15-dev-8241-g63935f8
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 
)

Definition at line 1488 of file framewnd.c.

1489{
1490 RECT rc;
1491 switch (message)
1492 {
1493 case WM_CREATE:
1494 // For now, the Help dialog item is disabled because of lacking of HTML Help support
1496 GetClientRect(hWnd, &rc);
1498 rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
1499 hWnd, (HMENU)0, hInst, 0);
1500 break;
1501 case WM_COMMAND:
1504 break;
1505 case WM_ACTIVATE:
1508 break;
1509 case WM_SIZE:
1511 break;
1512 case WM_TIMER:
1513 break;
1514 case WM_INITMENU:
1516 break;
1517 case WM_ENTERMENULOOP:
1519 break;
1520 case WM_EXITMENULOOP:
1522 break;
1523 case WM_MENUSELECT:
1525 break;
1526 case WM_SYSCOLORCHANGE:
1527 /* Forward WM_SYSCOLORCHANGE to common controls */
1530 break;
1531 case WM_DESTROY:
1532 WinHelpW(hWnd, L"regedit", HELP_QUIT, 0);
1533 SaveSettings();
1534 PostQuitMessage(0);
1535 default:
1537 }
1538 return 0;
1539}
void SaveSettings(void)
Definition: settings.c:115
HWND hWnd
Definition: settings.c:17
ChildWnd * g_pChildWnd
Definition: childwnd.c:24
static void resize_frame_client(HWND hWnd)
Definition: framewnd.c:65
static void OnEnterMenuLoop(HWND hWnd)
Definition: framewnd.c:134
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: framewnd.c:154
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: framewnd.c:1156
static void OnExitMenuLoop(HWND hWnd)
Definition: framewnd.c:146
static void OnInitMenu(HWND hWnd)
Definition: framewnd.c:75
WCHAR szChildClass[MAX_LOADSTRING]
Definition: main.c:45
#define ID_HELP_HELPTOPICS
Definition: resource.h:74
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
HWND hTreeWnd
Definition: main.h:63
HWND hListWnd
Definition: main.h:64
HWND hWnd
Definition: main.h:62
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:2414
#define WM_CREATE
Definition: winuser.h:1608
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define WM_SIZE
Definition: winuser.h:1611
#define WM_COMMAND
Definition: winuser.h:1740
BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR)
#define WM_INITMENU
Definition: winuser.h:1745
#define WA_INACTIVE
Definition: winuser.h:2622
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1626
#define WM_ACTIVATE
Definition: winuser.h:1612
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
#define WM_ENTERMENULOOP
Definition: winuser.h:1804
HWND WINAPI SetFocus(_In_opt_ HWND)
#define WM_TIMER
Definition: winuser.h:1742
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:1805
#define WM_DESTROY
Definition: winuser.h:1609
#define WM_MENUSELECT
Definition: winuser.h:1747
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().