c - Placing a window after TOPMOST window -


i have window topmost , have (mywindow) window want place behind 1st 1 , don't want second window top most:

setwindowpos(topmostwin, hwnd_topmost, left, top, width, height, flags); long_ptr exstyle = ::getwindowlongptr(mywindow, gwl_exstyle); if (exstyle & ws_ex_topmost) {     exstyle &= ~ws_ex_topmost;     if( ! ::setwindowlongptr(mywindow, gwl_exstyle, exstyle))     {         log_error();     } } setwindowpos(mywindow, topmostwin, left, top, width, height, flags); 

but mywindow keep acting top window , when check mywindow's ws_ex_topmost property of extended styles still turned on. possible turn off top bit though i'm placing window after top window?

hwnd_top put window @ top of z-order behind topmost windows.


Comments