<ibdoerre@[EMAIL PROTECTED]
> wrote in message
news:1140350947.572629.140810@[EMAIL PROTECTED]
> I wrote a DLL communicating with another program. The DLL is invoked by
> the EXE via an alert process. So they use the same memory.
> The DLL uses the predefined API functions inside the EXE.
> I want to avoid this nasty procedure and ask You here if anyone
> could tell me if I could directly change the check box status via
> memory access.
No, you may not; at least not in any sup****ted or reliable manner. Windows
reserves the right to move things around as it sees fit. I don't think it
actually DOES do this IN THE PARTICULAR CASE OF A CONTROL'S CURRENT STATE,
but all access to objects within Windows is sup****ted only using the
handles
provided for that purpose.
> Well, I managed already to do so but always have to invoke the
> EXE's tabbed dialog first to get access to the check box ID to
> manipulate it's status.
That should NEVER be necessary. Once you have a handle to the checkbox
control (or its parent window/dialog), you can always interrogate or
manipulate the check status. Sounds like you are passing the wrong
window/control handle to your function.
> For one essential task however there is no API function included.
> I want to read/write the status of a single Check Box inside the dialog
> of The EXE.
SendMessage hCtrl, BM_GETCHECK/ BM_SETCHECK, wparam, lparam
--
Michael Mattias
Tal Systems, Inc.
Racine WI
mmattias@[EMAIL PROTECTED]


|