Why doesn't SWP work? I'm trying to make sure that all the child windows for my custom control aren't over the top of the caption by moving them to an y offset of a minimum of 26 if they aren't already greater than that.
It's just not doing anything. SetWindowPos is being called but the child window I'm testing with is still at 0,0Code:BOOL CALLBACK EnumProc(HWND hwnd, LPARAM lParam) { RECT crc; RECT rc; GetWindowRect(GetParent(hwnd),&rc); GetWindowRect(hwnd,&crc); if(crc.top < rc.top+25) { SetWindowPos(hwnd,HWND_TOPMOST,crc.left,rc.top+26,0,0,SWP_SHOWWINDOW|SWP_NOSIZE); UpdateWindow(hwnd); } }..



LinkBack URL
About LinkBacks
.. 



.