Windows NT ( 2)



         

SETLOCAL - 5


case ID_HELP_ABOUT:

{

MessageBox(hWnd,

"Set and Get Local Information\n"

"(C) Alexandr Frolov, 1996\n"

"Email: frolov@glas.apc.org",

szAppTitle, MB_OK | MB_ICONINFORMATION);

return 0L;

break;

}

default:

break;

}

return FORWARD_WM_COMMAND(hWnd, id, hwndCtl, codeNotify,

DefWindowProc);

}

// -----------------------------------------------------

// DlgProc

// -----------------------------------------------------

LRESULT WINAPI

DlgProc(HWND hdlg, UINT msg, WPARAM wParam,

LPARAM lParam)

{

switch(msg)

{

HANDLE_MSG(hdlg, WM_INITDIALOG, DlgProc_OnInitDialog);

HANDLE_MSG(hdlg, WM_COMMAND, DlgProc_OnCommand);

default:

return FALSE;

}

}

// -----------------------------------------------------

// DlgProc_OnInitDialog

// -----------------------------------------------------

BOOL DlgProc_OnInitDialog(HWND hdlg, HWND hwndFocus,

LPARAM lParam)

{

UINT i;

HKL hklCurrent;

char szBuf[256];

//

//

//

// COMBOBOX,

//

for(i=0; i<uLayouts; i++)

{

//

hklCurrent = *(lpList + i);

//

GetLocaleInfo(

MAKELCID(((UINT)hklCurrent & 0xffffffff),

SORT_DEFAULT),

LOCALE_SLANGUAGE, szBuf, 512);

//

// COMBOBOX

SendMessage(GetDlgItem(hdlg, IDC_COMBO1),

CB_ADDSTRING, 0, (LPARAM)(LPSTR)szBuf);

}

return TRUE;

}

// -----------------------------------------------------