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

INT_PTR CALLBACK AboutDlgProc ( HWND  hWnd,
UINT  msg,
WPARAM  wp,
LPARAM  lp 
)

Definition at line 5 of file about.c.

Referenced by DlgMainProc(), ShellAboutW(), and ShowAboutDialog().

{
    TCHAR *license;

    switch (msg) {
    case WM_INITDIALOG:
        license = (TCHAR *)alloca(MAX_LICENSE_SIZE*sizeof(TCHAR));
        if (LoadString(calc.hInstance, IDS_STRING_LICENSE, license, MAX_LICENSE_SIZE))
            SendDlgItemMessage(hWnd, IDC_EDIT_LICENSE, WM_SETTEXT, 0, (LPARAM)license);
        /* Update software version */
        SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_GETTEXT, (WPARAM)MAX_LICENSE_SIZE, (LPARAM)license);
        _tcscat(license, CALC_VERSION);
        SendDlgItemMessage(hWnd, IDC_TEXT_VERSION, WM_SETTEXT, 0, (LPARAM)license);
        return TRUE;
    case WM_COMMAND:
        switch (LOWORD(wp)) {
        case IDOK:
            EndDialog(hWnd, 0);
            return TRUE;
        }
        break;

    case WM_CLOSE:
        EndDialog(hWnd, 0);
        return 0;
    }
    return FALSE;
}

Generated on Sat May 26 2012 04:38:26 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.