SWCNTRL SwitchData; /* Switch control data block */ HSWITCH hSwitch; /* Switch entry handle */ : : SwitchData.hwnd = hFrame; /* Set frame window handle */ SwitchData.hwndIcon = 0; /* Use default icon */ SwitchData.hprog = 0; /* Use default program handle */ SwitchData.idProcess = 0; /* Use current process id */ SwitchData.idSession = 0; /* Use current session id */ SwitchData.uchVisibility = SWL_VISIBLE; /* Make visible */ SwitchData.fbJump = SWL_JUMPABLE; /* Make jumpable via Alt+Esc */ SwitchData.szSwTitle[0] = '\0'; /* Use default title text */ hSwitch = WinAddSwitchEntry(&SwitchData); /* Add switch entry */
This function adds the application to the OS/2 Window List. Note that under OS/2 Version 2.0, the WinCreateSwitchEntry() function should be used.