Changeset 3145 for trunk/src/comctl32/propsheet.cpp
- Timestamp:
- Mar 17, 2000, 6:13:26 PM (25 years ago)
- 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:46cbratschi Exp $ */1 /* $Id: propsheet.cpp,v 1.2 2000-03-17 17:13:24 cbratschi Exp $ */ 2 2 /* 3 3 * Property Sheets … … 20 20 #include "prsht.h" 21 21 #include "dialog.h" 22 #include "win.h"23 22 #include "winnls.h" 24 23 #include "comctl32.h" … … 349 348 static INT PROPSHEET_DoDialogBox( HWND hwnd, HWND owner) 350 349 { 351 WND * wndPtr;352 350 DIALOGINFO * dlgInfo; 353 351 MSG msg; 354 352 INT retval; 355 353 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 358 358 /* Owner must be a top-level window */ 359 359 owner = WIN_GetTopParent( owner ); 360 if (! (wndPtr = WIN_FindWndPtr( hwnd))) return -1;361 dlgInfo = (DIALOGINFO 360 if (!IsWindow(hwnd))) return -1; 361 dlgInfo = (DIALOGINFO*)wndPtr->wExtra; 362 362 363 363 if (!dlgInfo->flags & DF_END) /* was EndDialog called in WM_INITDIALOG ? */ … … 377 377 } 378 378 retval = dlgInfo->idResult; 379 380 WIN_ReleaseWndPtr(wndPtr);381 379 #endif 382 380 DestroyWindow( hwnd ); … … 390 388 */ 391 389 392 //AH: WINE 9912123 not merged due to design violation (internal WINE structures used)393 394 390 BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo) 395 391 { 396 #if 0397 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 #endif443 392 LRESULT ret; 444 393 LPCVOID templ;
Note:
See TracChangeset
for help on using the changeset viewer.