mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 06:58:29 +00:00
[MMSYS] Implement ShowAudioPropertySheet() and ShowFullControlPanel()
This commit is contained in:
parent
ffea5152e6
commit
9cdd53ffeb
1 changed files with 63 additions and 18 deletions
|
@ -163,15 +163,6 @@ ShowMMCPLPropertySheet(HWND hwnd,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID WINAPI
|
|
||||||
ShowAudioPropertySheet(HWND hwnd,
|
|
||||||
HINSTANCE hInstance,
|
|
||||||
LPTSTR lpszCmd,
|
|
||||||
int nCmdShow)
|
|
||||||
{
|
|
||||||
DPRINT1("ShowAudioPropertySheet() stubs\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
VOID WINAPI
|
VOID WINAPI
|
||||||
mmseRunOnceW(HWND hwnd,
|
mmseRunOnceW(HWND hwnd,
|
||||||
HINSTANCE hInstance,
|
HINSTANCE hInstance,
|
||||||
|
@ -208,15 +199,6 @@ MediaPropPageProvider(LPVOID Info,
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID WINAPI
|
|
||||||
ShowFullControlPanel(HWND hwnd,
|
|
||||||
HINSTANCE hInstance,
|
|
||||||
LPSTR lpszCmd,
|
|
||||||
int nCmdShow)
|
|
||||||
{
|
|
||||||
DPRINT1("ShowFullControlPanel() stubs\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
InstallSystemSoundLabels(HKEY hKey)
|
InstallSystemSoundLabels(HKEY hKey)
|
||||||
{
|
{
|
||||||
|
@ -807,6 +789,69 @@ CPlApplet(HWND hwndCpl,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VOID WINAPI
|
||||||
|
ShowAudioPropertySheet(HWND hwnd,
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPTSTR lpszCmd,
|
||||||
|
int nCmdShow)
|
||||||
|
{
|
||||||
|
PROPSHEETPAGE psp[1];
|
||||||
|
PROPSHEETHEADER psh;
|
||||||
|
TCHAR Caption[256];
|
||||||
|
|
||||||
|
DPRINT("ShowAudioPropertySheet()\n");
|
||||||
|
|
||||||
|
LoadString(hApplet, IDS_CPLNAME, Caption, _countof(Caption));
|
||||||
|
|
||||||
|
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||||
|
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE | PSH_USEICONID | PSH_USECALLBACK;
|
||||||
|
psh.hwndParent = hwnd;
|
||||||
|
psh.hInstance = hInstance;
|
||||||
|
psh.pszIcon = MAKEINTRESOURCEW(IDI_CPLICON);
|
||||||
|
psh.pszCaption = Caption;
|
||||||
|
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
|
||||||
|
psh.nStartPage = 0;
|
||||||
|
psh.ppsp = psp;
|
||||||
|
psh.pfnCallback = PropSheetProc;
|
||||||
|
|
||||||
|
InitPropSheetPage(&psp[0], IDD_AUDIO,AudioDlgProc);
|
||||||
|
|
||||||
|
PropertySheet(&psh);
|
||||||
|
}
|
||||||
|
|
||||||
|
VOID WINAPI
|
||||||
|
ShowFullControlPanel(HWND hwnd,
|
||||||
|
HINSTANCE hInstance,
|
||||||
|
LPSTR lpszCmd,
|
||||||
|
int nCmdShow)
|
||||||
|
{
|
||||||
|
PROPSHEETPAGE psp[5];
|
||||||
|
PROPSHEETHEADER psh;
|
||||||
|
TCHAR Caption[256];
|
||||||
|
|
||||||
|
DPRINT("ShowFullControlPanel()\n");
|
||||||
|
|
||||||
|
LoadString(hApplet, IDS_CPLNAME, Caption, _countof(Caption));
|
||||||
|
|
||||||
|
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||||
|
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_PROPTITLE | PSH_USEICONID | PSH_USECALLBACK;
|
||||||
|
psh.hwndParent = hwnd;
|
||||||
|
psh.hInstance = hInstance;
|
||||||
|
psh.pszIcon = MAKEINTRESOURCEW(IDI_CPLICON);
|
||||||
|
psh.pszCaption = Caption;
|
||||||
|
psh.nPages = sizeof(psp) / sizeof(PROPSHEETPAGE);
|
||||||
|
psh.nStartPage = 0;
|
||||||
|
psh.ppsp = psp;
|
||||||
|
psh.pfnCallback = PropSheetProc;
|
||||||
|
|
||||||
|
InitPropSheetPage(&psp[0], IDD_VOLUME,VolumeDlgProc);
|
||||||
|
InitPropSheetPage(&psp[1], IDD_SOUNDS,SoundsDlgProc);
|
||||||
|
InitPropSheetPage(&psp[2], IDD_AUDIO,AudioDlgProc);
|
||||||
|
InitPropSheetPage(&psp[3], IDD_VOICE,VoiceDlgProc);
|
||||||
|
InitPropSheetPage(&psp[4], IDD_HARDWARE,HardwareDlgProc);
|
||||||
|
|
||||||
|
PropertySheet(&psh);
|
||||||
|
}
|
||||||
|
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
DllMain(HINSTANCE hinstDLL,
|
DllMain(HINSTANCE hinstDLL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue