Главная страница | назад

Article #16813: Making windows stay on top

 Question and Answer Database

FAQ1813C.txt   Making windows stay on top 
Category   :Windows API
Platform    :All
Product    :C++Builder  1.x

How do I make my window stay on top of other windows? 

Assuming your application is in the foreground,

SetWindowPos(Handle, HWND_TOPMOST, 
   0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);

will do the trick. :) 

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99