- Implement PSM_INDEXTOID, PSM_INDEXTOPAGE and PSM_PAGETOINDEX messages.
- Partially implement the PSH_WIZARDCONTEXTHELP and PSH_NOCONTEXTHELP styles.
This commit is contained in:
parent
39bbcb48b6
commit
67c8cb28f9
|
@ -20,7 +20,7 @@ LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
|
|||
#pragma code_page(936)
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "属性 "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
LANGUAGE LANG_CZECH, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Vlastnosti "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -40,7 +40,7 @@ STRINGTABLE DISCARDABLE
|
|||
}
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Eigenschaften für "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Properties for "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_SPANISH, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Propiedades de "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Propriétés pour "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
LANGUAGE LANG_ITALIAN, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Proprietà per "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Properties for "
|
||||
FONT 9, "MS UI Gothic"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Properties for "
|
||||
FONT 9, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
LANGUAGE LANG_DUTCH, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Eigenschappen van "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "W³aœciwoœci "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_PORTUGUESE, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Propriedades para "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Ñâîéñòâà äëÿ "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_SLOVENIAN, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Lastnosti"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
LANGUAGE LANG_THAI, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "¤Ø³ÊÁºÑµÔ¢Í§ "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
LANGUAGE LANG_UKRAINIAN, SUBLANG_DEFAULT
|
||||
|
||||
IDD_PROPSHEET DIALOG DISCARDABLE 0, 0, 220, 140
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
STYLE DS_CONTEXTHELP | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE
|
||||
CAPTION "Âëàñòèâîñò³ äëÿ "
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
|
|
|
@ -34,13 +34,12 @@
|
|||
* - Messages:
|
||||
* o PSM_GETRESULT
|
||||
* o PSM_IDTOINDEX
|
||||
* o PSM_INDEXTOID
|
||||
* o PSM_INDEXTOPAGE
|
||||
* o PSM_INSERTPAGE
|
||||
* o PSM_PAGETOINDEX
|
||||
* o PSM_RECALCPAGESIZES
|
||||
* o PSM_SETHEADERSUBTITLE
|
||||
* o PSM_SETHEADERTITLE
|
||||
* o WM_HELP
|
||||
* o WM_CONTEXTMENU
|
||||
* - Notifications:
|
||||
* o PSN_GETOBJECT
|
||||
* o PSN_QUERYINITIALFOCUS
|
||||
|
@ -48,10 +47,8 @@
|
|||
* - Styles:
|
||||
* o PSH_WIZARDHASFINISH
|
||||
* o PSH_RTLREADING
|
||||
* o PSH_WIZARDCONTEXTHELP
|
||||
* o PSH_STRETCHWATERMARK
|
||||
* o PSH_USEPAGELANG
|
||||
* o PSH_NOCONTEXTHELP
|
||||
* o PSH_USEPSTARTPAGE
|
||||
* - Page styles:
|
||||
* o PSP_USEFUSIONCONTEXT
|
||||
|
@ -237,18 +234,14 @@ static VOID PROPSHEET_UnImplementedFlags(DWORD dwFlags)
|
|||
* unhandled header flags:
|
||||
* PSH_WIZARDHASFINISH 0x00000010
|
||||
* PSH_RTLREADING 0x00000800
|
||||
* PSH_WIZARDCONTEXTHELP 0x00001000
|
||||
* PSH_STRETCHWATERMARK 0x00040000
|
||||
* PSH_USEPAGELANG 0x00200000
|
||||
* PSH_NOCONTEXTHELP 0x02000000 also not in .h
|
||||
*/
|
||||
|
||||
add_flag(PSH_WIZARDHASFINISH);
|
||||
add_flag(PSH_RTLREADING);
|
||||
add_flag(PSH_WIZARDCONTEXTHELP);
|
||||
add_flag(PSH_STRETCHWATERMARK);
|
||||
add_flag(PSH_USEPAGELANG);
|
||||
add_flag(PSH_NOCONTEXTHELP);
|
||||
if (string[0] != '\0')
|
||||
FIXME("%s\n", string);
|
||||
}
|
||||
|
@ -689,9 +682,29 @@ int PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
|
|||
|
||||
memcpy(temp, template, resSize);
|
||||
|
||||
if (psInfo->ppshheader.dwFlags & PSH_NOCONTEXTHELP)
|
||||
{
|
||||
if (((MyDLGTEMPLATEEX*)temp)->signature == 0xFFFF)
|
||||
((MyDLGTEMPLATEEX*)temp)->style &= ~DS_CONTEXTHELP;
|
||||
else
|
||||
((DLGTEMPLATE*)temp)->style &= ~DS_CONTEXTHELP;
|
||||
}
|
||||
if ((psInfo->ppshheader.dwFlags & INTRNL_ANY_WIZARD) &&
|
||||
(psInfo->ppshheader.dwFlags & PSH_WIZARDCONTEXTHELP))
|
||||
{
|
||||
if (((MyDLGTEMPLATEEX*)temp)->signature == 0xFFFF)
|
||||
((MyDLGTEMPLATEEX*)temp)->style |= DS_CONTEXTHELP;
|
||||
else
|
||||
((DLGTEMPLATE*)temp)->style |= DS_CONTEXTHELP;
|
||||
}
|
||||
|
||||
if (psInfo->useCallback)
|
||||
(*(psInfo->ppshheader.pfnCallback))(0, PSCB_PRECREATE, (LPARAM)temp);
|
||||
|
||||
/* NOTE: MSDN states "Returns a positive value if successful, or -1
|
||||
* otherwise for modal property sheets.", but this is wrong. The
|
||||
* actual return value is either TRUE (success), FALSE (cancel) or
|
||||
* -1 (error). */
|
||||
if( psInfo->unicode )
|
||||
{
|
||||
if (!(psInfo->ppshheader.dwFlags & PSH_MODELESS))
|
||||
|
@ -2568,7 +2581,16 @@ static LRESULT PROPSHEET_IndexToHwnd(HWND hwndDlg, int iPageIndex)
|
|||
*/
|
||||
static LRESULT PROPSHEET_PageToIndex(HWND hwndDlg, HPROPSHEETPAGE hPage)
|
||||
{
|
||||
FIXME("(%p, %p): stub\n", hwndDlg, hPage);
|
||||
int index;
|
||||
PropSheetInfo * psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
|
||||
PropSheetInfoStr);
|
||||
|
||||
TRACE("(%p, %p)\n", hwndDlg, hPage);
|
||||
|
||||
for (index = 0; index < psInfo->nPages; index++)
|
||||
if (psInfo->proppage[index].hpage == hPage)
|
||||
return index;
|
||||
WARN("%p not found\n", hPage);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -2577,8 +2599,14 @@ static LRESULT PROPSHEET_PageToIndex(HWND hwndDlg, HPROPSHEETPAGE hPage)
|
|||
*/
|
||||
static LRESULT PROPSHEET_IndexToPage(HWND hwndDlg, int iPageIndex)
|
||||
{
|
||||
FIXME("(%p, %d): stub\n", hwndDlg, iPageIndex);
|
||||
return 0;
|
||||
PropSheetInfo * psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
|
||||
PropSheetInfoStr);
|
||||
TRACE("(%p, %d)\n", hwndDlg, iPageIndex);
|
||||
if (iPageIndex<0 || iPageIndex>=psInfo->nPages) {
|
||||
WARN("%d out of range.\n", iPageIndex);
|
||||
return 0;
|
||||
}
|
||||
return (LRESULT)psInfo->proppage[iPageIndex].hpage;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
@ -2595,8 +2623,19 @@ static LRESULT PROPSHEET_IdToIndex(HWND hwndDlg, int iPageId)
|
|||
*/
|
||||
static LRESULT PROPSHEET_IndexToId(HWND hwndDlg, int iPageIndex)
|
||||
{
|
||||
FIXME("(%p, %d): stub\n", hwndDlg, iPageIndex);
|
||||
return 0;
|
||||
PropSheetInfo * psInfo = (PropSheetInfo*) GetPropW(hwndDlg,
|
||||
PropSheetInfoStr);
|
||||
LPCPROPSHEETPAGEW psp;
|
||||
TRACE("(%p, %d)\n", hwndDlg, iPageIndex);
|
||||
if (iPageIndex<0 || iPageIndex>=psInfo->nPages) {
|
||||
WARN("%d out of range.\n", iPageIndex);
|
||||
return 0;
|
||||
}
|
||||
psp = (LPCPROPSHEETPAGEW)psInfo->proppage[iPageIndex].hpage;
|
||||
if (psp->dwFlags & PSP_DLGINDIRECT || HIWORD(psp->u.pszTemplate)) {
|
||||
return 0;
|
||||
}
|
||||
return (LRESULT)psp->u.pszTemplate;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
|
Loading…
Reference in New Issue