Changeset 1803 for trunk/src


Ignore:
Timestamp:
Nov 21, 1999, 6:58:08 PM (26 years ago)
Author:
cbratschi
Message:

fixed id for WM_NOTIFY

Location:
trunk/src/comctl32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/comctl32/propsheet.c

    r1776 r1803  
    1 /* $Id: propsheet.c,v 1.14 1999-11-19 16:16:38 achimha Exp $ */
     1/* $Id: propsheet.c,v 1.15 1999-11-21 17:58:07 cbratschi Exp $ */
    22/*
    33 * Property Sheets
     
    266266      p += lstrlenW( (LPCWSTR)p ) + 1;
    267267      break;
    268   } 
     268  }
    269269
    270270  /* class */
     
    292292    {
    293293      char szTitle[256];
    294      
     294
    295295      if ( !LoadStringA( lppsp->hInstance, (UINT) lppsp->pszTitle, szTitle, 256 ) )
    296         return FALSE;
     296        return FALSE;
    297297
    298298      psInfo->proppage[index].pszText = HEAP_strdupAtoW( GetProcessHeap(),
    299                                                         0, szTitle );
     299                                                        0, szTitle );
    300300    }
    301301    else
    302302      psInfo->proppage[index].pszText = HEAP_strdupAtoW(GetProcessHeap(),
    303                                                         0,
    304                                                         lppsp->pszTitle);
     303                                                        0,
     304                                                        lppsp->pszTitle);
    305305  }
    306306
     
    308308   * Build the image list for icons
    309309   */
    310   if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID)) 
     310  if ((dwFlags & PSP_USEHICON) || (dwFlags & PSP_USEICONID))
    311311  {
    312312    HICON hIcon;
     
    315315
    316316    if (dwFlags & PSP_USEICONID)
    317       hIcon = LoadImageA(lppsp->hInstance, lppsp->u2.pszIcon, IMAGE_ICON, 
     317      hIcon = LoadImageA(lppsp->hInstance, lppsp->u2.pszIcon, IMAGE_ICON,
    318318                         icon_cx, icon_cy, LR_DEFAULTCOLOR);
    319319    else
     
    926926
    927927  hwndPage = CreateDialogIndirectParamA(ppshpage->hInstance,
    928                                         pTemplate,
    929                                         hwndParent,
    930                                         ppshpage->pfnDlgProc,
    931                                         (LPARAM)ppshpage);
     928                                        pTemplate,
     929                                        hwndParent,
     930                                        ppshpage->pfnDlgProc,
     931                                        (LPARAM)ppshpage);
    932932
    933933  ppInfo[index].hwndPage = hwndPage;
     
    963963
    964964    hdr.hwndFrom = hwndParent;
     965    hdr.idFrom = GetWindowLongA(hwndParent,GWL_ID);
    965966    hdr.code = PSN_SETACTIVE;
    966967
     
    10191020
    10201021  hdr.hwndFrom = hwndDlg;
     1022  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    10211023  hdr.code = PSN_WIZBACK;
    10221024
     
    10541056
    10551057  hdr.hwndFrom = hwndDlg;
     1058  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    10561059  hdr.code = PSN_WIZNEXT;
    10571060
     
    10881091
    10891092  hdr.hwndFrom = hwndDlg;
     1093  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    10901094  hdr.code = PSN_WIZFINISH;
    10911095
     
    11231127
    11241128  hdr.hwndFrom = hwndDlg;
     1129  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    11251130
    11261131  /*
     
    11661171  hwndPage = psInfo->proppage[psInfo->active_page].hwndPage;
    11671172  hdr.hwndFrom = hwndDlg;
     1173  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    11681174  hdr.code = PSN_QUERYCANCEL;
    11691175
     
    11961202  hwndPage = psInfo->proppage[psInfo->active_page].hwndPage;
    11971203  hdr.hwndFrom = hwndDlg;
     1204  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    11981205  hdr.code = PSN_HELP;
    11991206
     
    12941301
    12951302/*************************************************************************
    1296  * BOOL PROPSHEET_CanSetCurSel [Internal] 
     1303 * BOOL PROPSHEET_CanSetCurSel [Internal]
    12971304 *
    12981305 * Test weither the current page can be changed by sending a PSN_KILLACTIVE
     
    13211328
    13221329  hdr.hwndFrom = hwndDlg;
     1330  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    13231331  hdr.code = PSN_KILLACTIVE;
    13241332
     
    13451353
    13461354  hdr.hwndFrom = hwndDlg;
     1355  hdr.idFrom = GetWindowLongA(hwndDlg,GWL_ID);
    13471356  /*
    13481357   * hpage takes precedence over index.
     
    13701379    result = SendMessageA(hwndPage, WM_NOTIFY, 0, (LPARAM) &hdr);
    13711380    /*
    1372      * TODO: check return value. 
     1381     * TODO: check return value.
    13731382     */
    13741383  }
     
    13921401static void PROPSHEET_SetTitleA(HWND hwndDlg, DWORD dwStyle, LPCSTR lpszText)
    13931402{
    1394   PropSheetInfo*        psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfoStr);
    1395   char                          szTitle[256];
     1403  PropSheetInfo*        psInfo = (PropSheetInfo*) GetPropA(hwndDlg, PropSheetInfoStr);
     1404  char                          szTitle[256];
    13961405
    13971406  if (HIWORD(lpszText) == 0) {
    1398     if (!LoadStringA(psInfo->ppshheader->hInstance, 
     1407    if (!LoadStringA(psInfo->ppshheader->hInstance,
    13991408                     LOWORD(lpszText), szTitle, sizeof(szTitle)-1))
    14001409      return;
     
    16121621  if (psInfo->isModeless || psInfo->nPages > 1)
    16131622     DestroyWindow(psInfo->proppage[index].hwndPage);
    1614  
     1623
    16151624  /* Remove the tab */
    16161625  SendMessageA(hwndTabControl, TCM_DELETEITEM, index, 0);
     
    16191628  psInfo->proppage = COMCTL32_Alloc(sizeof(PropPageInfo) * psInfo->nPages);
    16201629
    1621   if (index > 0) 
     1630  if (index > 0)
    16221631    memcpy(&psInfo->proppage[0], &oldPages[0], index * sizeof(PropPageInfo));
    16231632
     
    16591668    /* Show and enable the Next button */
    16601669    hwndButton = GetDlgItem(hwndDlg, IDC_NEXT_BUTTON);
    1661    
     1670
    16621671    ShowWindow(hwndButton, SW_SHOW);
    16631672    EnableWindow(hwndButton, TRUE);
     
    18371846        SendMessageA(hwnd, WM_SETICON, 0, hIcon);
    18381847      }
    1839      
     1848
    18401849      if (psInfo->ppshheader->dwFlags & PSH_USEHICON)
    18411850        SendMessageA(hwnd, WM_SETICON, 0, psInfo->ppshheader->u1.hIcon);
     
    18701879      }
    18711880
    1872       if (psInfo->useCallback) 
    1873              (*(psInfo->ppshheader->pfnCallback))(hwnd, 
    1874                                               PSCB_INITIALIZED, (LPARAM)0);
    1875 
    1876       ppshpage = PROPSHEET_GetPSPPage(psInfo, psInfo->active_page);     
     1881      if (psInfo->useCallback)
     1882             (*(psInfo->ppshheader->pfnCallback))(hwnd,
     1883                                              PSCB_INITIALIZED, (LPARAM)0);
     1884
     1885      ppshpage = PROPSHEET_GetPSPPage(psInfo, psInfo->active_page);
    18771886      PROPSHEET_CreatePage(hwnd, psInfo->active_page, psInfo, ppshpage, TRUE);
    18781887
     
    18851894         char szText[256];
    18861895
    1887          if (LoadStringA(psInfo->ppshheader->hInstance, 
     1896         if (LoadStringA(psInfo->ppshheader->hInstance,
    18881897                 (UINT)psInfo->ppshheader->pszCaption, szText, 255))
    18891898            PROPSHEET_SetTitleA(hwnd, psInfo->ppshheader->dwFlags, szText);
     
    20592068    case PSM_REBOOTSYSTEM:
    20602069    {
    2061       PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwnd, 
     2070      PropSheetInfo* psInfo = (PropSheetInfo*) GetPropA(hwnd,
    20622071                                                        PropSheetInfoStr);
    20632072
     
    21202129
    21212130    case PSM_SETFINISHTEXTA:
    2122       PROPSHEET_SetFinishTextA(hwnd, (LPCSTR) lParam);       
     2131      PROPSHEET_SetFinishTextA(hwnd, (LPCSTR) lParam);
    21232132      return TRUE;
    21242133
  • trunk/src/comctl32/resource.asm

    r1788 r1803  
    11;/* This file is generated with wrc version 1.0.14 (08-Aug-1999). Do not edit! */
    22;/* Source : rsrc.rc */
    3 ;/* Cmdline: wrc -s -I. -IH:\IBMCPP3\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */
    4 ;/* Date   : Fri Nov 19 17:52:02 1999 */
     3;/* Cmdline: wrc -s -I. -IE:\IBMCPP\include -I..\..\include -I..\..\include\win -o resource.asm rsrc.rc */
     4;/* Date   : Sun Nov 21 15:11:29 1999 */
    55
    66        .386p
     
    1212        public  _Resource_PEResTab
    1313        dd      0
    14         dd      038358032h
     14        dd      03837fd91h
    1515        dd      0
    1616        dw      0, 4
     
    2525L2:
    2626        dd      0
    27         dd      038358032h
     27        dd      03837fd91h
    2828        dd      0
    2929        dw      0, 6
     
    4242L4:
    4343        dd      0
    44         dd      038358032h
     44        dd      03837fd91h
    4545        dd      0
    4646        dw      0, 1
     
    4949L5:
    5050        dd      0
    51         dd      038358032h
     51        dd      03837fd91h
    5252        dd      0
    5353        dw      0, 3
     
    6060L16:
    6161        dd      0
    62         dd      038358032h
     62        dd      03837fd91h
    6363        dd      0
    6464        dw      0, 1
     
    6767L2_120:
    6868        dd      0
    69         dd      038358032h
     69        dd      03837fd91h
    7070        dd      0
    7171        dw      0, 1
     
    7474L2_121:
    7575        dd      0
    76         dd      038358032h
     76        dd      03837fd91h
    7777        dd      0
    7878        dw      0, 1
     
    8181L2_124:
    8282        dd      0
    83         dd      038358032h
     83        dd      03837fd91h
    8484        dd      0
    8585        dw      0, 1
     
    8888L2_125:
    8989        dd      0
    90         dd      038358032h
     90        dd      03837fd91h
    9191        dd      0
    9292        dw      0, 1
     
    9595L2_130:
    9696        dd      0
    97         dd      038358032h
     97        dd      03837fd91h
    9898        dd      0
    9999        dw      0, 1
     
    102102L2_131:
    103103        dd      0
    104         dd      038358032h
     104        dd      03837fd91h
    105105        dd      0
    106106        dw      0, 1
     
    109109L4_300:
    110110        dd      0
    111         dd      038358032h
     111        dd      03837fd91h
    112112        dd      0
    113113        dw      0, 1
     
    116116L5_200:
    117117        dd      0
    118         dd      038358032h
     118        dd      03837fd91h
    119119        dd      0
    120120        dw      0, 1
     
    123123L5_1006:
    124124        dd      0
    125         dd      038358032h
     125        dd      03837fd91h
    126126        dd      0
    127127        dw      0, 1
     
    130130L5_1020:
    131131        dd      0
    132         dd      038358032h
     132        dd      03837fd91h
    133133        dd      0
    134134        dw      0, 1
     
    137137L16_1:
    138138        dd      0
    139         dd      038358032h
     139        dd      03837fd91h
    140140        dd      0
    141141        dw      0, 1
Note: See TracChangeset for help on using the changeset viewer.