Ignore:
Timestamp:
Mar 17, 2000, 6:13:26 PM (25 years ago)
Author:
cbratschi
Message:

trackbar buddy fix, tooltip enhancements

File:
1 edited

Legend:

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

    r2875 r3145  
    1 /* $Id: propsheet.cpp,v 1.1 2000-02-23 17:09:46 cbratschi Exp $ */
     1/* $Id: propsheet.cpp,v 1.2 2000-03-17 17:13:24 cbratschi Exp $ */
    22/*
    33 * Property Sheets
     
    2020#include "prsht.h"
    2121#include "dialog.h"
    22 #include "win.h"
    2322#include "winnls.h"
    2423#include "comctl32.h"
     
    349348static INT PROPSHEET_DoDialogBox( HWND hwnd, HWND owner)
    350349{
    351    WND * wndPtr;
    352350   DIALOGINFO * dlgInfo;
    353351   MSG msg;
    354352   INT retval;
    355353
    356 //AH: that WINE internal - design violation!!1
    357 #if 0
     354   dprintf(("PROPSHEET: PROPSHEET_DoDialogBox not implemented!!!"));
     355
     356#if 0 //CB: implement! sync with user32\win32dlg.cpp DoDialogBox method (not easy)
     357      //    this functions isn't used so far
    358358     /* Owner must be a top-level window */
    359359   owner = WIN_GetTopParent( owner );
    360    if (!(wndPtr = WIN_FindWndPtr( hwnd ))) return -1;
    361    dlgInfo = (DIALOGINFO *)wndPtr->wExtra;
     360   if (!IsWindow(hwnd))) return -1;
     361   dlgInfo = (DIALOGINFO*)wndPtr->wExtra;
    362362
    363363   if (!dlgInfo->flags & DF_END) /* was EndDialog called in WM_INITDIALOG ? */
     
    377377   }
    378378   retval = dlgInfo->idResult;
    379 
    380    WIN_ReleaseWndPtr(wndPtr);
    381379#endif
    382380   DestroyWindow( hwnd );
     
    390388 */
    391389
    392 //AH: WINE 9912123 not merged due to design violation (internal WINE structures used)
    393 
    394390BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
    395391{
    396 #if 0
    397   LRESULT ret;
    398   LPCVOID template;
    399   LPVOID temp = 0;
    400   HRSRC hRes;
    401   DWORD resSize;
    402   WORD resID = IDD_PROPSHEET;
    403 
    404   if (psInfo->ppshheader->dwFlags & PSH_WIZARD)
    405     resID = IDD_WIZARD;
    406 
    407   if(!(hRes = FindResourceA(COMCTL32_hModule,
    408                             MAKEINTRESOURCEA(resID),
    409                             RT_DIALOGA)))
    410     return FALSE;
    411 
    412   if(!(template = (LPVOID)LoadResource(COMCTL32_hModule, hRes)))
    413     return FALSE;
    414 
    415   /*
    416    * Make a copy of the dialog template.
    417    */
    418   resSize = SizeofResource(COMCTL32_hModule, hRes);
    419 
    420   temp = COMCTL32_Alloc(resSize);
    421 
    422   if (!temp)
    423     return FALSE;
    424 
    425   memcpy(temp, template, resSize);
    426 
    427   if (psInfo->useCallback)
    428     (*(psInfo->ppshheader->pfnCallback))(0, PSCB_PRECREATE, (LPARAM)temp);
    429 
    430   ret = CreateDialogIndirectParamA(psInfo->ppshheader->hInstance,
    431                                      (LPDLGTEMPLATEA) temp,
    432                                      psInfo->ppshheader->hwndParent,
    433                                      (DLGPROC) PROPSHEET_DialogProc,
    434                                      (LPARAM)psInfo);
    435 
    436   if (!(psInfo->ppshheader->dwFlags & PSH_MODELESS))
    437      ret = PROPSHEET_DoDialogBox((HWND)ret, psInfo->ppshheader->hwndParent);
    438 
    439   COMCTL32_Free(temp);
    440 
    441   return ret;
    442 #endif
    443392  LRESULT ret;
    444393  LPCVOID templ;
Note: See TracChangeset for help on using the changeset viewer.