Hello Robert,
> Why do you think you need to do this in an rc file, rather
> than in code?
Wrong question. The question is *why not*.
Yes, I know that I can add controls to a dialog defined in an RC file by
adding code to its WM_INIT event. But at best I would call that (adding
extra controls) a kludge/hack. And if I can add stuff that way to the
dialog why not do *everything* in code ?
The answer is : for easiness sake. What else ?
> More fundamentally, why do you think the listview and text
> box need to be children of the rebar?
I'm sorry ? What is that ReBar control supposed to be for ? Isn't it
ment to be a movable divider, (most always) between two other controls ?
If so, is it too much to expect that it has some mechanism implemented to
send WM_SIZE messages to its children -- indicating the new area
available -- so they can respond to a change of position of the ReBar ?
But than again, I'm not an MS programmer and might expect too much ...
> Maybe if you step back a bit, one of us can
> help you solve the real problem.
I'm sorry, I again do not understand. What do you think that that "real
problem" is I might be having ?
The simpelest description I can come up with is this:
I want to be able to have to some space available which is occupied by two
controls. I want to have something in between those two controls that I
can, at run-time, drag (left/right or up/down) to give one control more
space and the other less.
Example: Open up you favorite HTTP-browser and display the webpage as well
as your favorites. Chances are that the favorites are displayed as a column
at the left of the webpage, and that you will be able to drag the border
between them left and right.
Isn't that what the ReBar control is ment for ?
Regards,
Rudy Wieser
-- Origional message:
<
r_z_aret@pen_fact.com> schreef in berichtnieuws
altrf71a1itm7qkjn...@4ax.com...