|
|
| version 1.2, 2003/10/28 22:05:46 | version 1.3, 2003/10/29 10:09:37 |
|---|---|
| Line 125 static void calctextsize(char *path, int | Line 125 static void calctextsize(char *path, int |
| int pos; | int pos; |
| int step; | int step; |
| // NetscapeÉ÷Ì£ | |
| milstr_ncpy(path, p, leng); | milstr_ncpy(path, p, leng); |
| hdc = toolwin.hdcfont; | hdc = toolwin.hdcfont; |
| GetTextExtentPoint32(hdc, p, strlen(p), &cur); | GetTextExtentPoint32(hdc, p, strlen(p), &cur); |
| Line 139 static void calctextsize(char *path, int | Line 138 static void calctextsize(char *path, int |
| l = strlen(path); | l = strlen(path); |
| if (l > 1) { | if (l > 1) { |
| l -= 1; | l -= 1; |
| if (milstr_kanji2nd(p, l)) { | if (milstr_kanji2nd(p, l - 1)) { |
| l--; | l--; |
| } | } |
| } | } |
| Line 435 static void movingproc(RECT *rect) { | Line 434 static void movingproc(RECT *rect) { |
| } | } |
| } | } |
| } | } |
| d = rect->left - workrc.left; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->right - workrc.right; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } while(0); | } while(0); |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { |
| toolwin.winflg |= 1; | toolwin.winflg |= 1; |
| Line 477 static void movingproc(RECT *rect) { | Line 484 static void movingproc(RECT *rect) { |
| } | } |
| } | } |
| } | } |
| d = rect->top - workrc.top; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->bottom - workrc.bottom; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } while(0); | } while(0); |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { |
| toolwin.winflg |= 2; | toolwin.winflg |= 2; |
| Line 591 static LRESULT CALLBACK twproc(HWND hWnd | Line 606 static LRESULT CALLBACK twproc(HWND hWnd |
| case WM_DESTROY: | case WM_DESTROY: |
| toolwindestroy(); | toolwindestroy(); |
| toolwin.hwnd = NULL; | toolwin.hwnd = NULL; |
| TRACEOUT(("WM_DESTROY")); | |
| break; | break; |
| case WM_LBUTTONDOWN: | case WM_LBUTTONDOWN: |
| Line 643 void toolwin_open(void) { | Line 657 void toolwin_open(void) { |
| void toolwin_close(void) { | void toolwin_close(void) { |
| if (toolwin.hwnd) { | if (toolwin.hwnd) { |
| TRACEOUT(("DestroyWindow(toolwin.hwnd)")); | |
| DestroyWindow(toolwin.hwnd); | DestroyWindow(toolwin.hwnd); |
| // toolwin.hwnd = NULL; | |
| } | } |
| } | } |