|
|
| version 1.10, 2005/02/09 20:11:35 | version 1.12, 2007/11/11 07:11:27 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "np2.h" | #include "np2.h" |
| #include "oemtext.h" | |
| #include "dosio.h" | #include "dosio.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "cpucore.h" | #include "cpucore.h" |
| Line 91 void sysmng_updatecaption(UINT8 flag) { | Line 92 void sysmng_updatecaption(UINT8 flag) { |
| milstr_ncpy(work, np2oscfg.titles, NELEMENTS(work)); | milstr_ncpy(work, np2oscfg.titles, NELEMENTS(work)); |
| milstr_ncat(work, title, NELEMENTS(work)); | milstr_ncat(work, title, NELEMENTS(work)); |
| milstr_ncat(work, clock, NELEMENTS(work)); | milstr_ncat(work, clock, NELEMENTS(work)); |
| SetWindowText(hWndMain, work); | #if defined(OSLANG_UTF8) |
| TCHAR tchr[512]; | |
| oemtotchar(tchr, NELEMENTS(tchr), work, -1); | |
| SetWindowText(g_hWndMain, tchr); | |
| #else | |
| SetWindowText(g_hWndMain, work); | |
| #endif | |
| } | } |