1 Attachment(s)
Custom Message Box Not Working On Windows 7
Greetings every one.
i am using custom message box (by using some api calls to modify the standard windows message box) to change message box icon and button text. It is working fine on windows xp. But on windows 7 custom image position is not correct/right. It's get overlapped (get under text) with text.
please check the attached file (source + error shot)
if any one can help, that would be great
thanks in advance
best regards
Re: Custom Message Box Not Working On Windows 7
According to the Standard Icons MSDN topic, dialog boxes should use 32x32 pixel icons for content area icons. Your 48x48 icon is a bit oversized, hence the "overlapping" issue.
Re: Custom Message Box Not Working On Windows 7
Quote:
Originally Posted by
Bonnie West
According to the
Standard Icons MSDN topic, dialog boxes should use
32x32 pixel icons for content area icons. Your
48x48 icon is a bit oversized, hence the "overlapping" issue.
thanks for your reply
but my question is why then it's works fine on windows xp?
thanks again..
best regards
Re: Custom Message Box Not Working On Windows 7
Quote:
Originally Posted by
Shohag_ifas
but my question is why then it's works fine on windows xp?
Probably because XP was less strict than Win 7 when it comes to message box icon sizes. That's usually the way it is with Windows in general. What used to work in older OSs doesn't work anymore in newer ones. So, the typical solution is to detect the OS version and/or feature and adjust your code accordingly.