>>Quick search MSDN online showed me, that I have to use SystemParametersInfo() function and pass this structure:
>>Honestly, I have no idea, what does mean UINT or LOGFONT. Could you help me here?
>
> UINT is much the same as INT.
> LOGFONT is another structure help on which you can find in MSDN too.
Yep, I expected this. Now I probably have to become familiar with Cristof's STRUCT class. Could it call structure with structure?
>>
>>typedef struct tagNONCLIENTMETRICS {
>> UINT cbSize;
>> int iBorderWidth;
>> int iScrollWidth;
>> int iScrollHeight;
>> int iCaptionWidth;
>> int iCaptionHeight;
>> LOGFONT lfCaptionFont;
>> int iSmCaptionWidth;
>> int iSmCaptionHeight;
>> LOGFONT lfSmCaptionFont;
>> int iMenuWidth;
>> int iMenuHeight;
>> LOGFONT lfMenuFont;
>> LOGFONT lfStatusFont;
>> LOGFONT lfMessageFont;
>>} NONCLIENTMETRICS, *LPNONCLIENTMETRICS;
>>Members
>>cbSize
>>Specifies the size of the structure, in bytes.
>>iBorderWidth
>>Specifies the thickness, in pixels, of the sizing border.
>>iScrollWidth
>>Specifies the width, in pixels, of a standard vertical scroll bar.
>>iScrollHeight
>>Specifies the height, in pixels, of a standard horizontal scroll bar.
>>iCaptionWidth
>>Specifies the width, in pixels, of caption buttons.
>>iCaptionHeight
>>Specifies the height, in pixels, of caption buttons.
>>lfCaptionFont
>>Contains information about the caption font.
>>iSmCaptionWidth
>>Specifies the width, in pixels, of small caption buttons.
>>iSmCaptionHeight
>>Specifies the height, in pixels, of small captions.
>>lfSmCaptionFont
>>Contains information about the small caption font.
>>iMenuWidth
>>Specifies the width, in pixels, of menu-bar buttons.
>>iMenuHeight
>>Specifies the height, in pixels, of a menu bar.
>>lfMenuFont
>>Contains information about the font used in menu bars.
>>lfStatusFont
>>Contains information about the font used in status bars and tooltips.
>>lfMessageFont
>>Contains information about the font used in message boxes
If it's not broken, fix it until it is.
My Blog