ReactOS  0.4.12-dev-18-gf469aca
loaddlg.cpp File Reference
#include "rapps.h"
#include <shlobj_undoc.h>
#include <shlguid_undoc.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlwin.h>
#include <wininet.h>
#include <shellutils.h>
#include <rosctrls.h>
#include <windowsx.h>
#include "rosui.h"
#include "dialogs.h"
#include "misc.h"
Include dependency graph for loaddlg.cpp:

Go to the source code of this file.

Classes

struct  DownloadInfo
 
struct  DownloadParam
 
class  CDownloadDialog
 
class  CDowloadingAppsListView
 

Enumerations

enum  DownloadStatus {
  DLSTATUS_WAITING = IDS_STATUS_WAITING, DLSTATUS_DOWNLOADING = IDS_STATUS_DOWNLOADING, DLSTATUS_WAITING_INSTALL = IDS_STATUS_DOWNLOADED, DLSTATUS_INSTALLING = IDS_STATUS_INSTALLING,
  DLSTATUS_INSTALLED = IDS_STATUS_INSTALLED, DLSTATUS_FINISHED = IDS_STATUS_FINISHED
}
 

Functions

ATL::CStringW LoadStatusString (DownloadStatus StatusParam)
 
HRESULT WINAPI CDownloadDialog_Constructor (HWND Dlg, BOOL *pbCancelled, REFIID riid, LPVOID *ppv)
 
VOID MessageBox_LoadString (HWND hMainWnd, INT StringID)
 

Enumeration Type Documentation

◆ DownloadStatus

Enumerator
DLSTATUS_WAITING 
DLSTATUS_DOWNLOADING 
DLSTATUS_WAITING_INSTALL 
DLSTATUS_INSTALLING 
DLSTATUS_INSTALLED 
DLSTATUS_FINISHED 

Definition at line 54 of file loaddlg.cpp.

Function Documentation

◆ CDownloadDialog_Constructor()

HRESULT WINAPI CDownloadDialog_Constructor ( HWND  Dlg,
BOOL pbCancelled,
REFIID  riid,
LPVOID ppv 
)

Definition at line 329 of file loaddlg.cpp.

Referenced by CDownloadManager::ThreadFunc().

330 {
331  return ShellObjectCreatorInit<CDownloadDialog>(Dlg, pbCancelled, riid, ppv);
332 }
REFIID riid
Definition: precomp.h:44
REFIID LPVOID * ppv
Definition: atlbase.h:39

◆ LoadStatusString()

ATL::CStringW LoadStatusString ( DownloadStatus  StatusParam)

Definition at line 64 of file loaddlg.cpp.

Referenced by CDowloadingAppsListView::AddRow(), CDowloadingAppsListView::SetDownloadStatus(), and CDownloadManager::ThreadFunc().

65 {
66  ATL::CStringW szString;
67  szString.LoadStringW(StatusParam);
68  return szString;
69 }

◆ MessageBox_LoadString()

VOID MessageBox_LoadString ( HWND  hMainWnd,
INT  StringID 
)
inline

Definition at line 378 of file loaddlg.cpp.

Referenced by CDownloadManager::ThreadFunc().

379 {
380  ATL::CStringW szMsgText;
381  if (szMsgText.LoadStringW(StringID))
382  {
383  MessageBoxW(hMainWnd, szMsgText.GetString(), NULL, MB_OK | MB_ICONERROR);
384  }
385 }
smooth NULL
Definition: ftsmooth.c:416
int WINAPI MessageBoxW(_In_opt_ HWND, _In_opt_ LPCWSTR, _In_opt_ LPCWSTR, _In_ UINT)
PCXSTR GetString() const
Definition: atlsimpstr.h:361
#define MB_ICONERROR
Definition: winuser.h:781
#define MB_OK
Definition: winuser.h:784