ReactOS 0.4.15-dev-6680-g8c76870
dialogs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CMirrorRotateDialog
 
class  CAttributesDialog
 
class  CStretchSkewDialog
 
class  CFontsDialog
 

Functions

void ShowError (INT stringID,...)
 

Function Documentation

◆ ShowError()

void ShowError ( INT  stringID,
  ... 
)

Definition at line 25 of file dialogs.cpp.

26{
27 va_list va;
28 va_start(va, stringID);
29
30 CStringW strFormat, strText;
31 strFormat.LoadString(stringID);
32 strText.FormatV(strFormat, va);
33
34 CStringW strProgramName;
35 strProgramName.LoadString(IDS_PROGRAMNAME);
36
37 mainWindow.MessageBox(strText, strProgramName, MB_ICONERROR);
38 va_end(va);
39}
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define IDS_PROGRAMNAME
Definition: resource.h:183
BOOL LoadString(_In_ UINT nID)
Definition: cstringt.h:639
void FormatV(PCXSTR pszFormat, va_list args)
Definition: cstringt.h:846
int MessageBox(LPCTSTR lpszText, LPCTSTR lpszCaption=NULL, UINT nType=MB_OK)
Definition: atlwin.h:1002
CMainWindow mainWindow
Definition: main.cpp:22
#define MB_ICONERROR
Definition: winuser.h:781