A 'Q' about Notebook controls
Gordon W. Zeglinski (zeglins@ccu.umanitoba.ca) writes:
I've read through all of IBM's docs on Notebook controls and I cannot find
out how to determine if the page is being turned to via a "tab" or the
directional arrows.
It would seem that there is a way to do this because Borland seems to do
this in their C++ compiler for OS/2. The reason this is useful, is that it
would make using "dummy" section seperator pages much easier to implement.
I guess the question is how can one tell if the tab or arrow sections of a
notebook control have brought the window to the top? Alternatively, How
does Borland do it?
One last question:
I've noticed that double clicking the top tab, would occasionally cause the
top page to go blank. I have set the control up to take care of all the
redrawing automatically. Is this a know bug? or am I doing something
wrong?
A: There is no exposed way to determine if the directional arrows were used or
not, but if you assume that the arrows always have the same id (a safe
assumption in this case because there are always at most 1 set of these per
notebook), then you can use WinWindowFromID to get the window handle of the
arrows and then subclass them instead.
In reference to your last question, I must say that I've never noticed this
behavior in my applications that use notebooks, nor does the desktop suffer
from this symptom, so it would appear that you have done something
incorrectly.