ReactOS  0.4.15-dev-1206-g731eddf
gui.cpp File Reference
#include "rapps.h"
#include "rosui.h"
#include "crichedit.h"
#include "appview.h"
#include "asyncinet.h"
#include "misc.h"
#include "gui.h"
#include "winmain.h"
#include <shlobj_undoc.h>
#include <shlguid_undoc.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atltypes.h>
#include <atlwin.h>
#include <wininet.h>
#include <shellutils.h>
#include <rosctrls.h>
#include <gdiplus.h>
#include <math.h>
Include dependency graph for gui.cpp:

Go to the source code of this file.

Macros

#define SEARCH_TIMER_ID   'SR'
 
#define TREEVIEW_ICON_SIZE   24
 

Functions

VOID MainWindowLoop (INT nShowCmd)
 

Macro Definition Documentation

◆ SEARCH_TIMER_ID

#define SEARCH_TIMER_ID   'SR'

Definition at line 32 of file gui.cpp.

◆ TREEVIEW_ICON_SIZE

#define TREEVIEW_ICON_SIZE   24

Definition at line 33 of file gui.cpp.

Function Documentation

◆ MainWindowLoop()

VOID MainWindowLoop ( INT  nShowCmd)

Definition at line 862 of file gui.cpp.

863 {
864  HACCEL KeyBrd;
865  MSG Msg;
866 
867  CMainWindow* wnd = new CMainWindow();
868  if (!wnd)
869  return;
870 
871  hMainWnd = wnd->Create();
872  if (!hMainWnd)
873  return;
874 
875  /* Maximize it if we must */
877  wnd->UpdateWindow();
878 
879  /* Load the menu hotkeys */
881 
882  /* Message Loop */
883  while (GetMessageW(&Msg, NULL, 0, 0))
884  {
885  if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
886  {
887  if (Msg.message == WM_CHAR &&
888  Msg.wParam == VK_TAB)
889  {
890  // Move backwards if shift is held down
891  int direction = (GetKeyState(VK_SHIFT) & 0x8000) ? -1 : 1;
892 
893  wnd->HandleTabOrder(direction);
894  continue;
895  }
896 
899  }
900  }
901 
902  delete wnd;
903 }
BOOL WINAPI TranslateMessage(_In_ const MSG *)
#define WM_CHAR
Definition: winuser.h:1699
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
struct @1610 Msg[]
#define VK_TAB
Definition: winuser.h:2174
BOOL Maximized
Definition: settings.h:13
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
#define VK_SHIFT
Definition: winuser.h:2177
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
smooth NULL
Definition: ftsmooth.c:416
SHORT WINAPI GetKeyState(_In_ int)
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:20
void HandleTabOrder(int direction)
Definition: gui.cpp:828
BOOL UpdateWindow()
Definition: atlwin.h:1277
#define HOTKEYS
Definition: resource.h:232
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
HWND hMainWnd
Definition: magnifier.c:32
HWND Create()
Definition: gui.cpp:732
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1265
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
BOOL bSaveWndPos
Definition: settings.h:7
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define SW_MAXIMIZE
Definition: winuser.h:766

Referenced by ParseCmdAndExecute().