[comp.windows.ms.programmer] Need explanation of global data and MakeProcInstance

ecollins@nmsu.edu (Edward Collins) (06/11/91)

Hello,

Here's the problem: I have a dialog widget whose wndproc is specified
in a call to MakeProcInstance.  The dialog widget includes 3 scroll
bars whose values I need in my main window's wndproc under WM_PAINT.
The problem is that when I store the thumb values (or even constants)
to variables I've declared globally the values do not show up when
referenced in the main windows wndproc.

At this point, I think it is a problem with data segments, etc, but
have not been able to find an explanation.  I have Petzold's book
and am experimenting with a hacked version of colors2.  I'm using
the scroll bars to define yaw, pitch, and roll angles and want to 
manipulate 3-d objects in the main window.

I've tried SendMessage() but without any luck so far.  Is this a
decent approach?


What is the BEST way to make the scroll bar values available to my
main wndproc when the scroll bars live in a dialog window?


Also, are there problems using floating point in BCC? I read the FAQ
which says it doesn't support the (MS?) fp emulation libs.  I get
a "bad floating point value.." message sometimes and haven't been able
to determine why yet.  My 3d code works outside of win3...

Thanks in advance for your help.  I'll summarize if there's interest.

Mike.
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=  Mike Collins                   | "Why would I want to change my    =
=  New Mexico State University    |  mind?  Is there something wrong  =
=  e-mail: ecollins@nmsu.edu      |  with the one I have?" -- Spock   =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=