In continuation of my message in the issue "Limit resizing to horizontal / vertical?", see #36 (comment)
The trouble appears only when application was started minimized.
In the dialog resource, progress bar is immediately below the list control (there are buttons below the progress bar and controls above the list).
Two control rectangles were logged in OnSize(), and after reasonable values this was seen:
OnSize List: 6 26 972 493
OnSize Progress: 6 493 972 504
OnSize List: 6 26 6 26
OnSize Progress: 6 -41 6 -30
Negative numbers appear in the call chain after mentioned pView->Create() call with zero rectangle for the window size.
When application window was restored, these values were logged:
OnSize List: 6 52 2200 1087
OnSize Progress: 6 994 2187 1005
On screen, all dialog controls were placed correctly, except the right bottom corner of the list which is too far down and right.
List effectively hides the progress bar and all buttons below, though some buttons and the bar were getting drawn upon the list and could be scrolled with the list contents (looks weird).
Regression testing showed that version 1.5.1 was free from the issue.
Finally, the issue was gone after commenting out these two lines in the current code.
|
if (!(GetStyle() & (WS_HSCROLL | WS_VSCROLL))) |
|
return; |
In continuation of my message in the issue "Limit resizing to horizontal / vertical?", see #36 (comment)
The trouble appears only when application was started minimized.
In the dialog resource, progress bar is immediately below the list control (there are buttons below the progress bar and controls above the list).
Two control rectangles were logged in OnSize(), and after reasonable values this was seen:
OnSize List: 6 26 972 493
OnSize Progress: 6 493 972 504
OnSize List: 6 26 6 26
OnSize Progress: 6 -41 6 -30
Negative numbers appear in the call chain after mentioned pView->Create() call with zero rectangle for the window size.
When application window was restored, these values were logged:
OnSize List: 6 52 2200 1087
OnSize Progress: 6 994 2187 1005
On screen, all dialog controls were placed correctly, except the right bottom corner of the list which is too far down and right.
List effectively hides the progress bar and all buttons below, though some buttons and the bar were getting drawn upon the list and could be scrolled with the list contents (looks weird).
Regression testing showed that version 1.5.1 was free from the issue.
Finally, the issue was gone after commenting out these two lines in the current code.
resizablelib/ResizableLib/ResizableFormView.cpp
Lines 132 to 133 in bebab50