Re: [Iup-users] Solution for the windows 8 sizing bug.

2013-11-20 Thread Robert Persson
Hi Scuri I agree, the documentation for SM_CXPADDEDBORDER is really bad. Do you have visual studio 2012+windows 8 so that you can reproduce the problem at your place? If you dont, I wait for a release with your attempt to bugfix, and try it here on various window styles. /Robert.P. Antonio

Re: [Iup-users] Solution for the windows 8 sizing bug.

2013-11-18 Thread Antonio Scuri
Hi, Thanks for the tip. This is what I did: int padded_border = 0; if (has_titlebar) . padded_border = GetSystemMetrics(SM_CXPADDEDBORDER); *border = 0; if (iupAttribGetBoolean(ih, "RESIZE")) . if (*border) *border += padded_

[Iup-users] Solution for the windows 8 sizing bug.

2013-11-13 Thread Robert Persson
Problem description: The code below below shows a window as in the picture, when compiled with visual studio 2012 under windows 8. void main() {     IupOpen(0,0);         Ihandle* dlg=IupDialog(                 IupVbox(