WinRemoveSwitchEntry: Difference between revisions
Appearance
m Martini moved page OS2 API:WinRemoveSwitchEntry to OS2 API:PMI:WinRemoveSwitchEntry |
mNo edit summary |
||
Line 1: | Line 1: | ||
; WinRemoveSwitchEntry(winListHndl) : Removes the specified entry from the window task list. | ; WinRemoveSwitchEntry(winListHndl) : Removes the specified entry from the window task list. | ||
=== Parameters === | === Parameters === | ||
; winListHndl - [[ | ; winListHndl - [[HSWITCH]] - input : The task list handle which can be returned from: | ||
* [[ | * [[WinAddSwitchEntry]] | ||
* [[ | * [[WinCreateSwitchEntry]] | ||
* [[ | * [[WinQuerySwitchList]] | ||
* [[ | * [[WinQuerySwitchEntry]] | ||
=== Returns === | === Returns === | ||
Returns [[ | Returns [[ULONG]]: | ||
* 0 Successful. | * 0 Successful. | ||
* Anything else - failure. | * Anything else - failure. | ||
Possible results from [[ | Possible results from [[WinGetLastError]]: | ||
* [[OS2_API:PMI:error#PMERR_INVALID_SWITCH_HANDLE|PMERR_INVALID_SWITCH_HANDLE]] | * [[OS2_API:PMI:error#PMERR_INVALID_SWITCH_HANDLE|PMERR_INVALID_SWITCH_HANDLE]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | INCL_WINSWITCHLIST or INCL_PM or INCL_WIN | ||
=== Calling conversion === | === Calling conversion === | ||
Line 29: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HSWITCH winListHndl; | |||
ULONG rc; | |||
... | ... | ||
rc = WinRemoveSwitchEntry(winListHndl); | rc = WinRemoveSwitchEntry(winListHndl); | ||
Line 36: | Line 29: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinAddSwitchEntry]] | ||
[[ | *[[WinCreateSwitchEntry]] | ||
[[ | *[[WinQuerySwitchList]] | ||
*[[WinQuerySwitchEntry]] | |||
*[[WinCreateStdWindow]] | |||
=== Notes === | === Notes === | ||
Line 45: | Line 40: | ||
You cannot remove non-OS/2 program entries since the system automatically removes them when the session expires. | You cannot remove non-OS/2 program entries since the system automatically removes them when the session expires. | ||
If you create a standard window with [[ | If you create a standard window with [[FCF#FCF_TASKLIST|FCF_TASKLIST]] flag, you don't need to issue '''WinRemoveSwitchEntry''' to remove the text from the tasklist. When the frame window exits, it automatically removes the switch entry. | ||
[[Category: | [[Category:Win]] |
Revision as of 19:31, 22 December 2016
- WinRemoveSwitchEntry(winListHndl)
- Removes the specified entry from the window task list.
Parameters
- winListHndl - HSWITCH - input
- The task list handle which can be returned from:
Returns
Returns ULONG:
- 0 Successful.
- Anything else - failure.
Possible results from WinGetLastError:
Define (C/C++)
INCL_WINSWITCHLIST or INCL_PM or INCL_WIN
Calling conversion
Example Code
HSWITCH winListHndl; ULONG rc; ... rc = WinRemoveSwitchEntry(winListHndl); ...
Related Functions
Notes
An application that uses the operating system effectively should add its main window to the Window List when it starts, and remove it when it from the Window List when it stops.
You cannot remove non-OS/2 program entries since the system automatically removes them when the session expires.
If you create a standard window with FCF_TASKLIST flag, you don't need to issue WinRemoveSwitchEntry to remove the text from the tasklist. When the frame window exits, it automatically removes the switch entry.