I thought I'd make this a new thread to focus on this particular problem.
My question is: is anyone familiar with the way that Windows XP visual themes work, as well as programs such as Windows Blinds, and if so, could they direct me as to where to find a detailed resource on this topic?
Also, I would like to know why I can only change top-level window styles when using the default XP visual style. When any other theme/style is present, the window style cannot be changed. For example, I cannot add/remove the caption bar or sizing border. This is the code if anyone wants:
style=GetWindowLong(hwnd,GWL_STYLE);//get current window style
if (style&WS_CAPTION) //if we have caption
style&=(~WS_CAPTION); //remove caption and thickframe
style|=WS_CAPTION; //put em in
SetWindowLong(hwnd,GWL_STYLE,style); //change window style
SetWindowPos(hwnd,NULL,rc.left-1,rc.top, rc.right-rc.left,rc.bottom-rc.top,SWP_NOZORDER); //move to update
SetWindowPos(hwnd,NULL,rc.left, rc.top,rc.right-rc.left,rc.bottom-rc.top,SWP_NOZORDER); //move back