comctl32: support PSM_IDTOINDEX
Thomas Weidenmueller
wine-patches at reactsoft.com
Thu Jul 14 14:40:12 CDT 2005
Support PSM_IDTOINDEX.
Best Regards,
Thomas Weidenmueller
-------------- next part --------------
Index: dlls/comctl32/propsheet.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/propsheet.c,v
retrieving revision 1.130
diff -u -r1.130 propsheet.c
--- dlls/comctl32/propsheet.c 6 Jul 2005 19:03:33 -0000 1.130
+++ dlls/comctl32/propsheet.c 14 Jul 2005 19:38:03 -0000
@@ -33,7 +33,6 @@
* - Enforcing of minimal wizard size
* - Messages:
* o PSM_GETRESULT
- * o PSM_IDTOINDEX
* o PSM_INSERTPAGE
* o PSM_RECALCPAGESIZES
* o PSM_SETHEADERSUBTITLE
@@ -2593,7 +2592,17 @@
*/
static LRESULT PROPSHEET_IdToIndex(HWND hwndDlg, int iPageId)
{
- FIXME("(%p, %d): stub\n", hwndDlg, iPageId);
+ int index;
+ LPCPROPSHEETPAGEW psp;
+ PropSheetInfo * psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
+ PropSheetInfoStr);
+ TRACE("(%p, %d)\n", hwndDlg, iPageId);
+ for (index = 0; index < psInfo->nPages; index++) {
+ psp = (LPCPROPSHEETPAGEW)psInfo->proppage[index].hpage;
+ if (psp->u.pszTemplate == (LPCWSTR)iPageId)
+ return index;
+ }
+
return -1;
}
More information about the wine-patches
mailing list