Commit 6c5745bfe913c83b4d264ba0bf790337281d1824

Authored by xiemeng
1 parent 4912fd1d

初始化进度条大小

Showing 1 changed file with 7 additions and 1 deletions
@@ -165,7 +165,7 @@ BOOL InitializeApp(HINSTANCE hInst, int nShowCmd) @@ -165,7 +165,7 @@ BOOL InitializeApp(HINSTANCE hInst, int nShowCmd)
165 GlobalCleanup(); 165 GlobalCleanup();
166 return FALSE; 166 return FALSE;
167 } 167 }
168 - 168 + QuerySerialPortStatusEx(TTYInfo.unOpenedPortAry,2,255);
169 // 169 //
170 // setup program's tty child window class 170 // setup program's tty child window class
171 // 171 //
@@ -954,5 +954,11 @@ BOOL ResizeAllWindow(DWORD mainwidth, WORD mainheigh) @@ -954,5 +954,11 @@ BOOL ResizeAllWindow(DWORD mainwidth, WORD mainheigh)
954 rect_stauts.right -rect_stauts.left, 954 rect_stauts.right -rect_stauts.left,
955 rect_stauts.bottom -rect_stauts.top, 955 rect_stauts.bottom -rect_stauts.top,
956 TRUE); 956 TRUE);
  957 + MoveWindow(GetDlgItem(ghWndStatusDlg, IDC_TRANSFERPROGRESS),
  958 + rect_stauts.left,
  959 + rect_stauts.top,
  960 + rect_stauts.right -rect_stauts.left,
  961 + rect_stauts.bottom -rect_stauts.top,
  962 + TRUE);
957 963
958 } 964 }
Please register or login to post a comment