Functionality
--------------
This translates InputBox's "OK" and "Cancel" button labels, according to the OS locale, taking the translations from Windows standard strings (the same used on messageboxes).

Based on sources
----------------
v3.1.0.15


***********************************************************
******************* inputbox.cpp
***********************************************************

in OnInitDialog()
add
// Gather Windows standard strings
typedef LPCWSTR (WINAPI*pfnUser)(int);
HMODULE hMod = LoadLibrary("user32.dll");
pfnUser mbString = (pfnUser)GetProcAddress(hMod, "MB_GetString");
char m_strOkLabel[256], m_strCancelLabel[256];
sprintf(m_strOkLabel, "%ws", mbString(0));
sprintf(m_strCancelLabel, "%ws", mbString(1));
FreeLibrary(hMod);
 		
// Localize the ok button
hControl = GetDlgItem(m_hWnd, IDOK);
SetWindowText(hControl, m_strOkLabel);

// Localize the cancel button
hControl = GetDlgItem(m_hWnd, IDCANCEL);
SetWindowText(hControl, m_strCancelLabel);