Closed steprun closed 3 years ago
应该是下面代码的问题, 没有判断是否有WS_BORDER属性
else if(IsControl(hWnd)) // for control { if(win_info->dwStyle & WS_BORDER) { if(win_info->dwStyle & WS_THICKFRAME) { draw_3dbox(hdc, &rect, main_3d, LFRDR_3DBOX_THICKFRAME | LFRDR_BTN_STATUS_PRESSED); for(i = 2; i < border + 2; i++) { Rectangle(hdc, rect.left+i, rect.top+i, rect.right-i-1, rect.bottom-i-1); } } else if(win_info->dwStyle & WS_THINFRAME) { draw_3dbox(hdc, &rect, main_3d, LFRDR_BTN_STATUS_PRESSED); } else { draw_3dbox(hdc, &rect, main_3d, LFRDR_3DBOX_THICKFRAME | LFRDR_BTN_STATUS_PRESSED); } } else if(win_info->dwStyle & WS_THICKFRAME) { for(i = 0; i < 2; i++) { Rectangle(hdc, rect.left+i, rect.top+i, rect.right-i-1, rect.bottom-i-1); } } else { Rectangle(hdc, rect.left, rect.top, rect.right-1, rect.bottom-1); } }
Would you like to show the code correctly?
I have changed the values of WS_XXX
to avoid the possible conflict in the branch rel-5-0
.
Please rebuild the code, and give me a response.
Thanks!
/**
define WS_THINFRAME 0x00200000L
/**
define WS_TABSTOP 0x00400000L