First, to hide the icon from the taskbar, do the following . . .<br>ShowWindow(Application->Handle, SW_HIDE);<br><br> To make it reappear (if you need to), do this . . .<br>ShowWindow(Application->Handle, SW_SHOW);<br><br> To hide your form from the tasklist, you will need to use <i>GetWindowLong</i> and <i>SetWindowLong</i> in your WinMain function like this . . .<br>WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)<br>{<br> DWORD dwExStyle = GetWindowLong(Application->Handle, GWL_EXSTYLE);<br> dwExStyle ¦= WS_EX_TOOLWINDOW;<br> SetWindowLong(Application->Handle, GWL_EXSTYLE, dwExStyle);<br><br> try<br> {<br> Application->Initialize();<br> Application->CreateForm(__classid(TForm1), &Form1);<br> Application->Run();<br> }<br> catch (Exception &exception)<br> {<br> Application->ShowException(&exception);<br> }<br> return 0;<br>}<br><br> These snippets came from the "FAQ" section of <A HREF="
Opps. I didn't realize that you were using OWL. I've never used OWL so I threw my old manuals out. This will work with BCB (Borland C++ Builder). The Window's name is sent to <i>GetWindowLong</i> in the <i>Application->Handle</i>. This is put into the Window's <i>WinMain</i> code section. I'm not familar enough with OWL to translate it. Sorry.<br> <p>James P. Cottingham<br><a href=mailto: > </a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.