Home > Software engineering >  Set the tree control Border attribute to true correlation function
Set the tree control Border attribute to true correlation function

Time:09-26

With code set tree control Border attribute, which one to use?

CodePudding user response:

M_TreeCtrl. ModifyStyle (0, WS_BORDER, SWP_DEFERERASE | SWP_FRAMECHANGED);

API SetWindowLong or SetWindowLongPtr GWL_STYLE

CodePudding user response:

WS_BORDER ModifyStyle

CodePudding user response:

 DWORD dwStyle=GetWindowLongPtr (HWND, GWL_STYLE); 
SetWindowLongPtr (HWND GWL_STYLE, dwStyle | WS_BORDER);
  • Related