Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
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, 6:53 am This article has been viewed 35278 times. Google search has resulted in 22 hits on this article since January 25, 2004.
|
|