Thanks Danilo...
I'm still confused why I'm getting different results using GetSystemMetrics_() and SystemParametersInfo_().
Off by 1 for the menu and caption heights...
PureBasic 4.61 beta 1 - WinAPI structure changes
Re: PureBasic 4.61 beta 1 - WinAPI structure changes
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: PureBasic 4.61 beta 1 - WinAPI structure changes
For the captions one is the caption bar, the other is for caption buttons (-1 pixel here).skywalk wrote:Thanks Danilo...
I'm still confused why I'm getting different results using GetSystemMetrics_() and SystemParametersInfo_().
Off by 1 for the menu and caption heights...
For the menu it seems to be the same issue, with a possible documentation mistake in MSDN.
Code: Select all
#SM_CYCAPTION is the height of a caption.
ncm\iCaptionHeight is the height of a caption button.
#SM_CYMENU is the height of a menu bar.
#SM_CYMENUSIZE is the height of a menu bar button.
ncm\iMenuHeight is the height of a menu bar (says MSDN), but contains the height of a menu bar button.
ncm\iMenuWidth is the width of a menu bar button, so i think it's OK to assume that iMenuHeight is
the button height, not the menu height.
Re: PureBasic 4.61 beta 1 - WinAPI structure changes
Why have you decided to REMOVE structure members? Having extra members at the end of a structure will not break anything in Windows 95, unless you have to specify its size somewhere (do you?). This seems like a step backwards.