Xref: utzoo comp.os.os2.misc:679 comp.os.os2.programmer:449 Path: utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!acheron!larouch!news From: yozzo@ibm.com Newsgroups: comp.os.os2.misc,comp.os.os2.programmer Subject: Re: taking control at startup Message-ID: <1991Feb11.015032.23450@larouch.uucp> Date: 11 Feb 91 01:50:32 GMT Sender: news@larouch.uucp (Usenet News Program) Organization: larouch.uucp Lines: 32 > Nntp-Posting-Host: pollux.usc.edu > Originator: papa@pollux.usc.edu > > I am trying to fins out if there is a way so that my own application can be > started up as the first program and takes "control" of the system. Microsoft > tells me that running my program as a shell (without PM) is a no-no. So one > possibility could be to install a C program that grabs the mouse and simulates > the selection of my program which then kind of takes over the screen. I also > should make sure that the Talk list selector is not available (how?). > Anyway, is any of the above possible? > > -- Marco > > -- One possibility is to create a SYSMODAL window. Using FS_SYSMODAL and FCF_SYSMODAL in a dialog definition should allow you to create a Window that does not yield to only windows. An example DLG file is the following: DLGTEMPLATE IDX_1100 LOADONCALL MOVEABLE DISCARDABLE BEGIN DIALOG "Thinking...", IDX_1100, 9, 44, 361, 136, FS_NOBYTEALIGN | FS_DLGBORDER | FS_ICON | FS_SYSMODAL WS_VISIBLE | WS_CLIPSIBLINGS | WS_SAVEBITS , FCF_TITLEBAR | FCF_MINMAX | FCF_ICON | FCF_SYSMODAL BEGIN CONTROL "", IDX_1000, 28, 91, 60, 60, WC_BUTTON, BS_USERBUTTON | WS_TABSTOP | WS_VISIBLE CONTROL "", IDX_1001 , 2 , 72 , 361 , 8 , WC_STATIC, SS_TEXT | DT_LEFT | WS_VISIBLE END END