DISABLE possibility to select multi-threaded filters and filter plugins at once

This commit is contained in:
spacy51 2008-05-20 17:14:55 +00:00
parent 4b83a9f2fe
commit c0166c1b5d
4 changed files with 16 additions and 7 deletions

View File

@ -439,6 +439,7 @@ BEGIN_MESSAGE_MAP(MainWnd, CWnd)
ON_UPDATE_COMMAND_UI(ID_OUTPUTAPI_XAUDIO2, &MainWnd::OnUpdateOutputapiXaudio2)
ON_COMMAND(ID_PIXELFILTER_MULTI, &MainWnd::OnPixelfilterMultiThreading)
ON_UPDATE_COMMAND_UI(ID_PIXELFILTER_MULTI, &MainWnd::OnUpdatePixelfilterMultiThreading)
ON_UPDATE_COMMAND_UI(ID_OPTIONS_SELECT_PLUGIN, &MainWnd::OnUpdateOptionsSelectPlugin)
END_MESSAGE_MAP()

View File

@ -427,6 +427,7 @@ public:
afx_msg void OnUpdateOutputapiXaudio2(CCmdUI *pCmdUI);
afx_msg void OnPixelfilterMultiThreading();
afx_msg void OnUpdatePixelfilterMultiThreading(CCmdUI *pCmdUI);
afx_msg void OnUpdateOptionsSelectPlugin(CCmdUI *pCmdUI);
};
/////////////////////////////////////////////////////////////////////////////

View File

@ -1363,6 +1363,7 @@ void MainWnd::OnUpdateOptionsFilter(CCmdUI *pCmdUI)
pCmdUI->SetCheck(theApp.filterType == FILTER_SUPER2XSAI);
break;
case ID_OPTIONS_FILTER_PLUGIN:
pCmdUI->Enable( !theApp.filterMT );
pCmdUI->SetCheck(theApp.filterType == FILTER_PLUGIN);
break;
case ID_OPTIONS_FILTER_SUPEREAGLE:
@ -1407,6 +1408,11 @@ void MainWnd::OnUpdateOptionsFilter(CCmdUI *pCmdUI)
}
}
void MainWnd::OnUpdateOptionsSelectPlugin(CCmdUI *pCmdUI)
{
pCmdUI->Enable( !theApp.filterMT );
}
BOOL MainWnd::OnOptionsFilterIFB(UINT nID)
{
switch(nID) {
@ -1869,5 +1875,6 @@ void MainWnd::OnPixelfilterMultiThreading()
void MainWnd::OnUpdatePixelfilterMultiThreading(CCmdUI *pCmdUI)
{
pCmdUI->Enable( theApp.filterType != FILTER_PLUGIN );
pCmdUI->SetCheck( theApp.filterMT ? 1 : 0 );
}

View File

@ -89,15 +89,15 @@ BEGIN
CTEXT "bufferInfo",IDC_BUFFERINFO,12,72,144,12,0,WS_EX_DLGMODALFRAME
END
IDD_SELECT_PLUGIN DIALOG 0, 0, 201, 120
IDD_SELECT_PLUGIN DIALOGEX 0, 0, 172, 54
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Select Filter Plugin"
FONT 8, "MS Sans Serif"
CAPTION "Filter Plugin"
FONT 8, "MS Sans Serif", 0, 0, 0x0
BEGIN
DEFPUSHBUTTON "OK",IDOK,39,89,50,14
PUSHBUTTON "Cancel",IDCANCEL,103,89,50,14
COMBOBOX IDC_COMBO_PLUGIN,20,28,163,58,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
LTEXT "Filter Plugin:",IDC_STATIC,18,15,66,8
DEFPUSHBUTTON "OK",IDOK,66,36,48,12
PUSHBUTTON "Cancel",IDCANCEL,120,36,48,12
COMBOBOX IDC_COMBO_PLUGIN,6,18,162,48,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
LTEXT "Please select filter plugin:",IDC_STATIC,6,6,162,8
END
7533 DIALOGEX 0, 0, 254, 203