ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

font.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS Console Configuration DLL
00003  * LICENSE:         GPL - See COPYING in the top level directory
00004  * FILE:            dll/win32/console/font.c
00005  * PURPOSE:         displays font dialog
00006  * PROGRAMMERS:     Johannes Anderwald (johannes.anderwald@student.tugraz.at)
00007  */
00008 
00009 
00010 #include "console.h"
00011 
00012 INT_PTR
00013 CALLBACK
00014 FontProc(
00015   HWND hwndDlg,
00016   UINT uMsg,
00017   WPARAM wParam,
00018   LPARAM lParam
00019 )
00020 {
00021     LPDRAWITEMSTRUCT drawItem;
00022     PConsoleInfo pConInfo = (PConsoleInfo)GetWindowLongPtr(hwndDlg, DWLP_USER);
00023 
00024     UNREFERENCED_PARAMETER(hwndDlg);
00025     UNREFERENCED_PARAMETER(wParam);
00026 
00027 
00028     switch(uMsg)
00029     {
00030         case WM_INITDIALOG:
00031         {
00032             pConInfo = (PConsoleInfo) ((LPPROPSHEETPAGE)lParam)->lParam;
00033             SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)pConInfo);
00034             return TRUE;
00035         }
00036         case WM_DRAWITEM:
00037         {
00038             drawItem = (LPDRAWITEMSTRUCT)lParam;
00039             if (drawItem->CtlID == IDC_STATIC_FONT_WINDOW_PREVIEW)
00040             {
00041                 PaintConsole(drawItem, pConInfo);
00042             }
00043             else if (drawItem->CtlID == IDC_STATIC_SELECT_FONT_PREVIEW)
00044             {
00045                 PaintText(drawItem, pConInfo);
00046             }
00047             return TRUE;
00048         }
00049         default:
00050         {
00051             break;
00052         }
00053     }
00054 
00055     return FALSE;
00056 }

Generated on Sun May 27 2012 04:20:50 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.