Login
`
Templates, Tools and Utilities
|
||
Icetips Article
Back to article list
Search Articles
Add Comment
Printer friendly
Direct link
Windows API: Hiding and unhiding the application 2004-03-12 -- Mario Rodrigues Newsgroups: softvelocity.public.clarion6
> 1) How can I (not using templates) disable the task bar box for a program.
>
> 2) Create and Change the appearance of a task bar icon for when office mail
> is received/read.
To hide your application :
ShowWindow(YourAppFrame{PROP:HANDLE},SW_HIDE)
To unhide your application :
ShowWindow(YourAppFrame{PROP:HANDLE},SW_SHOW)
The declaration for the ShowWindow API
ShowWindow(ULONG, SIGNED),BOOL,PASCAL,PROC
and the parameters for it
SW_HIDE EQUATE(0)
SW_SHOWNORMAL EQUATE(1)
SW_MAXIMIZE EQUATE(3)
SW_SHOW EQUATE(5)
SW_MINIMIZE EQUATE(6)
SW_RESTORE EQUATE(9)
To change displayed Icon :
0{PROP:Icon}='~yourIconName.ico'
Note that the Icon must be in the project
Thats All (2 line of code TOO)
Mario RODRIGUES
Today is November 21, 2024, 4:00 am This article has been viewed 35277 times. Google search has resulted in 22 hits on this article since January 25, 2004.
|
|