Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Hiding Taskbar Window Buttons

I have been trying to unsuccesfully create a Delphi 2.0 App which does not place a Window Button on the Taskbar. According to the Win32 Online Help, if a Window is created with the CreateWindowEx() API call (which Delphi uses) and a style of WS_EX_TOOLWINDOW is specified, a Window Button will not be created. The delphi help suggests overriding the main form's CreateParams() method so that the style is set before the Window is created. I have tried this, and while I have managed to change the style of the window, I have not been able to stop the Window Button from appearing on the taskbar

Where am I going wrong?
0
sonique
Asked:
sonique
  • 2
1 Solution
 
JimBob091197Commented:
Hi

The window on the taskbar is the TApplication's window, NOT the main form.  Add this to your main form's OnShow event:

ShowWindow(Application.Handle, SW_HIDE);

Cheers,
JB
0
 
soniqueAuthor Commented:
The hard ones are always easy in the end ... many thanks!

PW
0
 
JimBob091197Commented:
Hehe...  there's a lot of truth in that!

Cheers
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now