comp.lang.ada
 help / color / mirror / Atom feed
* Generic Package & Win32
@ 2000-03-27  0:00 jboulais
  2000-03-27  0:00 ` jboulais
  0 siblings, 1 reply; 2+ messages in thread
From: jboulais @ 2000-03-27  0:00 UTC (permalink / raw)


I have written a generic Ada package that creates my own version of
status windows. You specify a caption and how many "Panes" you want,
and the generic creates a window w/ X number of edit boxes in it. At
first, I didn't need to put anything in the WndProc, and everything
worked fine, such as updating the text for a pane on a given window.
However, I am attempting to put in a menu allowing the users to select 2
, 3 , or 4 panes per row. I had to add code to my WndProc, and now I'm
getting the correct hWnd, but the messages only go to the first
instantiation of the generic. i.e. I can select 4-boxes-per-row on a
given window, and it will update the first one created. Does anyone
know if I'm maybe missing a style or something? It seems like I've got
an address space problem or something. Thanks for any help, if you want
to see the source, I can e-mail it to you.
-----------------
Jeffrey Boulais


Sent via Deja.com http://www.deja.com/
Before you buy.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Generic Package & Win32
  2000-03-27  0:00 Generic Package & Win32 jboulais
@ 2000-03-27  0:00 ` jboulais
  0 siblings, 0 replies; 2+ messages in thread
From: jboulais @ 2000-03-27  0:00 UTC (permalink / raw)


Actually, for anyone that cares, I found the answer. I was using the
same class name for each instantiation (internal to the generic). There
is probably a better solution that allows me to retain that common
class name, but I fixed the problem by creating a unique class name
based on the caption that is supplied when you instantiate the generic.
Apparently once I registered one instance of the generic with that
class name, all of the windows messages sent to any of the
instantiations were going to the first instantiation. I'd be interested
in hearing from anyone with other possible solutions.
Jeffrey Boulais


Sent via Deja.com http://www.deja.com/
Before you buy.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-27  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-27  0:00 Generic Package & Win32 jboulais
2000-03-27  0:00 ` jboulais

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox