CodePudding user response:
M_TreeCtrl. ModifyStyle (0, WS_BORDER, SWP_DEFERERASE | SWP_FRAMECHANGED);API SetWindowLong or SetWindowLongPtr GWL_STYLE
CodePudding user response:
WS_BORDER ModifyStyleCodePudding user response:
DWORD dwStyle=GetWindowLongPtr (HWND, GWL_STYLE);
SetWindowLongPtr (HWND GWL_STYLE, dwStyle | WS_BORDER);