ReactOS 0.4.16-dev-106-g10b08aa
CFontsDialog Class Reference

#include <dialogs.h>

Inheritance diagram for CFontsDialog:
Collaboration diagram for CFontsDialog:

Public Types

enum  { IDD = IDD_FONTS }
 

Public Member Functions

 CFontsDialog ()
 
void InitFontNames ()
 
void InitFontSizes ()
 
void InitToolbar ()
 

Protected Member Functions

LRESULT OnInitDialog (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnClose (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnCommand (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnMove (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnNotify (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnToolsModelToolChanged (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnMeasureItem (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnDrawItem (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
void OnFontSize (UINT codeNotify)
 
void OnFontName (UINT codeNotify)
 

Detailed Description

Definition at line 92 of file dialogs.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 95 of file dialogs.h.

95{ IDD = IDD_FONTS };
#define IDD_FONTS
Definition: resource.h:181

Constructor & Destructor Documentation

◆ CFontsDialog()

CFontsDialog::CFontsDialog ( )

Definition at line 319 of file dialogs.cpp.

320{
321}

Member Function Documentation

◆ InitFontNames()

void CFontsDialog::InitFontNames ( )

Definition at line 323 of file dialogs.cpp.

324{
325 // List the fonts
326 CSimpleArray<CStringW> arrFontNames;
328 if (hDC)
329 {
331 reinterpret_cast<LPARAM>(&arrFontNames));
333 }
334
335 // Actually add them to the combobox
336 HWND hwndNames = GetDlgItem(IDD_FONTSNAMES);
337 ::SendMessageW(hwndNames, CB_RESETCONTENT, 0, 0);
338 for (INT i = 0; i < arrFontNames.GetSize(); ++i)
339 {
340 ComboBox_AddString(hwndNames, arrFontNames[i]);
341 }
342
344}
static HDC hDC
Definition: 3dtext.c:33
static INT CALLBACK EnumFontFamProc(ENUMLOGFONTW *lpelf, NEWTEXTMETRICW *lpntm, INT FontType, LPARAM lParam)
Definition: dialogs.cpp:300
RegistrySettings registrySettings
Definition: registry.cpp:14
#define IDD_FONTSNAMES
Definition: resource.h:182
CStringW strFontName
Definition: registry.h:33
#define NULL
Definition: types.h:112
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 HDC
Definition: imagelist.c:88
int32_t INT
Definition: typedefs.h:58
LONG_PTR LPARAM
Definition: windef.h:208
#define ComboBox_AddString(hwndCtl, lpsz)
Definition: windowsx.h:41
FARPROC FONTENUMPROCW
Definition: wingdi.h:2897
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI EnumFontFamiliesW(_In_ HDC, _In_opt_ LPCWSTR, _In_ FONTENUMPROCW, _In_ LPARAM)
BOOL WINAPI DeleteDC(_In_ HDC)
#define CB_RESETCONTENT
Definition: winuser.h:1962
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI SetWindowTextW(_In_ HWND, _In_opt_ LPCWSTR)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)

Referenced by OnInitDialog().

◆ InitFontSizes()

void CFontsDialog::InitFontSizes ( )

Definition at line 346 of file dialogs.cpp.

347{
348 static const INT s_sizes[] =
349 {
350 8, 9, 10, 11, 12, 14, 16, 18, 20, 22, 24, 26, 28, 36, 48, 72
351 };
352
353 HWND hwndSizes = GetDlgItem(IDD_FONTSSIZES);
354 ComboBox_ResetContent(hwndSizes);
355
356 WCHAR szText[16];
357 for (UINT i = 0; i < _countof(s_sizes); ++i)
358 {
359 StringCchPrintfW(szText, _countof(szText), L"%d", s_sizes[i]);
360 INT iItem = ComboBox_AddString(hwndSizes, szText);
361 if (s_sizes[i] == (INT)registrySettings.PointSize)
362 ComboBox_SetCurSel(hwndSizes, iItem);
363 }
364
365 if (ComboBox_GetCurSel(hwndSizes) == CB_ERR)
366 {
368 ::SetWindowTextW(hwndSizes, szText);
369 }
370}
#define IDD_FONTSSIZES
Definition: resource.h:183
DWORD PointSize
Definition: registry.h:34
unsigned int UINT
Definition: ndis.h:50
#define L(x)
Definition: ntvdm.h:50
#define _countof(array)
Definition: sndvol32.h:70
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
Definition: strsafe.h:530
#define ComboBox_SetCurSel(hwndCtl, index)
Definition: windowsx.h:66
#define ComboBox_GetCurSel(hwndCtl)
Definition: windowsx.h:49
#define ComboBox_ResetContent(hwndCtl)
Definition: windowsx.h:63
#define CB_ERR
Definition: winuser.h:2438
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by OnInitDialog().

◆ InitToolbar()

void CFontsDialog::InitToolbar ( )

Definition at line 372 of file dialogs.cpp.

373{
374 HWND hwndToolbar = GetDlgItem(IDD_FONTSTOOLBAR);
375 ::SendMessageW(hwndToolbar, TB_BUTTONSTRUCTSIZE, sizeof(TBBUTTON), 0);
376 ::SendMessageW(hwndToolbar, TB_SETBITMAPSIZE, 0, MAKELPARAM(16, 16));
377 ::SendMessageW(hwndToolbar, TB_SETBUTTONWIDTH, 0, MAKELPARAM(20, 20));
378
380 AddBitmap.hInst = g_hinstExe;
382 ::SendMessageW(hwndToolbar, TB_ADDBITMAP, 4, (LPARAM)&AddBitmap);
383
385 16, 8, RGB(255, 0, 255), IMAGE_BITMAP,
387 ::SendMessageW(hwndToolbar, TB_SETIMAGELIST, 0, (LPARAM)himl);
388
389 TBBUTTON buttons[] =
390 {
394 { 3, IDM_VERTICAL, 0, TBSTYLE_CHECK }, // TODO:
395 };
397
401}
HINSTANCE g_hinstExe
Definition: main.cpp:17
#define IDM_UNDERLINE
Definition: resource.h:103
#define IDB_FONTSTOOLBAR
Definition: resource.h:15
#define IDM_VERTICAL
Definition: resource.h:104
#define IDM_ITALIC
Definition: resource.h:102
#define IDD_FONTSTOOLBAR
Definition: resource.h:184
#define IDM_BOLD
Definition: resource.h:101
HIMAGELIST himl
DWORD Underline
Definition: registry.h:37
#define RGB(r, g, b)
Definition: precomp.h:71
NTSTATUS AddBitmap(PNTFS_VCB Vcb, PFILE_RECORD_HEADER FileRecord, PNTFS_ATTR_RECORD AttributeAddress, PCWSTR Name, USHORT NameLength)
Definition: attrib.c:72
#define TB_ADDBUTTONS
Definition: commctrl.h:1271
#define ImageList_LoadImage
Definition: commctrl.h:508
#define TB_BUTTONSTRUCTSIZE
Definition: commctrl.h:1134
#define TB_CHECKBUTTON
Definition: commctrl.h:1043
#define TB_SETIMAGELIST
Definition: commctrl.h:1150
#define TBSTATE_ENABLED
Definition: commctrl.h:974
#define TB_SETBITMAPSIZE
Definition: commctrl.h:1136
#define TBSTYLE_CHECK
Definition: commctrl.h:983
#define TB_SETBUTTONWIDTH
Definition: commctrl.h:1161
#define TB_ADDBITMAP
Definition: commctrl.h:1056
HWND buttons[5]
Definition: sndrec32.cpp:40
#define IMAGE_BITMAP
Definition: winuser.h:211
#define MAKELPARAM(l, h)
Definition: winuser.h:4011
#define LR_CREATEDIBSECTION
Definition: winuser.h:1101
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

Referenced by OnInitDialog().

◆ OnClose()

LRESULT CFontsDialog::OnClose ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 425 of file dialogs.cpp.

426{
427 ShowWindow(SW_HIDE); // Just hide. Recycle for optimization
428 return 0;
429}
#define SW_HIDE
Definition: winuser.h:771
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)

◆ OnCommand()

LRESULT CFontsDialog::OnCommand ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 492 of file dialogs.cpp.

493{
494 UINT id = LOWORD(wParam);
495 UINT codeNotify = HIWORD(wParam);
496 HWND hwndToolbar = GetDlgItem(IDD_FONTSTOOLBAR);
497 BOOL bChecked = (BOOL)::SendMessageW(hwndToolbar, TB_ISBUTTONCHECKED, id, 0);
498
499 switch (id)
500 {
501 case IDCANCEL:
504 break;
505
506 case IDD_FONTSNAMES:
507 OnFontName(codeNotify);
508 break;
509
510 case IDD_FONTSSIZES:
511 OnFontSize(codeNotify);
512 break;
513
514 case IDM_BOLD:
515 registrySettings.Bold = bChecked;
517 break;
518
519 case IDM_ITALIC:
520 registrySettings.Italic = bChecked;
522 break;
523
524 case IDM_UNDERLINE:
525 registrySettings.Underline = bChecked;
527 break;
528
529 case IDM_VERTICAL:
530 // TODO:
531 break;
532 }
533 return 0;
534}
ToolsModel toolsModel
Definition: toolsmodel.cpp:10
void OnFontName(UINT codeNotify)
Definition: dialogs.cpp:431
void OnFontSize(UINT codeNotify)
Definition: dialogs.cpp:460
DWORD ShowTextTool
Definition: registry.h:41
void NotifyToolChanged()
Definition: toolsmodel.cpp:272
WPARAM wParam
Definition: combotst.c:138
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
#define BOOL
Definition: nt_native.h:43
#define LOWORD(l)
Definition: pedump.c:82
#define TB_ISBUTTONCHECKED
Definition: commctrl.h:1049
#define HIWORD(l)
Definition: typedefs.h:247
#define IDCANCEL
Definition: winuser.h:834

◆ OnDrawItem()

LRESULT CFontsDialog::OnDrawItem ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 588 of file dialogs.cpp.

589{
590 // TODO: Owner-draw the font types
591 if (wParam == IDD_FONTSNAMES)
592 {
593 LPDRAWITEMSTRUCT pDrawItem = reinterpret_cast<LPDRAWITEMSTRUCT>(lParam);
594 if (pDrawItem->itemID == (UINT)-1)
595 return TRUE;
596
597 ::SetBkMode(pDrawItem->hDC, TRANSPARENT);
598
599 HWND hwndItem = pDrawItem->hwndItem;
600 RECT rcItem = pDrawItem->rcItem;
601 if (pDrawItem->itemState & ODS_SELECTED)
602 {
603 ::FillRect(pDrawItem->hDC, &rcItem, GetSysColorBrush(COLOR_HIGHLIGHT));
605 }
606 else
607 {
608 ::FillRect(pDrawItem->hDC, &rcItem, GetSysColorBrush(COLOR_WINDOW));
610 }
611
612 WCHAR szText[LF_FACESIZE];
613 if ((UINT)ComboBox_GetLBTextLen(hwndItem, pDrawItem->itemID) < _countof(szText))
614 {
615 szText[0] = 0;
616 ComboBox_GetLBText(hwndItem, pDrawItem->itemID, szText);
617
618 rcItem.left += 24;
619 ::DrawTextW(pDrawItem->hDC, szText, -1, &rcItem, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
620 }
621
622 if (pDrawItem->itemState & ODS_FOCUS)
623 ::DrawFocusRect(pDrawItem->hDC, &pDrawItem->rcItem);
624
625 return TRUE;
626 }
627 return 0;
628}
LPARAM lParam
Definition: combotst.c:139
#define LF_FACESIZE
Definition: dimm.idl:39
#define TRUE
Definition: types.h:120
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
Definition: defwnd.c:16
LONG left
Definition: windef.h:306
#define ComboBox_GetLBText(hwndCtl, index, lpszBuffer)
Definition: windowsx.h:56
#define ComboBox_GetLBTextLen(hwndCtl, index)
Definition: windowsx.h:57
#define TRANSPARENT
Definition: wingdi.h:950
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
Definition: dc.c:1056
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918
DWORD WINAPI GetSysColor(_In_ int)
#define ODS_SELECTED
Definition: winuser.h:2548
#define COLOR_WINDOW
Definition: winuser.h:921
#define COLOR_WINDOWTEXT
Definition: winuser.h:924
#define COLOR_HIGHLIGHT
Definition: winuser.h:929
HBRUSH WINAPI GetSysColorBrush(_In_ int)
#define DT_SINGLELINE
Definition: winuser.h:540
#define DT_LEFT
Definition: winuser.h:534
#define COLOR_HIGHLIGHTTEXT
Definition: winuser.h:930
#define DT_VCENTER
Definition: winuser.h:543
BOOL WINAPI DrawFocusRect(_In_ HDC, _In_ LPCRECT)
#define ODS_FOCUS
Definition: winuser.h:2552

◆ OnFontName()

void CFontsDialog::OnFontName ( UINT  codeNotify)
protected

Definition at line 431 of file dialogs.cpp.

432{
433 HWND hwndNames = GetDlgItem(IDD_FONTSNAMES);
434 INT iItem = CB_ERR;
435 UINT cch;
436 WCHAR szText[LF_FACESIZE];
437
438 switch (codeNotify)
439 {
440 case CBN_SELCHANGE:
441 iItem = ComboBox_GetCurSel(hwndNames);
442 cch = ComboBox_GetLBTextLen(hwndNames, iItem);
443 if (iItem != CB_ERR && 0 < cch && cch < _countof(szText))
444 ComboBox_GetLBText(hwndNames, iItem, szText);
445 break;
446
447 case CBN_EDITCHANGE:
448 GetDlgItemText(IDD_FONTSNAMES, szText, _countof(szText));
449 iItem = ComboBox_FindStringExact(hwndNames, -1, szText);
450 break;
451 }
452
453 if (iItem != CB_ERR && registrySettings.strFontName.CompareNoCase(szText) != 0)
454 {
457 }
458}
int CompareNoCase(_In_z_ PCXSTR psz) const
Definition: cstringt.h:743
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:202
#define ComboBox_FindStringExact(hwndCtl, indexStart, lpszFind)
Definition: windowsx.h:47
#define GetDlgItemText
Definition: winuser.h:5797
#define CBN_SELCHANGE
Definition: winuser.h:1982
#define CBN_EDITCHANGE
Definition: winuser.h:1978

Referenced by OnCommand().

◆ OnFontSize()

void CFontsDialog::OnFontSize ( UINT  codeNotify)
protected

Definition at line 460 of file dialogs.cpp.

461{
462 HWND hwndSizes = GetDlgItem(IDD_FONTSSIZES);
463 WCHAR szText[8];
464 INT iItem, PointSize = 0;
465 UINT cch;
466
467 switch (codeNotify)
468 {
469 case CBN_SELCHANGE:
470 iItem = ComboBox_GetCurSel(hwndSizes);
471 cch = ComboBox_GetLBTextLen(hwndSizes, iItem);
472 if (iItem != CB_ERR && 0 < cch && cch < _countof(szText))
473 {
474 ComboBox_GetLBText(hwndSizes, iItem, szText);
475 PointSize = _wtoi(szText);
476 }
477 break;
478
479 case CBN_EDITCHANGE:
480 ::GetWindowTextW(hwndSizes, szText, _countof(szText));
481 PointSize = _wtoi(szText);
482 break;
483 }
484
485 if (PointSize > 0)
486 {
487 registrySettings.PointSize = PointSize;
489 }
490}
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
int WINAPI GetWindowTextW(HWND hWnd, LPWSTR lpString, int nMaxCount)
Definition: window.c:1384

Referenced by OnCommand().

◆ OnInitDialog()

LRESULT CFontsDialog::OnInitDialog ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 403 of file dialogs.cpp.

404{
405 // TODO: Tooltips
408 InitToolbar();
409
411 {
414 0, 0,
417 }
418
421
422 return TRUE;
423}
void InitFontSizes()
Definition: dialogs.cpp:346
void InitFontNames()
Definition: dialogs.cpp:323
void InitToolbar()
Definition: dialogs.cpp:372
DWORD FontsPositionY
Definition: registry.h:40
DWORD FontsPositionX
Definition: registry.h:39
#define SWP_NOACTIVATE
Definition: winuser.h:1245
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOSIZE
Definition: winuser.h:1248
#define SendMessage
Definition: winuser.h:5855
#define SWP_NOZORDER
Definition: winuser.h:1250
#define DM_REPOSITION
Definition: winuser.h:2103

◆ OnMeasureItem()

LRESULT CFontsDialog::OnMeasureItem ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 574 of file dialogs.cpp.

575{
576 if (wParam == IDD_FONTSNAMES)
577 {
578 LPMEASUREITEMSTRUCT pMeasureItem = reinterpret_cast<LPMEASUREITEMSTRUCT>(lParam);
579 RECT rc;
581 pMeasureItem->itemWidth = rc.right - rc.left;
583 return TRUE;
584 }
585 return 0;
586}
LONG right
Definition: windef.h:308
#define SM_CYVSCROLL
Definition: winuser.h:984
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
int WINAPI GetSystemMetrics(_In_ int)

◆ OnMove()

LRESULT CFontsDialog::OnMove ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 557 of file dialogs.cpp.

558{
559 RECT rc;
560 GetWindowRect(&rc);
563 return 0;
564}
LONG top
Definition: windef.h:307
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)

◆ OnNotify()

LRESULT CFontsDialog::OnNotify ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 536 of file dialogs.cpp.

537{
538 NMHDR *pnmhdr = reinterpret_cast<NMHDR *>(lParam);
539 if (pnmhdr->code == TTN_NEEDTEXT)
540 {
541 LPTOOLTIPTEXTW pToolTip = reinterpret_cast<LPTOOLTIPTEXTW>(lParam);
542 pToolTip->hinst = g_hinstExe;
543 switch (pnmhdr->idFrom)
544 {
545 case IDM_BOLD: pToolTip->lpszText = MAKEINTRESOURCEW(IDS_BOLD); break;
546 case IDM_ITALIC: pToolTip->lpszText = MAKEINTRESOURCEW(IDS_ITALIC); break;
547 case IDM_UNDERLINE: pToolTip->lpszText = MAKEINTRESOURCEW(IDS_UNDERLINE); break;
548 case IDM_VERTICAL: pToolTip->lpszText = MAKEINTRESOURCEW(IDS_VERTICAL); break;
549
550 default:
551 break;
552 }
553 }
554 return 0;
555}
#define IDS_UNDERLINE
Definition: resource.h:225
#define IDS_BOLD
Definition: resource.h:223
#define IDS_VERTICAL
Definition: resource.h:226
#define IDS_ITALIC
Definition: resource.h:224
#define LPTOOLTIPTEXTW
Definition: commctrl.h:1892
#define TTN_NEEDTEXT
Definition: commctrl.h:1885
UINT_PTR idFrom
Definition: winuser.h:3161
UINT code
Definition: winuser.h:3162

◆ OnToolsModelToolChanged()

LRESULT CFontsDialog::OnToolsModelToolChanged ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
protected

Definition at line 566 of file dialogs.cpp.

567{
568 if (wParam != TOOL_TEXT)
570
571 return 0;
572}
@ TOOL_TEXT
Definition: toolsmodel.h:21

The documentation for this class was generated from the following files: