T
Toxalot
I want to size the access window to fit my form perfectly.
I tried using AdjustWindowRect to determine the size I would need, but
it was not quite right. I tried a variation of different constants.
The closest seemed to be WS_CAPTION|WS_THICKFRAME, but it was 4 pixels
short in the width and 10 in the height. If I was sure that it would
always be the same, then I could just adjust manually, but I came
across the following in another thread (from 96).
"The consensus of opinion is that AdjustWindowRect is no use at all.
The only "reliable"
way of computing a client area is to do the calculation yourself,
using
the data returned from GetSystemMetrics."
Can anyone help me with calculating this? Which values do I need to
use?
Jennifer
I tried using AdjustWindowRect to determine the size I would need, but
it was not quite right. I tried a variation of different constants.
The closest seemed to be WS_CAPTION|WS_THICKFRAME, but it was 4 pixels
short in the width and 10 in the height. If I was sure that it would
always be the same, then I could just adjust manually, but I came
across the following in another thread (from 96).
"The consensus of opinion is that AdjustWindowRect is no use at all.
The only "reliable"
way of computing a client area is to do the calculation yourself,
using
the data returned from GetSystemMetrics."
Can anyone help me with calculating this? Which values do I need to
use?
Jennifer