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
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
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.
oh yah - MoveWindow :bg
i used SetWindowPos because the parms are similar to DeferWindowPos
Thanks guys.... jj your tip worked... I don't know why it wasn't working in CreateWindowEx. thanks