Merge pull request #2023 from vgturtle127/beautification-8
Beautification 8 - Source\Project64\UserInterface\Settings directory
This commit is contained in:
commit
b4c64ef734
|
@ -9,7 +9,7 @@ CAdvancedOptionsPage::CAdvancedOptionsPage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_START_ON_ROM_OPEN, wGS(ADVANCE_AUTO_START).c_str());
|
SetDlgItemText(IDC_START_ON_ROM_OPEN, wGS(ADVANCE_AUTO_START).c_str());
|
||||||
SetDlgItemText(IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str());
|
SetDlgItemText(IDC_ZIP, wGS(ADVANCE_COMPRESS).c_str());
|
||||||
SetDlgItemText(IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str());
|
SetDlgItemText(IDC_DEBUGGER, wGS(ADVANCE_DEBUGGER).c_str());
|
||||||
|
|
|
@ -106,4 +106,4 @@ void CDefaultsOptionsPage::UpdatePageSettings(void)
|
||||||
m_InUpdateSettings = true;
|
m_InUpdateSettings = true;
|
||||||
CSettingsPageImpl<CDefaultsOptionsPage>::UpdatePageSettings();
|
CSettingsPageImpl<CDefaultsOptionsPage>::UpdatePageSettings();
|
||||||
m_InUpdateSettings = false;
|
m_InUpdateSettings = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ m_InUpdateSettings(false)
|
||||||
m_TextureDefault.Attach(GetDlgItem(IDC_TEXTURE_DEFAULT));
|
m_TextureDefault.Attach(GetDlgItem(IDC_TEXTURE_DEFAULT));
|
||||||
m_TextureSelected.Attach(GetDlgItem(IDC_TEXTURE_OTHER));
|
m_TextureSelected.Attach(GetDlgItem(IDC_TEXTURE_OTHER));
|
||||||
|
|
||||||
//Set Text language for the dialog box
|
// Set text language for the dialog box
|
||||||
::SetWindowText(m_PluginGroup.m_hWnd, wGS(DIR_PLUGIN).c_str());
|
::SetWindowText(m_PluginGroup.m_hWnd, wGS(DIR_PLUGIN).c_str());
|
||||||
::SetWindowText(m_AutoSaveGroup.m_hWnd, wGS(DIR_AUTO_SAVE).c_str());
|
::SetWindowText(m_AutoSaveGroup.m_hWnd, wGS(DIR_AUTO_SAVE).c_str());
|
||||||
::SetWindowText(m_InstantSaveGroup.m_hWnd, wGS(DIR_INSTANT_SAVE).c_str());
|
::SetWindowText(m_InstantSaveGroup.m_hWnd, wGS(DIR_INSTANT_SAVE).c_str());
|
||||||
|
@ -50,8 +50,8 @@ int CALLBACK COptionsDirectoriesPage::SelectDirCallBack(HWND hwnd, DWORD uMsg, D
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case BFFM_INITIALIZED:
|
case BFFM_INITIALIZED:
|
||||||
// WParam is TRUE since you are passing a path.
|
// WParam is TRUE since you are passing a path
|
||||||
// It would be FALSE if you were passing a pidl.
|
// It would be FALSE if you were passing a PIDL
|
||||||
if (lpData)
|
if (lpData)
|
||||||
{
|
{
|
||||||
SendMessage(hwnd, BFFM_SETSELECTION, TRUE, lpData);
|
SendMessage(hwnd, BFFM_SETSELECTION, TRUE, lpData);
|
||||||
|
@ -341,4 +341,4 @@ void COptionsDirectoriesPage::ResetPage()
|
||||||
ResetDefaultSelected(m_TextureDefault, m_TextureSelected, Directory_TextureUseSelected);
|
ResetDefaultSelected(m_TextureDefault, m_TextureSelected, Directory_TextureUseSelected);
|
||||||
|
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ CDiskDrivePage::CDiskDrivePage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_IPLDIR_JP_TXT, wGS(OPTION_IPL_ROM_PATH).c_str());
|
SetDlgItemText(IDC_IPLDIR_JP_TXT, wGS(OPTION_IPL_ROM_PATH).c_str());
|
||||||
SetDlgItemText(IDC_IPLDIR_US_TXT, wGS(OPTION_IPL_ROM_USA_PATH).c_str());
|
SetDlgItemText(IDC_IPLDIR_US_TXT, wGS(OPTION_IPL_ROM_USA_PATH).c_str());
|
||||||
SetDlgItemText(IDC_IPLDIR_TL_TXT, wGS(OPTION_IPL_ROM_TOOL_PATH).c_str());
|
SetDlgItemText(IDC_IPLDIR_TL_TXT, wGS(OPTION_IPL_ROM_TOOL_PATH).c_str());
|
||||||
|
@ -140,7 +140,7 @@ void CDiskDrivePage::UpdatePageSettings(void)
|
||||||
|
|
||||||
void CDiskDrivePage::SelectFile(LanguageStringID /*Title*/, CModifiedEditBox & EditBox)
|
void CDiskDrivePage::SelectFile(LanguageStringID /*Title*/, CModifiedEditBox & EditBox)
|
||||||
{
|
{
|
||||||
const char * Filter = "64DD IPL ROM Image (*.zip, *.7z, *.?64, *.rom, *.usa, *.jap, *.pal, *.bin)\0*.?64;*.zip;*.7z;*.bin;*.rom;*.usa;*.jap;*.pal\0All files (*.*)\0*.*\0";
|
const char * Filter = "64DD IPL ROM image (*.zip, *.7z, *.?64, *.rom, *.usa, *.jap, *.pal, *.bin)\0*.?64;*.zip;*.7z;*.bin;*.rom;*.usa;*.jap;*.pal\0All files (*.*)\0*.*\0";
|
||||||
|
|
||||||
CPath FileName;
|
CPath FileName;
|
||||||
if (FileName.SelectFile(m_hWnd, g_Settings->LoadStringVal(RomList_GameDir).c_str(), Filter, true))
|
if (FileName.SelectFile(m_hWnd, g_Settings->LoadStringVal(RomList_GameDir).c_str(), Filter, true))
|
||||||
|
@ -149,4 +149,4 @@ void CDiskDrivePage::SelectFile(LanguageStringID /*Title*/, CModifiedEditBox & E
|
||||||
EditBox.SetWindowText(stdstr((const char *)FileName).ToUTF16().c_str());
|
EditBox.SetWindowText(stdstr((const char *)FileName).ToUTF16().c_str());
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ CGameDiskDrivePage::CGameDiskDrivePage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_DISKSEEKTIMING_TEXT2, wGS(ROM_DISK_SEEK_TIMING).c_str());
|
SetDlgItemText(IDC_DISKSEEKTIMING_TEXT2, wGS(ROM_DISK_SEEK_TIMING).c_str());
|
||||||
|
|
||||||
CModifiedComboBox* ComboBox;
|
CModifiedComboBox* ComboBox;
|
||||||
|
|
|
@ -10,7 +10,7 @@ CGameGeneralPage::CGameGeneralPage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_GOOD_NAME_TEXT, wGS(RB_GOODNAME).c_str());
|
SetDlgItemText(IDC_GOOD_NAME_TEXT, wGS(RB_GOODNAME).c_str());
|
||||||
|
|
||||||
SetDlgItemText(IDC_MEMORY_SIZE_TEXT, wGS(ROM_MEM_SIZE).c_str());
|
SetDlgItemText(IDC_MEMORY_SIZE_TEXT, wGS(ROM_MEM_SIZE).c_str());
|
||||||
|
|
|
@ -10,7 +10,7 @@ CGamePluginPage::CGamePluginPage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
|
@ -106,7 +106,7 @@ void CGamePluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load the plugin
|
// Load the plugin
|
||||||
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
|
HMODULE hLib = LoadLibrary(stdstr((const char *)Plugin->FullPath).ToUTF16().c_str());
|
||||||
SetErrorMode(LastErrorMode);
|
SetErrorMode(LastErrorMode);
|
||||||
|
@ -115,11 +115,11 @@ void CGamePluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get DLL about
|
// Get DLL about
|
||||||
void(CALL *DllAbout) (HWND hWnd);
|
void(CALL *DllAbout) (HWND hWnd);
|
||||||
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
||||||
|
|
||||||
//call the function from the dll
|
// Call the function from the DLL
|
||||||
DllAbout(m_hWnd);
|
DllAbout(m_hWnd);
|
||||||
|
|
||||||
FreeLibrary(hLib);
|
FreeLibrary(hLib);
|
||||||
|
@ -335,4 +335,4 @@ void CGamePluginPage::HleAudioChanged(UINT /*Code*/, int id, HWND /*ctl*/)
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ CGameRecompilePage::CGameRecompilePage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_CPU_TYPE_TEXT, wGS(ROM_CPU_STYLE).c_str());
|
SetDlgItemText(IDC_CPU_TYPE_TEXT, wGS(ROM_CPU_STYLE).c_str());
|
||||||
SetDlgItemText(IDC_FUNCFIND_TEXT, wGS(ROM_FUNC_FIND).c_str());
|
SetDlgItemText(IDC_FUNCFIND_TEXT, wGS(ROM_FUNC_FIND).c_str());
|
||||||
|
|
||||||
|
@ -84,4 +84,4 @@ bool CGameRecompilePage::EnableReset(void)
|
||||||
void CGameRecompilePage::ResetPage()
|
void CGameRecompilePage::ResetPage()
|
||||||
{
|
{
|
||||||
CSettingsPageImpl<CGameRecompilePage>::ResetPage();
|
CSettingsPageImpl<CGameRecompilePage>::ResetPage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ CGameStatusPage::CGameStatusPage(HWND hParent, const RECT & rcDispay)
|
||||||
|
|
||||||
CIniFile RomIniFile(g_Settings->LoadStringVal(SupportFile_RomDatabase).c_str());
|
CIniFile RomIniFile(g_Settings->LoadStringVal(SupportFile_RomDatabase).c_str());
|
||||||
CIniFile::strlist Keys;
|
CIniFile::strlist Keys;
|
||||||
RomIniFile.GetKeyList("Rom Status", Keys);
|
RomIniFile.GetKeyList("ROM Status", Keys);
|
||||||
stdstr Status = UISettingsLoadStringVal(Rdb_Status);
|
stdstr Status = UISettingsLoadStringVal(Rdb_Status);
|
||||||
|
|
||||||
CModifiedComboBoxTxt * ComboBox;
|
CModifiedComboBoxTxt * ComboBox;
|
||||||
|
@ -60,4 +60,4 @@ bool CGameStatusPage::EnableReset(void)
|
||||||
void CGameStatusPage::ResetPage()
|
void CGameStatusPage::ResetPage()
|
||||||
{
|
{
|
||||||
CSettingsPageImpl<CGameStatusPage>::ResetPage();
|
CSettingsPageImpl<CGameStatusPage>::ResetPage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,16 +93,16 @@ void COptionsGameBrowserPage::AddFieldClicked(UINT /*Code*/, int /*id*/, HWND /*
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//remove from list
|
// Remove from list
|
||||||
int i = m_Avaliable.GetItemData(index);
|
int i = m_Avaliable.GetItemData(index);
|
||||||
m_Avaliable.DeleteString(index);
|
m_Avaliable.DeleteString(index);
|
||||||
|
|
||||||
//select next in list
|
// Select next in list
|
||||||
int listCount = m_Avaliable.GetCount();
|
int listCount = m_Avaliable.GetCount();
|
||||||
if (index >= listCount) { index -= 1; }
|
if (index >= listCount) { index -= 1; }
|
||||||
m_Avaliable.SetCurSel(index);
|
m_Avaliable.SetCurSel(index);
|
||||||
|
|
||||||
//Add to list
|
// Add to list
|
||||||
index = m_Using.AddString(wGS(m_Fields[i].LangID()).c_str());
|
index = m_Using.AddString(wGS(m_Fields[i].LangID()).c_str());
|
||||||
m_Using.SetItemData(index, i);
|
m_Using.SetItemData(index, i);
|
||||||
m_Using.SetCurSel(index);
|
m_Using.SetCurSel(index);
|
||||||
|
@ -119,16 +119,16 @@ void COptionsGameBrowserPage::RemoveFieldClicked(UINT /*Code*/, int /*id*/, HWND
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//remove from list
|
// Remove from list
|
||||||
int i = m_Using.GetItemData(index);
|
int i = m_Using.GetItemData(index);
|
||||||
m_Using.DeleteString(index);
|
m_Using.DeleteString(index);
|
||||||
|
|
||||||
//select next in list
|
// Select next in list
|
||||||
int listCount = m_Using.GetCount();
|
int listCount = m_Using.GetCount();
|
||||||
if (index >= listCount) { index -= 1; }
|
if (index >= listCount) { index -= 1; }
|
||||||
m_Using.SetCurSel(index);
|
m_Using.SetCurSel(index);
|
||||||
|
|
||||||
//Add to list
|
// Add to list
|
||||||
index = m_Avaliable.AddString(wGS(m_Fields[i].LangID()).c_str());
|
index = m_Avaliable.AddString(wGS(m_Fields[i].LangID()).c_str());
|
||||||
m_Avaliable.SetItemData(index, i);
|
m_Avaliable.SetItemData(index, i);
|
||||||
m_Avaliable.SetCurSel(index);
|
m_Avaliable.SetCurSel(index);
|
||||||
|
@ -246,4 +246,4 @@ void COptionsGameBrowserPage::ResetPage()
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
}
|
}
|
||||||
CSettingsPageImpl<COptionsGameBrowserPage>::ResetPage();
|
CSettingsPageImpl<COptionsGameBrowserPage>::ResetPage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT /*Code*/, int /*id*/, HWND /*
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
//find Parent
|
// Find parent
|
||||||
HTREEITEM hParent = m_MenuItems.GetChildItem(TVI_ROOT);
|
HTREEITEM hParent = m_MenuItems.GetChildItem(TVI_ROOT);
|
||||||
while (hParent)
|
while (hParent)
|
||||||
{
|
{
|
||||||
|
@ -139,7 +139,7 @@ void COptionsShortCutsPage::OnRemoveClicked(UINT /*Code*/, int /*id*/, HWND /*ct
|
||||||
|
|
||||||
CShortCutItem * ShortCut = (CShortCutItem *)m_MenuItems.GetItemData(hSelectedItem);
|
CShortCutItem * ShortCut = (CShortCutItem *)m_MenuItems.GetItemData(hSelectedItem);
|
||||||
|
|
||||||
//Make sure an item is selected
|
// Make sure an item is selected
|
||||||
int index = m_CurrentKeys.GetCurSel();
|
int index = m_CurrentKeys.GetCurSel();
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
|
@ -162,7 +162,7 @@ void COptionsShortCutsPage::OnDetectKeyClicked(UINT /*Code*/, int /*id*/, HWND /
|
||||||
|
|
||||||
void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||||
{
|
{
|
||||||
//Get the virtual key info
|
// Get the virtual key info
|
||||||
int index = m_VirtualKeyList.GetCurSel();
|
int index = m_VirtualKeyList.GetCurSel();
|
||||||
if (index < 0)
|
if (index < 0)
|
||||||
{
|
{
|
||||||
|
@ -216,7 +216,7 @@ void COptionsShortCutsPage::OnAssignClicked(UINT /*Code*/, int /*id*/, HWND /*ct
|
||||||
|
|
||||||
void COptionsShortCutsPage::OnShortCutChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
void COptionsShortCutsPage::OnShortCutChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/)
|
||||||
{
|
{
|
||||||
//Get the virtual key info
|
// Get the virtual key info
|
||||||
int index = m_VirtualKeyList.GetCurSel();
|
int index = m_VirtualKeyList.GetCurSel();
|
||||||
if (index < 0) { return; }
|
if (index < 0) { return; }
|
||||||
WORD key = (WORD)m_VirtualKeyList.GetItemData(index);
|
WORD key = (WORD)m_VirtualKeyList.GetItemData(index);
|
||||||
|
@ -364,4 +364,4 @@ void COptionsShortCutsPage::ResetPage()
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
m_CurrentKeys.ResetContent();
|
m_CurrentKeys.ResetContent();
|
||||||
CSettingsPageImpl<COptionsShortCutsPage>::ResetPage();
|
CSettingsPageImpl<COptionsShortCutsPage>::ResetPage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ m_SettingsConfig(SettingsConfig)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(IDC_AUTOSLEEP, wGS(OPTION_AUTO_SLEEP).c_str());
|
SetDlgItemText(IDC_AUTOSLEEP, wGS(OPTION_AUTO_SLEEP).c_str());
|
||||||
SetDlgItemText(IDC_LOAD_FULLSCREEN, wGS(OPTION_AUTO_FULLSCREEN).c_str());
|
SetDlgItemText(IDC_LOAD_FULLSCREEN, wGS(OPTION_AUTO_FULLSCREEN).c_str());
|
||||||
SetDlgItemText(IDC_SCREEN_SAVER, wGS(OPTION_DISABLE_SS).c_str());
|
SetDlgItemText(IDC_SCREEN_SAVER, wGS(OPTION_DISABLE_SS).c_str());
|
||||||
|
|
|
@ -9,7 +9,7 @@ COptionPluginPage::COptionPluginPage(HWND hParent, const RECT & rcDispay)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Set the text for all gui Items
|
// Set the text for all GUI items
|
||||||
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(RSP_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(GFX_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
SetDlgItemText(AUDIO_ABOUT, wGS(PLUG_ABOUT).c_str());
|
||||||
|
@ -98,7 +98,7 @@ void COptionPluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Load the plugin
|
// Load the plugin
|
||||||
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
UINT LastErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||||
HMODULE hLib = LoadLibrary(stdstr((const char *)(Plugin->FullPath)).ToUTF16().c_str());
|
HMODULE hLib = LoadLibrary(stdstr((const char *)(Plugin->FullPath)).ToUTF16().c_str());
|
||||||
SetErrorMode(LastErrorMode);
|
SetErrorMode(LastErrorMode);
|
||||||
|
@ -107,11 +107,11 @@ void COptionPluginPage::ShowAboutButton(int id)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get DLL about
|
// Get DLL about
|
||||||
void(CALL *DllAbout) (HWND hWnd);
|
void(CALL *DllAbout) (HWND hWnd);
|
||||||
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
DllAbout = (void(CALL *)(HWND))GetProcAddress(hLib, "DllAbout");
|
||||||
|
|
||||||
//call the function from the dll
|
// Call the function from the DLL
|
||||||
DllAbout(m_hWnd);
|
DllAbout(m_hWnd);
|
||||||
|
|
||||||
FreeLibrary(hLib);
|
FreeLibrary(hLib);
|
||||||
|
@ -319,4 +319,4 @@ void COptionPluginPage::HleAudioChanged(UINT /*Code*/, int id, HWND /*ctl*/)
|
||||||
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
SendMessage(GetParent(), PSM_CHANGED, (WPARAM)m_hWnd, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue