/* --------------------------------------- 加载窗口位置 --------------------------------------- */ static bool_t qst_com_win_load ( __CR_IN__ void_t* parm, __CR_IN__ uint_t argc, __CR_IN__ ansi_t** argv ) { sint_t x1, y1; uint_t ww, hh; CR_NOUSE(argc); CR_NOUSE(argv); /* 保存窗口位置 */ if (!misc_desk_load(WIN_ICONF, &x1, &y1, &ww, &hh)) return (FALSE); sQstComm* ctx; /* 设置窗口位置 */ ctx = (sQstComm*)parm; misc_bring2top(ctx->hwnd, NULL); return (SetWindowPos(ctx->hwnd, HWND_TOP, (int)x1, (int)y1, (int)ww, (int)hh, SWP_SHOWWINDOW)); }
/* --------------------------------------- 加载窗口位置 --------------------------------------- */ static bool_t qst_srv_win_load (void_t) { sint_t x1, y1; uint_t ww, hh; /* 保存窗口位置 */ if (!misc_desk_load(WIN_ICONF, &x1, &y1, &ww, &hh)) return (FALSE); /* 设置窗口位置 */ misc_bring2top(s_hwnd, NULL); return (misc_cui_setwin(s_hwnd, s_hcui, x1, y1, ww, hh)); }