ReactOS 0.4.15-dev-8434-g155a7c7
gui.h File Reference
#include "rapps.h"
#include "rosui.h"
#include "crichedit.h"
#include "asyncinet.h"
#include "appview.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 <ui/rosctrls.h>
#include <gdiplus.h>
#include <math.h>
Include dependency graph for gui.h:

Go to the source code of this file.

Classes

class  CSideTreeView
 
class  CMainWindow
 

Macros

#define SEARCH_TIMER_ID   'SR'
 
#define TREEVIEW_ICON_SIZE   24
 

Functions

VOID MainWindowLoop (CMainWindow *wnd, INT nShowCmd)
 

Macro Definition Documentation

◆ SEARCH_TIMER_ID

#define SEARCH_TIMER_ID   'SR'

Definition at line 21 of file gui.h.

◆ TREEVIEW_ICON_SIZE

#define TREEVIEW_ICON_SIZE   24

Definition at line 22 of file gui.h.

Function Documentation

◆ MainWindowLoop()

VOID MainWindowLoop ( CMainWindow wnd,
INT  nShowCmd 
)

Definition at line 814 of file gui.cpp.

815{
816 HACCEL KeyBrd;
817 MSG Msg;
818
819 hMainWnd = wnd->Create();
820 if (!hMainWnd)
821 return;
822
823 /* Maximize it if we must */
825 wnd->UpdateWindow();
826
827 /* Load the menu hotkeys */
829
830 /* Message Loop */
831 while (GetMessageW(&Msg, NULL, 0, 0))
832 {
833 if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
834 {
835 if (Msg.message == WM_CHAR && Msg.wParam == VK_TAB)
836 {
837 // Move backwards if shift is held down
838 int direction = (GetKeyState(VK_SHIFT) & 0x8000) ? -1 : 1;
839
840 wnd->HandleTabOrder(direction);
841 continue;
842 }
843
846 }
847 }
848}
#define HOTKEYS
Definition: resource.h:235
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:20
BOOL UpdateWindow()
Definition: atlwin.h:1345
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1333
void HandleTabOrder(int direction)
Definition: gui.cpp:781
HWND Create()
Definition: gui.cpp:702
struct @1628 Msg[]
#define NULL
Definition: types.h:112
HWND hMainWnd
Definition: magnifier.c:32
BOOL Maximized
Definition: settings.h:13
BOOL bSaveWndPos
Definition: settings.h:7
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1829
#define VK_TAB
Definition: winuser.h:2199
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
#define WM_CHAR
Definition: winuser.h:1717
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
#define VK_SHIFT
Definition: winuser.h:2202
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define SW_MAXIMIZE
Definition: winuser.h:772
SHORT WINAPI GetKeyState(_In_ int)

Referenced by ParseCmdAndExecute().