|
|
| version 1.10, 2003/10/30 22:33:34 | version 1.11, 2003/11/01 22:23:04 |
|---|---|
| Line 2 | Line 2 |
| #include "strres.h" | #include "strres.h" |
| #include "resource.h" | #include "resource.h" |
| #include "np2.h" | #include "np2.h" |
| #include "winloc.h" | |
| #include "dosio.h" | #include "dosio.h" |
| #include "soundmng.h" | #include "soundmng.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "menu.h" | #include "menu.h" |
| #include "toolwin.h" | #include "toolwin.h" |
| #include "ini.h" | #include "ini.h" |
| #include "np2class.h" | |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | #include "dialogs.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "diskdrv.h" | #include "diskdrv.h" |
| extern WINLOCEX np2_winlocexallwin(HWND base); | |
| enum { | enum { |
| IDC_TOOLHDDACC = 0, | IDC_TOOLHDDACC = 0, |
| IDC_TOOLFDD1ACC, | IDC_TOOLFDD1ACC, |
| Line 63 const char *text; | Line 68 const char *text; |
| typedef struct { | typedef struct { |
| HWND hwnd; | HWND hwnd; |
| WINLOCEX wlex; | |
| HBITMAP hbmp; | HBITMAP hbmp; |
| BYTE fddaccess[2]; | BYTE fddaccess[2]; |
| BYTE hddaccess; | BYTE hddaccess; |
| Line 83 typedef struct { | Line 89 typedef struct { |
| } TOOLWIN; | } TOOLWIN; |
| enum { | enum { |
| GTWL_FOCUS = 0, | GTWL_FOCUS = NP2GWL_SIZE + 0, |
| GTWL_SIZE = 4 | GTWL_SIZE = NP2GWL_SIZE + 4 |
| }; | }; |
| NP2TOOL np2tool; | NP2TOOL np2tool; |
| Line 382 static LRESULT CALLBACK twsub(HWND hWnd, | Line 388 static LRESULT CALLBACK twsub(HWND hWnd, |
| else if (msg == WM_SETFOCUS) { | else if (msg == WM_SETFOCUS) { |
| SetWindowLong(GetParent(hWnd), GTWL_FOCUS, idc); | SetWindowLong(GetParent(hWnd), GTWL_FOCUS, idc); |
| } | } |
| else if (msg == WM_SYSKEYDOWN) { | |
| if (((short)wp == VK_SPACE) && (lp & 0x20000000)) { | |
| return(SendMessage(GetParent(hWnd), msg, wp, lp)); | |
| } | |
| } | |
| return(CallWindowProc(toolwin.subproc[idc], hWnd, msg, wp, lp)); | return(CallWindowProc(toolwin.subproc[idc], hWnd, msg, wp, lp)); |
| } | } |
| Line 589 const char *file[SKINMRU_MAX]; | Line 590 const char *file[SKINMRU_MAX]; |
| static void skinchange(HWND hWnd) { | static void skinchange(HWND hWnd) { |
| const char *p; | const char *p; |
| UINT i; | UINT i; |
| HBITMAP hbmp; | HBITMAP hbmp; |
| BITMAP bmp; | BITMAP bmp; |
| WINLOCEX wlex; | |
| p = np2tool.skin; | p = np2tool.skin; |
| if (p[0]) { | if (p[0]) { |
| Line 613 const char *p; | Line 615 const char *p; |
| DrawMenuBar(hWnd); | DrawMenuBar(hWnd); |
| sysmng_update(SYS_UPDATEOSCFG); | sysmng_update(SYS_UPDATEOSCFG); |
| toolwin_movingstart(); | wlex = np2_winlocexallwin(hWndMain); |
| toolwindestroy(); | toolwindestroy(); |
| hbmp = skinload(np2tool.skin); | hbmp = skinload(np2tool.skin); |
| if (hbmp == NULL) { | if (hbmp == NULL) { |
| Line 622 const char *p; | Line 624 const char *p; |
| } | } |
| GetObject(hbmp, sizeof(BITMAP), &bmp); | GetObject(hbmp, sizeof(BITMAP), &bmp); |
| toolwin.hbmp = hbmp; | toolwin.hbmp = hbmp; |
| MoveWindow(hWnd, np2tool.posx, np2tool.posy, | winloc_setclientsize(hWnd, bmp.bmWidth, bmp.bmHeight); |
| bmp.bmWidth, bmp.bmHeight, TRUE); | |
| toolwincreate(hWnd); | toolwincreate(hWnd); |
| toolwin_movingend(); | winlocex_move(wlex); |
| } | winlocex_destroy(wlex); |
| // ---- moving | |
| enum { | |
| SNAPDOTPULL = 12, | |
| SNAPDOTREL = 16 | |
| }; | |
| static void movingstart(void) { | |
| toolwin.winflg = 0; | |
| toolwin.wingx = 0; | |
| toolwin.wingy = 0; | |
| } | |
| static void movingproc(RECT *rect) { | |
| RECT workrc; | |
| RECT mainrc; | |
| int winlx; | |
| int winly; | |
| BOOL changes; | |
| BOOL connectx; | |
| BOOL connecty; | |
| int d; | |
| SystemParametersInfo(SPI_GETWORKAREA, 0, &workrc, 0); | |
| GetWindowRect(hWndMain, &mainrc); | |
| winlx = rect->right - rect->left; | |
| winly = rect->bottom - rect->top; | |
| if ((winlx > (workrc.right - workrc.left)) || | |
| (winly > (workrc.bottom - workrc.top))) { | |
| return; | |
| } | |
| if (toolwin.winflg & 0x03) { | |
| toolwin.wingx += rect->left - toolwin.wintx; | |
| rect->left = toolwin.wintx; | |
| if ((toolwin.wingx >= SNAPDOTREL) || (toolwin.wingx <= -SNAPDOTREL)) { | |
| toolwin.winflg &= ~0x03; | |
| rect->left += toolwin.wingx; | |
| toolwin.wingx = 0; | |
| } | |
| rect->right = rect->left + winlx; | |
| } | |
| if (toolwin.winflg & 0x0c) { | |
| toolwin.wingy += rect->top - toolwin.winty; | |
| rect->top = toolwin.winty; | |
| if ((toolwin.wingy >= SNAPDOTREL) || (toolwin.wingy <= -SNAPDOTREL)) { | |
| toolwin.winflg &= ~0x0c; | |
| rect->top += toolwin.wingy; | |
| toolwin.wingy = 0; | |
| } | |
| rect->bottom = rect->top + winly; | |
| } | |
| connectx = ((rect->right >= mainrc.left) && (rect->left <= mainrc.right)); | |
| connecty = ((rect->bottom >= mainrc.top) && (rect->top <= mainrc.bottom)); | |
| if ((!connectx) || (!connecty)) { | |
| if (toolwin.winflg & 0x01) { | |
| toolwin.winflg &= ~0x01; | |
| rect->left += toolwin.wingx; | |
| rect->right = rect->left + winlx; | |
| toolwin.wingx = 0; | |
| } | |
| if (toolwin.winflg & 0x04) { | |
| toolwin.winflg &= ~0x04; | |
| rect->top += toolwin.wingy; | |
| rect->bottom = rect->top + winly; | |
| toolwin.wingy = 0; | |
| } | |
| } | |
| do { | |
| changes = FALSE; | |
| if ((!(toolwin.winflg & 0x01)) && | |
| (rect->bottom >= mainrc.top) && (rect->top <= mainrc.bottom)) { | |
| do { | |
| d = rect->left - mainrc.right; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->right - mainrc.left; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| if ((rect->bottom == mainrc.top) || | |
| (rect->top == mainrc.bottom)) { | |
| d = rect->left - mainrc.left; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->right - mainrc.right; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } | |
| } while(0); | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| toolwin.winflg |= 0x01; | |
| rect->left -= d; | |
| rect->right = rect->left + winlx; | |
| toolwin.wingx = d; | |
| toolwin.wintx = rect->left; | |
| changes = TRUE; | |
| } | |
| } | |
| if (!(toolwin.winflg & 0x03)) { | |
| do { | |
| d = rect->left - workrc.left; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->right - workrc.right; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } while(0); | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| toolwin.winflg |= 0x02; | |
| rect->left -= d; | |
| rect->right = rect->left + winlx; | |
| toolwin.wingx = d; | |
| toolwin.wintx = rect->left; | |
| changes = TRUE; | |
| } | |
| } | |
| if ((!(toolwin.winflg & 0x04)) && | |
| (rect->right >= mainrc.left) && (rect->left <= mainrc.right)) { | |
| do { | |
| d = rect->top - mainrc.bottom; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->bottom - mainrc.top; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| if ((rect->right == mainrc.left) || | |
| (rect->left == mainrc.right)) { | |
| d = rect->top - mainrc.top; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->bottom - mainrc.bottom; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } | |
| } while(0); | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| toolwin.winflg |= 0x04; | |
| rect->top -= d; | |
| rect->bottom = rect->top + winly; | |
| toolwin.wingy = d; | |
| toolwin.winty = rect->top; | |
| changes = TRUE; | |
| } | |
| } | |
| if (!(toolwin.winflg & 0x0c)) { | |
| do { | |
| d = rect->top - workrc.top; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| d = rect->bottom - workrc.bottom; | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| break; | |
| } | |
| } while(0); | |
| if ((d < SNAPDOTPULL) && (d > -SNAPDOTPULL)) { | |
| toolwin.winflg |= 0x08; | |
| rect->top -= d; | |
| rect->bottom = rect->top + winly; | |
| toolwin.wingy = d; | |
| toolwin.winty = rect->top; | |
| changes = TRUE; | |
| } | |
| } | |
| } while(changes); | |
| } | } |
| Line 834 static void openpopup(HWND hWnd, LPARAM | Line 652 static void openpopup(HWND hWnd, LPARAM |
| static LRESULT CALLBACK twproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { | static LRESULT CALLBACK twproc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp) { |
| HMENU hMenu; | HMENU hMenu; |
| BOOL r; | BOOL r; |
| UINT idc; | UINT idc; |
| WINLOCEX wlex; | |
| switch(msg) { | switch(msg) { |
| case WM_CREATE: | case WM_CREATE: |
| Line 845 static LRESULT CALLBACK twproc(HWND hWnd | Line 664 static LRESULT CALLBACK twproc(HWND hWnd |
| (UINT)createskinmenu(), str_toolskin); | (UINT)createskinmenu(), str_toolskin); |
| InsertMenu(hMenu, 1, MF_BYPOSITION | MF_SEPARATOR, 0, NULL); | InsertMenu(hMenu, 1, MF_BYPOSITION | MF_SEPARATOR, 0, NULL); |
| SetWindowLong(hWnd, GWL_STYLE, | np2class_windowtype(hWnd, np2tool.type); |
| GetWindowLong(hWnd, GWL_STYLE) & (~WS_CAPTION)); | |
| SetWindowPos(hWnd, 0, 0, 0, 0, 0, | |
| SWP_DRAWFRAME | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER); | |
| toolwincreate(hWnd); | toolwincreate(hWnd); |
| break; | break; |
| Line 953 static LRESULT CALLBACK twproc(HWND hWnd | Line 769 static LRESULT CALLBACK twproc(HWND hWnd |
| } | } |
| break; | break; |
| case WM_SYSKEYDOWN: // ALT+SPACEを自前処理 | |
| if (((short)wp == VK_SPACE) && (lp & 0x20000000)) { | |
| POINT pt; | |
| pt.x = 0; | |
| pt.y = 0; | |
| ClientToScreen(hWnd, &pt); | |
| return(SendMessage(hWnd, 0x313, 0, MAKELPARAM(pt.x, pt.y))); | |
| } | |
| break; | |
| case WM_PAINT: | case WM_PAINT: |
| toolwinpaint(hWnd); | toolwinpaint(hWnd); |
| break; | break; |
| Line 981 static LRESULT CALLBACK twproc(HWND hWnd | Line 787 static LRESULT CALLBACK twproc(HWND hWnd |
| case WM_ENTERSIZEMOVE: | case WM_ENTERSIZEMOVE: |
| soundmng_disable(SNDPROC_TOOL); | soundmng_disable(SNDPROC_TOOL); |
| movingstart(); | winlocex_destroy(toolwin.wlex); |
| toolwin.wlex = np2_winlocexallwin(hWnd); | |
| break; | break; |
| case WM_EXITSIZEMOVE: | case WM_MOVING: |
| soundmng_enable(SNDPROC_TOOL); | winlocex_moving(toolwin.wlex, (RECT *)lp); |
| break; | break; |
| case WM_MOVING: | case WM_EXITSIZEMOVE: |
| movingproc((RECT *)lp); | winlocex_destroy(toolwin.wlex); |
| toolwin.wlex = NULL; | |
| soundmng_enable(SNDPROC_TOOL); | |
| break; | break; |
| case WM_MOVE: | case WM_MOVE: |
| Line 1004 static LRESULT CALLBACK twproc(HWND hWnd | Line 813 static LRESULT CALLBACK twproc(HWND hWnd |
| break; | break; |
| case WM_CLOSE: | case WM_CLOSE: |
| xmenu_settoolwin(0); | sysmenu_settoolwin(0); |
| sysmng_update(SYS_UPDATEOSCFG); | sysmng_update(SYS_UPDATEOSCFG); |
| DestroyWindow(hWnd); | DestroyWindow(hWnd); |
| break; | break; |
| case WM_DESTROY: | case WM_DESTROY: |
| np2class_destroymenu(hWnd); | |
| toolwindestroy(); | toolwindestroy(); |
| toolwin.hwnd = NULL; | toolwin.hwnd = NULL; |
| break; | break; |
| case WM_LBUTTONDOWN: | case WM_LBUTTONDOWN: |
| SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0L); | if (np2tool.type & 1) { |
| return(SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0L)); | |
| } | |
| break; | break; |
| case WM_RBUTTONDOWN: | case WM_RBUTTONDOWN: |
| openpopup(hWnd, lp); | openpopup(hWnd, lp); |
| break; | break; |
| case WM_LBUTTONDBLCLK: | |
| np2tool.type ^= 1; | |
| wlex = np2_winlocexallwin(hWndMain); | |
| np2class_windowtype(hWnd, np2tool.type); | |
| winlocex_move(wlex); | |
| winlocex_destroy(wlex); | |
| sysmng_update(SYS_UPDATEOSCFG); | |
| break; | |
| default: | default: |
| return(DefWindowProc(hWnd, msg, wp, lp)); | return(DefWindowProc(hWnd, msg, wp, lp)); |
| } | } |
| Line 1032 BOOL toolwin_initapp(HINSTANCE hInstance | Line 853 BOOL toolwin_initapp(HINSTANCE hInstance |
| WNDCLASS wc; | WNDCLASS wc; |
| wc.style = CS_HREDRAW | CS_VREDRAW; | wc.style = CS_BYTEALIGNCLIENT | CS_HREDRAW | CS_VREDRAW | CS_DBLCLKS; |
| wc.lpfnWndProc = twproc; | wc.lpfnWndProc = twproc; |
| wc.cbClsExtra = 0; | wc.cbClsExtra = 0; |
| wc.cbWndExtra = GTWL_SIZE; | wc.cbWndExtra = GTWL_SIZE; |
| Line 1045 BOOL toolwin_initapp(HINSTANCE hInstance | Line 866 BOOL toolwin_initapp(HINSTANCE hInstance |
| return(RegisterClass(&wc)); | return(RegisterClass(&wc)); |
| } | } |
| void toolwin_open(void) { | void toolwin_create(void) { |
| HBITMAP hbmp; | HBITMAP hbmp; |
| BITMAP bmp; | BITMAP bmp; |
| Line 1061 void toolwin_open(void) { | Line 882 void toolwin_open(void) { |
| } | } |
| GetObject(hbmp, sizeof(BITMAP), &bmp); | GetObject(hbmp, sizeof(BITMAP), &bmp); |
| toolwin.hbmp = hbmp; | toolwin.hbmp = hbmp; |
| hWnd = CreateWindow(np2toolclass, np2tooltitle, WS_SYSMENU, | hWnd = CreateWindow(np2toolclass, np2tooltitle, |
| WS_SYSMENU | WS_MINIMIZEBOX, | |
| np2tool.posx, np2tool.posy, | np2tool.posx, np2tool.posy, |
| bmp.bmWidth, bmp.bmHeight, | bmp.bmWidth, bmp.bmHeight, |
| NULL, NULL, hInst, NULL); | NULL, NULL, hInst, NULL); |
| winloc_setclientsize(hWnd, bmp.bmWidth, bmp.bmHeight); | |
| toolwin.hwnd = hWnd; | toolwin.hwnd = hWnd; |
| if (hWnd == NULL) { | if (hWnd == NULL) { |
| goto twope_err2; | goto twope_err2; |
| } | } |
| UpdateWindow(hWnd); | UpdateWindow(hWnd); |
| ShowWindow(hWnd, SW_SHOW); | ShowWindow(hWnd, SW_SHOWNOACTIVATE); |
| SetForegroundWindow(hWndMain); | |
| return; | return; |
| twope_err2: | twope_err2: |
| DeleteObject(hbmp); | DeleteObject(hbmp); |
| twope_err1: | twope_err1: |
| xmenu_settoolwin(0); | sysmenu_settoolwin(0); |
| sysmng_update(SYS_UPDATEOSCFG); | sysmng_update(SYS_UPDATEOSCFG); |
| return; | return; |
| } | } |
| void toolwin_close(void) { | void toolwin_destroy(void) { |
| if (toolwin.hwnd) { | if (toolwin.hwnd) { |
| DestroyWindow(toolwin.hwnd); | DestroyWindow(toolwin.hwnd); |
| } | } |
| } | } |
| void toolwin_movingstart(void) { | HWND toolwin_gethwnd(void) { |
| RECT mainrc; | |
| RECT toolrc; | |
| UINT connect; | |
| if (toolwin.hwnd == NULL) { | return(toolwin.hwnd); |
| return; | |
| } | |
| GetWindowRect(hWndMain, &mainrc); | |
| GetWindowRect(toolwin.hwnd, &toolrc); | |
| connect = 0; | |
| if ((toolrc.bottom >= mainrc.top) && (toolrc.top <= mainrc.bottom)) { | |
| if (toolrc.right == mainrc.left) { | |
| connect += 0x01; | |
| } | |
| else if (toolrc.left == mainrc.right) { | |
| connect += 0x02; | |
| } | |
| else if (toolrc.left == mainrc.left) { | |
| connect += 0x03; | |
| } | |
| else if (toolrc.right == mainrc.right) { | |
| connect += 0x04; | |
| } | |
| } | |
| if ((toolrc.right >= mainrc.left) && (toolrc.left <= mainrc.right)) { | |
| if (toolrc.bottom == mainrc.top) { | |
| connect += 1 << 4; | |
| } | |
| else if (toolrc.top == mainrc.bottom) { | |
| connect += 2 << 4; | |
| } | |
| else if (toolrc.top == mainrc.top) { | |
| connect += 3 << 4; | |
| } | |
| else if (toolrc.bottom == mainrc.bottom) { | |
| connect += 4 << 4; | |
| } | |
| } | |
| toolwin.parentcn = connect; | |
| toolwin.parentx = mainrc.left; | |
| toolwin.parenty = mainrc.top; | |
| } | |
| void toolwin_movingend(void) { | |
| UINT connect; | |
| RECT mainrc; | |
| RECT toolrc; | |
| int cx; | |
| int cy; | |
| connect = toolwin.parentcn; | |
| toolwin.parentcn = 0; | |
| if ((toolwin.hwnd == NULL) || (!connect)) { | |
| return; | |
| } | |
| GetWindowRect(hWndMain, &mainrc); | |
| GetWindowRect(toolwin.hwnd, &toolrc); | |
| cx = toolrc.right - toolrc.left; | |
| cy = toolrc.bottom - toolrc.top; | |
| toolrc.left += mainrc.left - toolwin.parentx; | |
| toolrc.top += mainrc.top - toolwin.parenty; | |
| switch(connect & 0x0f) { | |
| case 1: | |
| toolrc.left = mainrc.left - cx; | |
| break; | |
| case 2: | |
| toolrc.left = mainrc.right; | |
| break; | |
| case 3: | |
| toolrc.left = mainrc.left; | |
| break; | |
| case 4: | |
| toolrc.left = mainrc.right - cx; | |
| break; | |
| } | |
| switch((connect >> 4) & 0x0f) { | |
| case 1: | |
| toolrc.top = mainrc.top - cy; | |
| break; | |
| case 2: | |
| toolrc.top = mainrc.bottom; | |
| break; | |
| case 3: | |
| toolrc.top = mainrc.top; | |
| break; | |
| case 4: | |
| toolrc.top = mainrc.bottom - cy; | |
| break; | |
| } | |
| MoveWindow(toolwin.hwnd, toolrc.left, toolrc.top, cx, cy, TRUE); | |
| } | } |
| void toolwin_setfdd(BYTE drv, const char *name) { | void toolwin_setfdd(BYTE drv, const char *name) { |
| Line 1308 static const char ini_title[] = "NP2 too | Line 1034 static const char ini_title[] = "NP2 too |
| static const INITBL iniitem[] = { | static const INITBL iniitem[] = { |
| {"WindposX", INITYPE_SINT32, &np2tool.posx, 0}, | {"WindposX", INITYPE_SINT32, &np2tool.posx, 0}, |
| {"WindposY", INITYPE_SINT32, &np2tool.posy, 0}, | {"WindposY", INITYPE_SINT32, &np2tool.posy, 0}, |
| {"WindType", INITYPE_BOOL, &np2tool.type, 0}, | |
| {"SkinFile", INITYPE_STR, np2tool.skin, MAX_PATH}, | {"SkinFile", INITYPE_STR, np2tool.skin, MAX_PATH}, |
| {"SkinMRU0", INITYPE_STR, np2tool.skinmru[0], MAX_PATH}, | {"SkinMRU0", INITYPE_STR, np2tool.skinmru[0], MAX_PATH}, |
| {"SkinMRU1", INITYPE_STR, np2tool.skinmru[1], MAX_PATH}, | {"SkinMRU1", INITYPE_STR, np2tool.skinmru[1], MAX_PATH}, |
| Line 1337 void toolwin_readini(void) { | Line 1064 void toolwin_readini(void) { |
| ZeroMemory(&np2tool, sizeof(np2tool)); | ZeroMemory(&np2tool, sizeof(np2tool)); |
| np2tool.posx = CW_USEDEFAULT; | np2tool.posx = CW_USEDEFAULT; |
| np2tool.posy = CW_USEDEFAULT; | np2tool.posy = CW_USEDEFAULT; |
| np2tool.type = 1; | |
| initgetfile(path, sizeof(path)); | initgetfile(path, sizeof(path)); |
| ini_read(path, ini_title, iniitem, sizeof(iniitem)/sizeof(INITBL)); | ini_read(path, ini_title, iniitem, sizeof(iniitem)/sizeof(INITBL)); |
| } | } |