ReactOS  0.4.15-dev-3440-g915569a
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  ,
UINT  ,
WPARAM  ,
LPARAM   
)

Definition at line 1349 of file framewnd.c.

1350 {
1351  RECT rc;
1352  switch (message)
1353  {
1354  case WM_CREATE:
1355  // For now, the Help dialog item is disabled because of lacking of HTML Help support
1357  GetClientRect(hWnd, &rc);
1359  rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
1360  hWnd, (HMENU)0, hInst, 0);
1361  break;
1362  case WM_COMMAND:
1365  break;
1366  case WM_ACTIVATE:
1367  if (LOWORD(hWnd) && g_pChildWnd)
1369  break;
1370  case WM_SIZE:
1372  break;
1373  case WM_TIMER:
1374  break;
1375  case WM_INITMENU:
1376  OnInitMenu(hWnd);
1377  break;
1378  case WM_ENTERMENULOOP:
1380  break;
1381  case WM_EXITMENULOOP:
1383  break;
1384  case WM_MENUSELECT:
1386  break;
1387  case WM_SYSCOLORCHANGE:
1388  /* Forward WM_SYSCOLORCHANGE to common controls */
1391  break;
1392  case WM_DESTROY:
1394  SaveSettings();
1395  PostQuitMessage(0);
1396  default:
1398  }
1399  return 0;
1400 }
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1613
Definition: tftpd.h:59
ChildWnd * g_pChildWnd
Definition: childwnd.c:23
#define MF_BYCOMMAND
Definition: winuser.h:202
static void OnExitMenuLoop(HWND hWnd)
Definition: framewnd.c:136
static void resize_frame_client(HWND hWnd)
Definition: framewnd.c:62
#define HELP_QUIT
Definition: winuser.h:2394
HWND hTreeWnd
Definition: main.h:61
HWND hListWnd
Definition: main.h:62
HWND hWnd
Definition: settings.c:17
LONG top
Definition: windef.h:307
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: framewnd.c:144
HWND WINAPI SetFocus(_In_opt_ HWND)
#define WS_CHILD
Definition: pedump.c:617
LONG left
Definition: windef.h:306
#define ID_HELP_HELPTOPICS
Definition: resource.h:77
LONG right
Definition: windef.h:308
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
void SaveSettings(void)
Definition: settings.c:115
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define WM_ENTERMENULOOP
Definition: winuser.h:1791
#define WM_MENUSELECT
Definition: winuser.h:1734
#define WM_EXITMENULOOP
Definition: winuser.h:1792
#define WM_DESTROY
Definition: winuser.h:1596
static void OnEnterMenuLoop(HWND hWnd)
Definition: framewnd.c:124
#define WM_SIZE
Definition: winuser.h:1598
HWND hWnd
Definition: main.h:60
#define WM_TIMER
Definition: winuser.h:1729
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: framewnd.c:1030
static void OnInitMenu(HWND hWnd)
Definition: framewnd.c:72
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)
WCHAR szChildClass[MAX_LOADSTRING]
Definition: main.c:40
#define WM_COMMAND
Definition: winuser.h:1727
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HINSTANCE hInst
Definition: dxdiag.c:13
#define WM_INITMENU
Definition: winuser.h:1732
#define WM_ACTIVATE
Definition: winuser.h:1599
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define NULL
Definition: types.h:112
LPCWSTR getAppName(void)
Definition: regedit.c:61
BOOL WINAPI WinHelpW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_ UINT, _In_ ULONG_PTR)
#define WM_CREATE
Definition: winuser.h:1595
#define HIWORD(l)
Definition: typedefs.h:247
LONG bottom
Definition: windef.h:309
#define MF_GRAYED
Definition: winuser.h:129
#define WS_VISIBLE
Definition: pedump.c:620
HMENU WINAPI GetMenu(_In_ HWND)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)

Referenced by InitInstance().