ReactOS  0.4.14-dev-49-gfb4591c
dialogs.h File Reference
#include "available.h"
#include <windef.h>
#include <atlsimpcoll.h>
Include dependency graph for dialogs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

VOID CreateSettingsDlg (HWND hwnd)
 
VOID ShowAboutDialog ()
 
VOID ShowMainWindow (INT nShowCmd)
 
VOID DownloadApplicationsDB (LPCWSTR lpUrl)
 
BOOL DownloadApplication (CAvailableApplicationInfo *pAppInfo, BOOL bIsModal)
 
BOOL DownloadListOfApplications (const ATL::CSimpleArray< CAvailableApplicationInfo > &AppsList, BOOL bIsModal)
 

Function Documentation

◆ CreateSettingsDlg()

VOID CreateSettingsDlg ( HWND  hwnd)

Definition at line 213 of file settingsdlg.cpp.

214 {
217  hwnd,
219 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define IDD_SETTINGS_DIALOG
Definition: resource.h:59
INT_PTR CALLBACK SettingsDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: settingsdlg.cpp:82
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4300
HINSTANCE hInst
Definition: dxdiag.c:13
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ DownloadApplication()

BOOL DownloadApplication ( CAvailableApplicationInfo pAppInfo,
BOOL  bIsModal 
)

Definition at line 885 of file loaddlg.cpp.

886 {
887  if (!pAppInfo)
888  return FALSE;
889 
890  CDownloadManager::Download(*pAppInfo, bIsModal);
891  return TRUE;
892 }
#define TRUE
Definition: types.h:120
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:369

Referenced by CMainWindow::OnCommand().

◆ DownloadApplicationsDB()

VOID DownloadApplicationsDB ( LPCWSTR  lpUrl)

Definition at line 894 of file loaddlg.cpp.

895 {
896  static DownloadInfo DatabaseDLInfo;
897  DatabaseDLInfo.szUrl = lpUrl;
898  DatabaseDLInfo.szName.LoadStringW(IDS_DL_DIALOG_DB_DISP);
899  CDownloadManager::Download(DatabaseDLInfo, TRUE);
900 }
#define TRUE
Definition: types.h:120
#define IDS_DL_DIALOG_DB_DISP
Definition: resource.h:206
static VOID Download(const DownloadInfo &DLInfo, BOOL bIsModal=FALSE)
Definition: loaddlg.cpp:369
ATL::CStringW szUrl
Definition: loaddlg.cpp:80
ATL::CStringW szName
Definition: loaddlg.cpp:81

Referenced by CAvailableApps::UpdateAppsDB().

◆ DownloadListOfApplications()

BOOL DownloadListOfApplications ( const ATL::CSimpleArray< CAvailableApplicationInfo > &  AppsList,
BOOL  bIsModal 
)

Definition at line 868 of file loaddlg.cpp.

869 {
870  if (AppsList.GetSize() == 0)
871  return FALSE;
872 
873  // Initialize shared variables
874  for (INT i = 0; i < AppsList.GetSize(); ++i)
875  {
876  CDownloadManager::Add(AppsList[i]); // implicit conversion to DownloadInfo
877  }
878 
879  // Create a dialog and issue a download process
881 
882  return TRUE;
883 }
#define TRUE
Definition: types.h:120
static VOID LaunchDownloadDialog(BOOL)
Definition: loaddlg.cpp:848
int GetSize() const
Definition: atlsimpcoll.h:104
int32_t INT
Definition: typedefs.h:56
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static VOID Add(DownloadInfo info)
Definition: loaddlg.cpp:364

Referenced by CMainWindow::OnCommand(), and UseCmdParameters().

◆ ShowAboutDialog()

VOID ShowAboutDialog ( )

Definition at line 22 of file aboutdlg.cpp.

23 {
26  hMainWnd,
27  AboutDlgProc);
28 }
#define IDD_ABOUT_DIALOG
Definition: resource.h:62
#define DialogBoxW(i, t, p, f)
Definition: winuser.h:4300
HWND hMainWnd
Definition: magnifier.c:32
static INT_PTR CALLBACK AboutDlgProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: aboutdlg.cpp:11
HINSTANCE hInst
Definition: dxdiag.c:13
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by CMainWindow::OnCommand().

◆ ShowMainWindow()

VOID ShowMainWindow ( INT  nShowCmd)

Definition at line 1855 of file gui.cpp.

1856 {
1857  HACCEL KeyBrd;
1858  MSG Msg;
1859 
1860  CMainWindow* wnd = new CMainWindow();
1861  if (!wnd)
1862  return;
1863 
1864  hMainWnd = wnd->Create();
1865  if (!hMainWnd)
1866  return;
1867 
1868  /* Maximize it if we must */
1870  wnd->UpdateWindow();
1871 
1872  /* Load the menu hotkeys */
1874 
1875  /* Message Loop */
1876  while (GetMessageW(&Msg, NULL, 0, 0))
1877  {
1878  if (!TranslateAcceleratorW(hMainWnd, KeyBrd, &Msg))
1879  {
1882  }
1883  }
1884 
1885  delete wnd;
1886 }
BOOL WINAPI TranslateMessage(_In_ const MSG *)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
BOOL Maximized
Definition: winmain.h:13
struct @1576 Msg[]
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
smooth NULL
Definition: ftsmooth.c:416
SETTINGS_INFO SettingsInfo
Definition: winmain.cpp:18
BOOL UpdateWindow()
Definition: atlwin.h:1277
#define HOTKEYS
Definition: resource.h:210
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
HWND hMainWnd
Definition: magnifier.c:32
HWND Create()
Definition: gui.cpp:1837
BOOL ShowWindow(int nCmdShow)
Definition: atlwin.h:1265
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
BOOL bSaveWndPos
Definition: winmain.h:7
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582
#define SW_MAXIMIZE
Definition: winuser.h:766

Referenced by wWinMain().