ReactOS  0.4.15-dev-4574-g434cf85
dialogs.cpp File Reference
#include "precomp.h"
#include "dialogs.h"
#include <winnls.h>
Include dependency graph for dialogs.cpp:

Go to the source code of this file.

Functions

static INT CALLBACK EnumFontFamProc (ENUMLOGFONT *lpelf, NEWTEXTMETRIC *lpntm, INT FontType, LPARAM lParam)
 

Variables

CMirrorRotateDialog mirrorRotateDialog
 
CAttributesDialog attributesDialog
 
CStretchSkewDialog stretchSkewDialog
 
CFontsDialog fontsDialog
 

Function Documentation

◆ EnumFontFamProc()

static INT CALLBACK EnumFontFamProc ( ENUMLOGFONT lpelf,
NEWTEXTMETRIC lpntm,
INT  FontType,
LPARAM  lParam 
)
static

Definition at line 264 of file dialogs.cpp.

265 {
266  CSimpleArray<CString>& arrFontNames = *reinterpret_cast<CSimpleArray<CString>*>(lParam);
267  LPTSTR name = lpelf->elfLogFont.lfFaceName;
268  if (name[0] == TEXT('@')) // Vertical fonts
269  return TRUE;
270 
271  for (INT i = 0; i < arrFontNames.GetSize(); ++i)
272  {
273  if (arrFontNames[i] == name) // Already exists
274  return TRUE;
275  }
276 
277  arrFontNames.Add(name);
278  return TRUE;
279 }
#define TRUE
Definition: types.h:120
int32_t INT
Definition: typedefs.h:58
CHAR * LPTSTR
Definition: xmlstorage.h:192
LOGFONTA elfLogFont
Definition: wingdi.h:2686
#define TEXT(s)
Definition: k32.h:26
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
Definition: name.c:38
CHAR lfFaceName[LF_FACESIZE]
Definition: dimm.idl:55
LPARAM lParam
Definition: combotst.c:139

Referenced by CFontsDialog::InitFontNames().

Variable Documentation

◆ attributesDialog

CAttributesDialog attributesDialog

Definition at line 20 of file dialogs.cpp.

Referenced by CMainWindow::OnCommand().

◆ fontsDialog

◆ mirrorRotateDialog

CMirrorRotateDialog mirrorRotateDialog

Definition at line 19 of file dialogs.cpp.

Referenced by CMainWindow::OnCommand().

◆ stretchSkewDialog

CStretchSkewDialog stretchSkewDialog

Definition at line 21 of file dialogs.cpp.

Referenced by CMainWindow::OnCommand().