ReactOS 0.4.15-dev-7958-gcd0bb1a
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 20 of file dialogs.cpp.

21{
22 va_list va;
23 va_start(va, stringID);
24
25 CStringW strFormat, strText;
26 strFormat.LoadString(stringID);
27 strText.FormatV(strFormat, va);
28
29 CStringW strProgramName;
30 strProgramName.LoadString(IDS_PROGRAMNAME);
31
32 mainWindow.MessageBox(strText, strProgramName, MB_ICONERROR);
33 va_end(va);
34}
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
CMainWindow mainWindow
Definition: main.cpp:25
#define IDS_PROGRAMNAME
Definition: resource.h:186
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
#define MB_ICONERROR
Definition: winuser.h:787