|
|
| version 1.6, 2005/02/09 20:11:36 | version 1.9, 2007/01/08 08:52:22 |
|---|---|
| Line 6 | Line 6 |
| #include "cpucore.h" | #include "cpucore.h" |
| static const OEMCHAR np2viewclass[] = OEMTEXT("NP2-ViewWindow"); | static const TCHAR np2viewclass[] = _T("NP2-ViewWindow"); |
| const OEMCHAR np2viewfont[] = OEMTEXT("£Í£Ó ¥´¥·¥Ã¥¯"); | const TCHAR np2viewfont[] = _T("£Í£Ó ¥´¥·¥Ã¥¯"); |
| NP2VIEW_T np2view[NP2VIEW_MAX]; | NP2VIEW_T np2view[NP2VIEW_MAX]; |
| extern HINSTANCE hInst; | extern HINSTANCE hInst; |
| static void viewer_segmode(HWND hwnd, BYTE type) { | static void viewer_segmode(HWND hwnd, UINT8 type) { |
| NP2VIEW_T *view; | NP2VIEW_T *view; |
| Line 106 LRESULT CALLBACK ViewProc(HWND hWnd, UIN | Line 106 LRESULT CALLBACK ViewProc(HWND hWnd, UIN |
| if (view) { | if (view) { |
| RECT rc; | RECT rc; |
| GetClientRect(hWnd, &rc); | GetClientRect(hWnd, &rc); |
| view->step = rc.bottom / 16; | view->step = (UINT16)(rc.bottom / 16); |
| viewcmn_setvscroll(hWnd, view); | viewcmn_setvscroll(hWnd, view); |
| } | } |
| break; | break; |
| Line 114 LRESULT CALLBACK ViewProc(HWND hWnd, UIN | Line 114 LRESULT CALLBACK ViewProc(HWND hWnd, UIN |
| case WM_VSCROLL: | case WM_VSCROLL: |
| view = viewcmn_find(hWnd); | view = viewcmn_find(hWnd); |
| if (view) { | if (view) { |
| DWORD newpos = view->pos; | UINT32 newpos = view->pos; |
| switch(LOWORD(wParam)) { | switch(LOWORD(wParam)) { |
| case SB_LINEUP: | case SB_LINEUP: |
| if (newpos) { | if (newpos) { |
| Line 226 void viewer_open(void) { | Line 226 void viewer_open(void) { |
| view = np2view; | view = np2view; |
| for (i=0; i<NP2VIEW_MAX; i++, view++) { | for (i=0; i<NP2VIEW_MAX; i++, view++) { |
| if (!view->alive) { | if (!view->alive) { |
| OEMCHAR buf[256]; | TCHAR buf[256]; |
| viewcmn_caption(view, buf); | viewcmn_caption(view, buf); |
| ZeroMemory(view, sizeof(NP2VIEW_T)); | ZeroMemory(view, sizeof(NP2VIEW_T)); |
| view->alive = TRUE; | view->alive = TRUE; |
| Line 263 void viewer_allclose(void) { | Line 263 void viewer_allclose(void) { |
| void viewer_allreload(BOOL force) { | void viewer_allreload(BOOL force) { |
| static DWORD last = 0; | static UINT32 last = 0; |
| DWORD now; | UINT32 now; |
| now = GetTickCount(); | now = GetTickCount(); |
| if ((force) || ((now - last) >= 200)) { | if ((force) || ((now - last) >= 200)) { |