ReactOS  0.4.14-dev-315-gbb6fece
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 1304 of file framewnd.c.

1305 {
1306  RECT rc;
1307  switch (message)
1308  {
1309  case WM_CREATE:
1310  // For now, the Help dialog item is disabled because of lacking of HTML Help support
1312  GetClientRect(hWnd, &rc);
1314  rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
1315  hWnd, (HMENU)0, hInst, 0);
1316  break;
1317  case WM_COMMAND:
1320  break;
1321  case WM_ACTIVATE:
1322  if (LOWORD(hWnd) && g_pChildWnd)
1324  break;
1325  case WM_SIZE:
1327  break;
1328  case WM_TIMER:
1329  break;
1330  case WM_INITMENU:
1331  OnInitMenu(hWnd);
1332  break;
1333  case WM_ENTERMENULOOP:
1335  break;
1336  case WM_EXITMENULOOP:
1338  break;
1339  case WM_MENUSELECT:
1341  break;
1342  case WM_SYSCOLORCHANGE:
1343  /* Forward WM_SYSCOLORCHANGE to common controls */
1346  break;
1347  case WM_DESTROY:
1349  SaveSettings();
1350  PostQuitMessage(0);
1351  default:
1353  }
1354  return 0;
1355 }
#define WM_SYSCOLORCHANGE
Definition: winuser.h:1608
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:135
static void resize_frame_client(HWND hWnd)
Definition: framewnd.c:61
#define HELP_QUIT
Definition: winuser.h:2389
HWND hTreeWnd
Definition: main.h:60
HWND hListWnd
Definition: main.h:61
HWND hWnd
Definition: settings.c:17
LONG top
Definition: windef.h:292
static void OnMenuSelect(HWND hWnd, UINT nItemID, UINT nFlags, HMENU hSysMenu)
Definition: framewnd.c:143
HWND WINAPI SetFocus(_In_opt_ HWND)
#define WS_CHILD
Definition: pedump.c:617
LONG left
Definition: windef.h:291
#define ID_HELP_HELPTOPICS
Definition: resource.h:76
LONG right
Definition: windef.h:293
WPARAM wParam
Definition: combotst.c:138
LRESULT WINAPI DefWindowProcW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
void SaveSettings(void)
Definition: settings.c:113
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define WM_ENTERMENULOOP
Definition: winuser.h:1786
#define WM_MENUSELECT
Definition: winuser.h:1729
#define WM_EXITMENULOOP
Definition: winuser.h:1787
smooth NULL
Definition: ftsmooth.c:416
#define WM_DESTROY
Definition: winuser.h:1591
static void OnEnterMenuLoop(HWND hWnd)
Definition: framewnd.c:123
#define WM_SIZE
Definition: winuser.h:1593
HWND hWnd
Definition: main.h:59
#define WM_TIMER
Definition: winuser.h:1724
static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
Definition: framewnd.c:1029
static void OnInitMenu(HWND hWnd)
Definition: framewnd.c:71
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:1722
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
HINSTANCE hInst
Definition: dxdiag.c:13
#define WM_INITMENU
Definition: winuser.h:1727
#define WM_ACTIVATE
Definition: winuser.h:1594
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
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:1590
#define HIWORD(l)
Definition: typedefs.h:246
LONG bottom
Definition: windef.h:294
#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().