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

  1. Home
  2. Community
  3. Development
  4. myReactOS

  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

about.c

Go to the documentation of this file.
00001 #include "calc.h"
00002 
00003 #define MAX_LICENSE_SIZE 1000 // it's enought!
00004 
00005 INT_PTR CALLBACK AboutDlgProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
00006 {
00007     TCHAR *license;
00008 
00009     switch (msg) {
00010     case WM_INITDIALOG:
00011         license = (TCHAR *)alloca(MAX_LICENSE_SIZE*sizeof(TCHAR));
00012         if (LoadString(calc.hInstance, IDS_STRING_LICENSE, license, MAX_LICENSE_SIZE))
00013             SendDlgItemMessage(hWnd, IDC_EDIT_LICENSE, WM_SETTEXT, 0, (LPARAM)license);
00014         /* Update software version */
00015         SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_GETTEXT, (WPARAM)MAX_LICENSE_SIZE, (LPARAM)license);
00016         _tcscat(license, CALC_VERSION);
00017         SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_SETTEXT, 0, (LPARAM)license);
00018         return TRUE;
00019     case WM_COMMAND:
00020         switch (LOWORD(wp)) {
00021         case IDOK:
00022             EndDialog(hWnd, 0);
00023             return TRUE;
00024         }
00025         break;
00026 
00027     case WM_CLOSE:
00028         EndDialog(hWnd, 0);
00029         return 0;
00030     }
00031     return FALSE;
00032 }
00033 

Generated on Thu Feb 9 04:38:55 2012 for ReactOS by doxygen 1.6.3

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