I'm making a small function, that among things needs to remove scrollbars from channel windows, this is what I'm using, and its not working:
HWND hwnd = (HWND)atoi(data);
if (!IsWindow(hwnd)) {
lstrcpy(data,"C_ERR Window does not exist");
return 3;
}
HWND child = FindWindowEx(hwnd,NULL,"Static",NULL);
if (!IsWindow(child)) {
lstrcpy(data,"C_ERR Window does not exist");
return 3;
}
SetWindowLong(child,GWL_STYLE, GetWindowLong(child,GWL_STYLE) & ~WS_VSCROLL);
Thats the gist of my Scrollbar removing dealy. Why isnt it working?