News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Resizing an MDI Client window....

Started by xandaz, July 28, 2011, 04:46:43 PM

Previous topic - Next topic

xandaz

   How does one resize a window or custominzes the size and position of a MDI client window? I've tried to fill in the parameters either in CreateWindowEx or in CREATESTRUCT but it gives nothing. Help needed... thanks

dedndave

SetWindowPos

however, the initial position can be set with CreateWindowEx, as well
examine closely the parms you are using - read the MSDN page for CreateWindowEx
especially the x, y, nWidth, and nHeight parameter descriptions
pay particular attention to the use of CW_USEDEFAULT

jj2007

Quote from: dedndave on July 28, 2011, 05:07:09 PM
SetWindowPos

however, the initial position can be set with CreateWindowEx, as well

If you handle WM_SIZE, 4*0 (x/y/w/h) in CreateWindowEx plus MoveWindow for the children is the most efficient solution.

dedndave

oh yah - MoveWindow   :bg
i used SetWindowPos because the parms are similar to DeferWindowPos

xandaz

    Thanks guys.... jj your tip worked... I don't know why it wasn't working in CreateWindowEx. thanks