Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!ousrvr!ousrvr!so-ecs From: so-ecs@stekt.oulu.fi (Juha Ruotsalainen ti) Newsgroups: comp.os.os2.programmer Subject: Problems with LN_ENTER & DID_OK Message-ID: Date: 10 Oct 90 12:39:53 GMT Sender: news@ousrvr.oulu.fi Distribution: comp.os.os2.programmer Organization: University of Oulu, Dept. of EE, Finland Lines: 32 Question #1: Why API-calls use stack instead of registers? Question #2: I my program I have a dialog box which has one list box(in which drives, directories and files are listed) and Enter and Cancel pushbuttons. The problem arises when I am scrolling thru the list and press when I want to change drive/directory or read in a file. Enter generates LN_ENTER which I process and DID_OK which I process. But there is no need for processing the DID_OK msg, because both call the same subroutine. At the moment I have a flag indicating whether to process DID_OK and it works. Fine. BUT in the sample program(graphic2) which came with Toolkit there are no flags. What do I do wrong ? I hope there is someone who can help me... -Jussi- -- ===E.C.Stone or J.Ruotsalainen=========Internet : so-ecs at stekt.oulu.fi=== When I feel myself slowing down , I know for sure that I've been here before, 'cause if it isn't an action replay, what else could it be. ============================Klaustrofobiaako ??===============================