[Project64] Get about ini window to be created with DialogBoxParamW
This commit is contained in:
parent
89361c5713
commit
c997b6b1d9
|
@ -160,7 +160,7 @@ void CMainGui::AboutBox(void)
|
|||
|
||||
void CMainGui::AboutIniBox(void)
|
||||
{
|
||||
DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_About_Ini), m_hMainWindow, (DLGPROC)AboutIniBoxProc, (LPARAM)this);
|
||||
DialogBoxParamW(GetModuleHandle(NULL), MAKEINTRESOURCEW(IDD_About_Ini), m_hMainWindow, (DLGPROC)AboutIniBoxProc, (LPARAM)this);
|
||||
}
|
||||
|
||||
DWORD CALLBACK AboutIniBoxProc(HWND hDlg, DWORD uMsg, DWORD wParam, DWORD /*lParam*/)
|
||||
|
@ -173,10 +173,7 @@ DWORD CALLBACK AboutIniBoxProc(HWND hDlg, DWORD uMsg, DWORD wParam, DWORD /*lPar
|
|||
wchar_t String[200];
|
||||
|
||||
//Title
|
||||
LONG_PTR originalWndProc = GetWindowLongPtrW(hDlg, GWLP_WNDPROC);
|
||||
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, (LONG_PTR)DefWindowProcW);
|
||||
SetWindowTextW(hDlg, GS(INI_TITLE));
|
||||
SetWindowLongPtrW(hDlg, GWLP_WNDPROC, originalWndProc);
|
||||
|
||||
//Language
|
||||
SetDlgItemTextW(hDlg, IDC_LAN, GS(INI_CURRENT_LANG));
|
||||
|
|
Loading…
Reference in New Issue