how can i change the windows child styles?
i did these code for change the border for the STATIC window:
(the hwnd is value from CreateWindowEx())
void setBorder(bool border)
s = WS_EX_LEFT| WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR;
s = WS_EX_LEFT| WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_CLIENTEDGE;
//the SetWindowPos() is for update the control
SetWindowPos(NULL, 0, 0, 0, 0,
but i get these error from GetLastError(): 6 - ERROR_INVALID_HANDLE.
why these error?
Re: how can i change the windows child styles?
Which API function failed? And how did you check it had failed? I don't see any checking the functions calls! :confused:
Originally Posted by Cambalinho