Discussion:
Maximum Window size of Dialog
(too old to reply)
Amit Chaudhary
2007-09-19 07:47:51 UTC
Permalink
Hi All,



I am creating a clild window(modless dialog box).

I am resizing width of child window by using :-



CRect rect;

GetWindowRect(rect);

if(!SetWindowPos(&wndBottom,rect.left,rect.top,86400,rect.Height(),SWP_NOMOVE))

AfxMessageBox("Error in SetWindowPos");

But it is incresing up to 32767.

Please help me out, i want to create a child window which suppose to have
3110400 pixel in width.

Thanks in advance.

Amit
RainMan
2007-11-27 20:20:01 UTC
Permalink
If this is a child window, who is a parent? Parent can limit ability to
resize child window since it is contained in a client area of the parent.
Dialog size is determined by the resource. You can always change initial
size using (as you did) SetWindowPos.
It the dialog is a child window you should pass required coordinated
relative to a client area of the parent, not a screen as you do.
Besides all: having window 3110400 pixels widow is kind of weird, since
highest resolutions of the screen are around 2000 pixels. Unless you define
pixels differently.
--
RainMan
Post by Amit Chaudhary
Hi All,
I am creating a clild window(modless dialog box).
I am resizing width of child window by using :-
CRect rect;
GetWindowRect(rect);
if(!SetWindowPos(&wndBottom,rect.left,rect.top,86400,rect.Height(),SWP_NOMOVE))
AfxMessageBox("Error in SetWindowPos");
But it is incresing up to 32767.
Please help me out, i want to create a child window which suppose to have
3110400 pixel in width.
Thanks in advance.
Amit
Loading...